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

com.cinchapi.concourse.thrift.ConcourseService 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.cinchapi.concourse.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.LinkedHashMap;
import java.util.EnumMap;
import java.util.Set;
import java.util.LinkedHashSet;
import java.util.EnumSet;
import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2017-06-14")
public class ConcourseService {

  /**
   * The interface definition for the Concourse Server API.
   */
  public interface Iface {

    /**
     * Abort the current transaction and discard any changes that are
     * currently staged.
     * 

* After returning, the driver will return to {@code autocommit} mode and * all subsequent changes will be committed immediately. *

*

* Calling this method when the driver is not in {@code staging} mode is a * no-op. *

* @param record the id of the record in which an attempt is made to add * the data * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @throws exceptions.SecurityException if the {@code creds} don't represent a * valid session * * @param creds * @param transaction * @param environment */ public void abort(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException; /** * Append {@code key} as {@code value} in a new record. * * @param key the field name * @param value the value to add * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return the new record id * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.InvalidArgumentException if any of provided data * can't be stored * * @param key * @param value * @param creds * @param transaction * @param environment */ public long addKeyValue(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException; /** * Append {@code key} as {@code value} in {@code record}. * * @param key the field name * @param value the value to add * @param record the record id where an attempt is made to add the data * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a bool that indicates if the data was added * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.InvalidArgumentException if any of provided data * can't be stored * * @param key * @param value * @param record * @param creds * @param transaction * @param environment */ public boolean addKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException; /** * Append {@code key} as {@code value} in each of the {@code records} where it * doesn't exist. * * @param key the field name * @param value the value to add * @param records a list of record ids where an attempt is made to add the * data * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a mapping from each record id to a boolean that indicates if the * data was added * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.InvalidArgumentException if any of provided data * can't be stored * * @param key * @param value * @param records * @param creds * @param transaction * @param environment */ public Map addKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException; /** * List all the changes ever made to {@code record}. * * @param record the record id * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return for each change, a mapping from timestamp to a description of the * revision * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param record * @param creds * @param transaction * @param environment */ public Map auditRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * List all the changes made to {@code record} since {@code start} * (inclusive). * * @param record the record id * @param start an inclusive timestamp for the oldest change that should * possibly be included in the audit * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return for each change, a mapping from timestamp to a description of the * revision * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param record * @param start * @param creds * @param transaction * @param environment */ public Map auditRecordStart(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * List all the changes made to {@code record} since {@code start} * (inclusive). * * @param record the record id * @param start an inclusive timestamp for the oldest change that should * possibly be included in the audit * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return for each change, a mapping from timestamp to a description of the * revision * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.ParseException if a string cannot be properly parsed * into a timestamp * * @param record * @param start * @param creds * @param transaction * @param environment */ public Map auditRecordStartstr(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; /** * List all the changes made to {@code record} between {@code start} * (inclusive) and {@code end} (non-inclusive). * * @param record the record id * @param start an inclusive timestamp for the oldest change that should * possibly be included in the audit * @param end a non-inclusive timestamp that for the most recent recent * change that should possibly be included in the audit * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return for each change, a mapping from timestamp to a description of the * revision * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param record * @param start * @param tend * @param creds * @param transaction * @param environment */ public Map auditRecordStartEnd(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * List all the changes made to {@code record} between {@code start} * (inclusive) and {@code end} (non-inclusive). * * @param record the record id * @param start an inclusive timestamp for the oldest change that should * possibly be included in the audit * @param end a non-inclusive timestamp that for the most recent recent * change that should possibly be included in the audit * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return for each change, a mapping from timestamp to a description of the * revision * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.ParseException if a string cannot be properly parsed * into a timestamp * * @param record * @param start * @param tend * @param creds * @param transaction * @param environment */ public Map auditRecordStartstrEndstr(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; /** * List all the changes ever made to the {@code key} field in {@code record}. * * @param key the field name * @param record the record id * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return for each change, a mapping from timestamp to a description of the * revision * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param key * @param record * @param creds * @param transaction * @param environment */ public Map auditKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * List all the changes made to the {@code key} field in {@code record} since * {@code start} (inclusive). * * @param key the field name * @param record the record id * @param start an inclusive timestamp for the oldest change that should * possibly be included in the audit * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return for each change, a mapping from timestamp to a description of the * revision * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param key * @param record * @param start * @param creds * @param transaction * @param environment */ public Map auditKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * List all the changes made to the {@code key} field in {@code record} since * {@code start} (inclusive). * * @param key the field name * @param record the record id * @param start an inclusive timestamp for the oldest change that should * possibly be included in the audit * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return for each change, a mapping from timestamp to a description of the * revision * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.ParseException if a string cannot be properly parsed * into a timestamp * * @param key * @param record * @param start * @param creds * @param transaction * @param environment */ public Map auditKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; /** * List all the changes made to the {@code key} field in {@code record} * between {@code start} (inclusive) and {@code end} (non-inclusive). * * @param key the field name * @param record the record id * @param start an inclusive timestamp for the oldest change that should * possibly be included in the audit * @param end a non-inclusive timestamp that for the most recent change that * should possibly be included in the audit * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return for each change, a mapping from timestamp to a description of the * revision * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param key * @param record * @param start * @param tend * @param creds * @param transaction * @param environment */ public Map auditKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * List all the changes made to the {@code key} field in {@code record} * between {@code start} (inclusive) and {@code end} (non-inclusive). * * @param key the field name * @param record the record id * @param start an inclusive timestamp for the oldest change that should * possibly be included in the audit * @param end a non-inclusive timestamp that for the most recent recent * change that should possibly be included in the audit * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return for each change, a mapping from timestamp to a description of the * revision * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.ParseException if a string cannot be properly parsed * into a timestamp * * @param key * @param record * @param start * @param tend * @param creds * @param transaction * @param environment */ public Map auditKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; /** * View the values from all records that are currently stored for {@code key}. * * @param keys the field name * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} associating each value to the {@link Set} of records * that contain that value in the {@code key} field * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param key * @param creds * @param transaction * @param environment */ public Map> browseKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * View the values from all records that are currently stored for each of the * {@code keys}. * * @param keys a list of field names * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} associating each key to a {@link Map} associating * each value to the set of records that contain that value in the * {@code key} field * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param keys * @param creds * @param transaction * @param environment */ public Map>> browseKeys(List keys, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * View the values from all records that were stored for {@code key} at * {@code timestamp}. * * @param keys the field name * @param timestamp the historical timestamp to use in the lookup * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} associating each value to the {@link Set} of records * that contained that value in the {@code key} field at {@code * timestamp} * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param key * @param timestamp * @param creds * @param transaction * @param environment */ public Map> browseKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * View the values from all records that were stored for {@code key} at * {@code timestamp}. * * @param keys the field name * @param timestamp the historical timestamp to use in the lookup * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} associating each value to the {@link Set} of records * that contained that value in the {@code key} field at {@code * timestamp} * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.ParseException if a string cannot be properly parsed * into a timestamp * * @param key * @param timestamp * @param creds * @param transaction * @param environment */ public Map> browseKeyTimestr(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; /** * View the values from all records that were stored for each of the * {@code keys} at {@code timestamp}. * * @param keys a list of field names * @param timestamp the historical timestamp to use in the lookup * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} associating each key to a {@link Map} associating * each value to the {@link Set} of records that contained that value * in the {@code key} field at {@code timestamp} * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param keys * @param timestamp * @param creds * @param transaction * @param environment */ public Map>> browseKeysTime(List keys, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * View the values from all records that were stored for each of the * {@code keys} at {@code timestamp}. * * @param keys a list of field names * @param timestamp the historical timestamp to use in the lookup * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} associating each key to a {@link Map} associating * each value to the {@link Set} of records that contained that value * in the {@code key} field at {@code timestamp} * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.ParseException if a string cannot be properly parsed * into a timestamp * * @param keys * @param timestamp * @param creds * @param transaction * @param environment */ public Map>> browseKeysTimestr(List keys, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; /** * View a time series that associates the timestamp of each modification for * {@code key} in {@code record} to a snapshot containing the values that * were stored in the field after the change. * * @param key the field name * @param record the record id * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} associating each modification timestamp to the * {@link Set} of values that were stored in the field after the * change. * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param key * @param record * @param creds * @param transaction * @param environment */ public Map> chronologizeKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * View a time series between {@code start} (inclusive) and the present that * associates the timestamp of each modification for {@code key} in * {@code record} to a snapshot containing the values that * were stored in the field after the change. * * @param key the field name * @param record the record id * @param start the first possible {@link Timestamp} to include in the * time series * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} associating each modification timestamp to the * {@link Set} of values that were stored in the field after the * change. * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param key * @param record * @param start * @param creds * @param transaction * @param environment */ public Map> chronologizeKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * View a time series between {@code start} (inclusive) and the present that * associates the timestamp of each modification for {@code key} in * {@code record} to a snapshot containing the values that * were stored in the field after the change. * * @param key the field name * @param record the record id * @param start the first possible {@link Timestamp} to include in the * time series * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} associating each modification timestamp to the * {@link Set} of values that were stored in the field after the * change. * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.ParseException if a string cannot be properly parsed * into a timestamp * * @param key * @param record * @param start * @param creds * @param transaction * @param environment */ public Map> chronologizeKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; /** * View a time series between {@code start} (inclusive) and {@code end} * (non-inclusive) that associates the timestamp of each modification for * {@code key} in {@code record} to a snapshot containing the values that * were stored in the field after the change. * * @param key the field name * @param record the record id * @param start the first possible {@link Timestamp} to include in the * time series * @param end the {@link Timestamp} that should be greater than every * timestamp in the time series * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} associating each modification timestamp to the * {@link Set} of values that were stored in the field after the * change. * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param key * @param record * @param start * @param tend * @param creds * @param transaction * @param environment */ public Map> chronologizeKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * View a time series between {@code start} (inclusive) and {@code end} * (non-inclusive) that associates the timestamp of each modification for * {@code key} in {@code record} to a snapshot containing the values that * were stored in the field after the change. * * @param key the field name * @param record the record id * @param start the first possible {@link Timestamp} to include in the * time series * @param end the {@link Timestamp} that should be greater than every * timestamp in the time series * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} associating each modification timestamp to the * {@link Set} of values that were stored in the field after the * change. * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.ParseException if a string cannot be properly parsed * into a timestamp * * @param key * @param record * @param start * @param tend * @param creds * @param transaction * @param environment */ public Map> chronologizeKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public void clearRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public void clearRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public void clearKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public void clearKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public void clearKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public void clearKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * Attempt to permanently commit any changes that are staged in a transaction * and return {@code true} if and only if all the changes can be applied. * Otherwise, returns {@code false} and all the changes are discarded. *

* After returning, the driver will return to {@code autocommit} mode and * all subsequent changes will be committed immediately. *

*

* This method will return {@code false} if it is called when the driver is * not in {@code staging} mode. *

* * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return {@code true} if all staged changes are committed, otherwise {@code * false} * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param creds * @param transaction * @param environment */ public boolean commit(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * List all the keys in the database. * * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return the {@link Set} of keys in the database * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param creds * @param transaction * @param environment */ public Set describe(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * List all the keys in the database at {@code timestamp}. * * @param timestamp the historical timestamp to use in the lookup * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return the {@link Set} of keys that were in the database at * {@code timestamp} * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param timestamp * @param creds * @param transaction * @param environment */ public Set describeTime(long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * List all the keys in the database at {@code timestamp}. * * @param timestamp the historical timestamp to use in the lookup * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return the {@link Set} of keys that were in the database at * {@code timestamp} * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param timestamp * @param creds * @param transaction * @param environment */ public Set describeTimestr(String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * List all the keys in {@code record} that have at least one value. * * @param record the record id * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return the {@link Set} of keys in {@code record} * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param record * @param creds * @param transaction * @param environment */ public Set describeRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * List all the keys in {@code record} that had at least one value at * {@code timestamp}. * * @param record the record id * @param timestamp the historical timestamp to use in the lookup * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return the {@link Set} of keys that were in {@code record} at * {@code timestamp} * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param record * @param timestamp * @param creds * @param transaction * @param environment */ public Set describeRecordTime(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * List all the keys in {@code record} that have at least one value. * * @param record the record id * @param timestamp the historical timestamp to use in the lookup * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return the {@link Set} of keys that were in {@code record} at * {@code timestamp} * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.ParseException if a string cannot be properly parsed * into a timestamp * * @param record * @param timestamp * @param creds * @param transaction * @param environment */ public Set describeRecordTimestr(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; /** * For each of the {@code records}, list all of the keys that have at least * one value. * * @param records a collection of record ids * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} associating each record id to the {@link Set} of * keys in that record * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param records * @param creds * @param transaction * @param environment */ public Map> describeRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * For each of the {@code records}, list all the keys that had at least one * value at {@code timestamp}. * * @param records a collection of record ids * @param timestamp the historical timestamp to use in the lookup * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} associating each record id to the {@link Set} of * keys that were in that record at {@code timestamp} * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param records * @param timestamp * @param creds * @param transaction * @param environment */ public Map> describeRecordsTime(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * For each of the {@code records}, list all the keys that had at least one * value at {@code timestamp}. * * @param records a collection of record ids * @param timestamp the historical timestamp to use in the lookup * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} associating each record id to the {@link Set} of * keys that were in that record at {@code timestamp} * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.ParseException if a string cannot be properly parsed * into a timestamp * * @param records * @param timestamp * @param creds * @param transaction * @param environment */ public Map> describeRecordsTimestr(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; /** * List the net changes made to {@code record} since {@code start}. * *

* If you begin with the state of the {@code record} at {@code start} and * re-apply all the changes in the diff, you'll re-create the state of the * {@code record} at the present. *

* * @param record the record id * @param start the base timestamp from which the diff is calculated * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} that associates each key in the {@code record} to * another {@link Map} that associates a {@link Diff change * description} to the {@link Set} of values that fit the * description (i.e. * {"key": {ADDED: ["value1", "value2"], REMOVED: ["value3", * "value4"]}} * ) * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param record * @param start * @param creds * @param transaction * @param environment */ public Map>> diffRecordStart(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * List the net changes made to {@code record} since {@code start}. * *

* If you begin with the state of the {@code record} at {@code start} and * re-apply all the changes in the diff, you'll re-create the state of the * {@code record} at the present. *

* * @param record the record id * @param start the base timestamp from which the diff is calculated * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} that associates each key in the {@code record} to * another {@link Map} that associates a {@link Diff change * description} to the {@link Set} of values that fit the * description (i.e. * {"key": {ADDED: ["value1", "value2"], REMOVED: ["value3", * "value4"]}} * ) * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.ParseException if a string cannot be properly parsed * into a timestamp * * @param record * @param start * @param creds * @param transaction * @param environment */ public Map>> diffRecordStartstr(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; /** * List the net changes made to {@code record} from {@code start} to * {@code end}. * *

* If you begin with the state of the {@code record} at {@code start} and * re-apply all the changes in the diff, you'll re-create the state of the * {@code record} at {@code end}. *

* * @param record the record id * @param start the base timestamp from which the diff is calculated * @param end the comparison timestamp to which the diff is calculated * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} that associates each key in the {@code record} to * another {@link Map} that associates a {@link Diff change * description} to the {@link Set} of values that fit the * description (i.e. * {"key": {ADDED: ["value1", "value2"], REMOVED: ["value3", * "value4"]}} * ) * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param record * @param start * @param tend * @param creds * @param transaction * @param environment */ public Map>> diffRecordStartEnd(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * List the net changes made to {@code record} from {@code start} to * {@code end}. * *

* If you begin with the state of the {@code record} at {@code start} and * re-apply all the changes in the diff, you'll re-create the state of the * {@code record} at {@code end}. *

* * @param record the record id * @param start the base timestamp from which the diff is calculated * @param end the comparison timestamp to which the diff is calculated * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} that associates each key in the {@code record} to * another {@link Map} that associates a {@link Diff change * description} to the {@link Set} of values that fit the * description (i.e. * {"key": {ADDED: ["value1", "value2"], REMOVED: ["value3", * "value4"]}} * ) * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.ParseException if a string cannot be properly parsed * into a timestamp * * @param record * @param start * @param tend * @param creds * @param transaction * @param environment */ public Map>> diffRecordStartstrEndstr(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; /** * List the net changes made to {@code key} in {@code record} since * {@code start}. * *

* If you begin with the state of the field at {@code start} and re-apply * all the changes in the diff, you'll re-create the state of the field at * the present. *

* * @param key the field name * @param record the record id * @param start the base timestamp from which the diff is calculated * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} that associates a {@link Diff change * description} to the {@link Set} of values that fit the * description (i.e. * {ADDED: ["value1", "value2"], REMOVED: ["value3", "value4"]} * ) * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param key * @param record * @param start * @param creds * @param transaction * @param environment */ public Map> diffKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * List the net changes made to {@code key} in {@code record} since * {@code start}. * *

* If you begin with the state of the field at {@code start} and re-apply * all the changes in the diff, you'll re-create the state of the field at * the present. *

* * @param key the field name * @param record the record id * @param start the base timestamp from which the diff is calculated * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} that associates a {@link Diff change * description} to the {@link Set} of values that fit the * description (i.e. * {ADDED: ["value1", "value2"], REMOVED: ["value3", "value4"]} * ) * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.ParseException if a string cannot be properly parsed * into a timestamp * * @param key * @param record * @param start * @param creds * @param transaction * @param environment */ public Map> diffKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; /** * List the net changes made to {@code key} in {@code record} from * {@code start} to {@code end}. * *

* If you begin with the state of the field at {@code start} and re-apply * all the changes in the diff, you'll re-create the state of the field at * {@code end}. *

* * @param key the field name * @param record the record id * @param start the base timestamp from which the diff is calculated * @param end the comparison timestamp to which the diff is calculated * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} that associates a {@link Diff change * description} to the {@link Set} of values that fit the * description (i.e. * {ADDED: ["value1", "value2"], REMOVED: ["value3", "value4"]} * ) * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param key * @param record * @param start * @param tend * @param creds * @param transaction * @param environment */ public Map> diffKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * List the net changes made to {@code key} in {@code record} from * {@code start} to {@code end}. * *

* If you begin with the state of the field at {@code start} and re-apply * all the changes in the diff, you'll re-create the state of the field at * {@code end}. *

* * @param key the field name * @param record the record id * @param start the base timestamp from which the diff is calculated * @param end the comparison timestamp to which the diff is calculated * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} that associates a {@link Diff change * description} to the {@link Set} of values that fit the * description (i.e. * {ADDED: ["value1", "value2"], REMOVED: ["value3", "value4"]} * ) * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.ParseException if a string cannot be properly parsed * into a timestamp * * @param key * @param record * @param start * @param tend * @param creds * @param transaction * @param environment */ public Map> diffKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; /** * List the net changes made to the {@code key} field across all records * since {@code start}. * *

* If you begin with the state of an inverted index for {@code key} at * {@code start} and re-apply all the changes in the diff, you'll re-create * the state of the same index at the present. *

* * @param key the field name * @param start the base timestamp from which the diff is calculated * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} that associates each value stored for {@code key} * across all records to another {@link Map} that associates a * {@link Diff change description} to the {@link Set} of records * where the description applies to that value in the {@code key} * field (i.e. * {"value1": {ADDED: [1, 2], REMOVED: [3, 4]}} * ) * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param key * @param start * @param creds * @param transaction * @param environment */ public Map>> diffKeyStart(String key, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * List the net changes made to the {@code key} field across all records * since {@code start}. * *

* If you begin with the state of an inverted index for {@code key} at * {@code start} and re-apply all the changes in the diff, you'll re-create * the state of the same index at the present. *

* * @param key the field name * @param start the base timestamp from which the diff is calculated * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} that associates each value stored for {@code key} * across all records to another {@link Map} that associates a * {@link Diff change description} to the {@link Set} of records * where the description applies to that value in the {@code key} * field (i.e. * {"value1": {ADDED: [1, 2], REMOVED: [3, 4]}} * ) * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.ParseException if a string cannot be properly parsed * into a timestamp * * @param key * @param start * @param creds * @param transaction * @param environment */ public Map>> diffKeyStartstr(String key, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; /** * List the net changes made to the {@code key} field across all records * from {@code start} to {@code end}. * *

* If you begin with the state of an inverted index for {@code key} at * {@code start} and re-apply all the changes in the diff, you'll re-create * the state of the same index at {@code end}. *

* * @param key the field name * @param start the base timestamp from which the diff is calculated * @param end the comparison timestamp to which the diff is calculated * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} that associates each value stored for {@code key} * across all records to another {@link Map} that associates a * {@link Diff change description} to the {@link Set} of records * where the description applies to that value in the {@code key} * field (i.e. * {"value1": {ADDED: [1, 2], REMOVED: [3, 4]}} * ) * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * * @param key * @param start * @param tend * @param creds * @param transaction * @param environment */ public Map>> diffKeyStartEnd(String key, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; /** * List the net changes made to the {@code key} field across all records * from {@code start} to {@code end}. * *

* If you begin with the state of an inverted index for {@code key} at * {@code start} and re-apply all the changes in the diff, you'll re-create * the state of the same index at {@code end}. *

* * @param key the field name * @param start the base timestamp from which the diff is calculated * @param end the comparison timestamp to which the diff is calculated * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a {@link Map} that associates each value stored for {@code key} * across all records to another {@link Map} that associates a * {@link Diff change description} to the {@link Set} of records * where the description applies to that value in the {@code key} * field (i.e. * {"value1": {ADDED: [1, 2], REMOVED: [3, 4]}} * ) * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.ParseException if a string cannot be properly parsed * into a timestamp * * @param key * @param start * @param tend * @param creds * @param transaction * @param environment */ public Map>> diffKeyStartstrEndstr(String key, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; /** * Invoke a Plugin method. * *

* Assuming that there is a plugin distribution that contains a class * named after {@code id}, and has the specified {@code method}, invoke the * same with {@code params} and return the result. *

* * @param id the fully qualified name of the plugin class * @param method the name of the method in {@code clazz} to invoke * @param params a list of TObjects to pass to {@code method} as args * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return the result of the method invocation * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.InvalidArgumentException if any of the arguments are * invalid * * @param id * @param method * @param params * @param creds * @param transaction * @param environment */ public com.cinchapi.concourse.thrift.ComplexTObject invokePlugin(String id, String method, List params, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException; /** * Attempt to authenticate the user identified by the {@code username} and * {@code password} combination to the specified {@code environment}. If * successful, establish a new session within the {@code environment} on * behalf of that user and return an {@link shared.AccessToken}, which is * required for all subsequent operations. * *

* The AccessToken may expire after a while so clients should be * prepared to seamlessly login again for active user sessions. *

* * @param username a binary representation of the UTF-8 encoded username * @param password a binary representation of the UTF-8 encoded password * @param environment the name of the environment into which to login * @return an {@link shared.AccessToken} to submit with all subsequent method * calls * @throws exceptions.SecurityException if the login is not successful * * @param username * @param password * @param environment */ public com.cinchapi.concourse.thrift.AccessToken login(ByteBuffer username, ByteBuffer password, String environment) throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException; /** * Terminate the session within {@code environment} for the user represented * by the {@code token}. Afterwards, all other attempts to use {@code token} * will result in a {@link exceptions.SecurityException} being thrown. * * @param token the {@link shared.AccessToken to expire} * @param environment the environment of the session represented by the * {@code token} * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * * @param token * @param environment */ public void logout(com.cinchapi.concourse.thrift.AccessToken token, String environment) throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException; /** * Start a new transaction. *

* This method will turn on STAGING mode so that all subsequent changes are * collected in an isolated buffer before possibly being committed to the * database. Staged operations are guaranteed to be reliable, all or nothing * units of work that allow correct recovery from failures and provide * isolation between clients so the database is always in a consistent state. *

*

* After this method returns, all subsequent operations will be done in * {@code staging} mode until either #abort(shared.AccessToken) or * #commit(shared.AccessToken) is called. *

* * @param token * @param environment * @return TransactionToken * @throws TSecurityException * * @param token * @param environment */ public com.cinchapi.concourse.thrift.TransactionToken stage(com.cinchapi.concourse.thrift.AccessToken token, String environment) throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException; public Set insertJson(String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public boolean insertJsonRecord(String json, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map insertJsonRecords(String json, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public boolean removeKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException; public Map removeKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException; public void setKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException; public long setKeyValue(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException; public void setKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException; /** * The {@code value} in {@code key} of {@code record} are added * and removed to be set as exactly the same as the input values * * @param key the field name * @param record the record id where an attempt is made to add the data * @param values collection of values to set * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param transaction the {@link shared.TransactionToken} that the * server uses to find the current transaction for the * client (optional) * @param environment the environment to which the client is connected * @return a bool that indicates if the data was added * @throws exceptions.SecurityException if the {@code creds} don't * represent a valid session * @throws exceptions.TransactionException if the client was in a * transaction and an error occurred that caused the transaction * to end itself * @throws exceptions.InvalidArgumentException if any of provided data * can't be stored * * @param key * @param record * @param values * @param creds * @param transaction * @param environment */ public void reconcileKeyRecordValues(String key, long record, Set values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException; public Set inventory(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> selectRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map>> selectRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> selectRecordTime(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> selectRecordTimestr(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map>> selectRecordsTime(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map>> selectRecordsTimestr(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Set selectKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Set selectKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Set selectKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map> selectKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> selectKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> selectKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map>> selectKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> selectKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> selectKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> selectKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map>> selectKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map>> selectKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map>> selectCriteria(com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map>> selectCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map>> selectCriteriaTime(com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map>> selectCriteriaTimestr(com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map>> selectCclTime(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map>> selectCclTimestr(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map> selectKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> selectKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map> selectKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> selectKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map> selectKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map> selectKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map>> selectKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map>> selectKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map>> selectKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map>> selectKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map>> selectKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map>> selectKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject getKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject getKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject getKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map getKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map getKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map getKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map> getKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map getKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map getKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map getKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map> getKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> getKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map getKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> getCriteria(com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> getCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map> getCriteriaTime(com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> getCriteriaTimestr(com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map> getCclTime(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map> getCclTimestr(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map getKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map getKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map getKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map getKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map getKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map> getKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> getKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map> getKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> getKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map> getKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map> getKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public boolean verifyKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public boolean verifyKeyValueRecordTime(String key, com.cinchapi.concourse.thrift.TObject value, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public boolean verifyKeyValueRecordTimestr(String key, com.cinchapi.concourse.thrift.TObject value, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public String jsonifyRecords(List records, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public String jsonifyRecordsTime(List records, long timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public String jsonifyRecordsTimestr(List records, String timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Set findCriteria(com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Set findCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Set findKeyOperatorValues(String key, com.cinchapi.concourse.thrift.Operator operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Set findKeyOperatorValuesTime(String key, com.cinchapi.concourse.thrift.Operator operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Set findKeyOperatorValuesTimestr(String key, com.cinchapi.concourse.thrift.Operator operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Set findKeyOperatorstrValues(String key, String operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Set findKeyOperatorstrValuesTime(String key, String operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Set findKeyOperatorstrValuesTimestr(String key, String operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Set search(String key, String query, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public void revertKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public void revertKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public void revertKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public void revertKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public void revertKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public void revertKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public void revertKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public void revertKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map pingRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public boolean pingRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public boolean verifyAndSwap(String key, com.cinchapi.concourse.thrift.TObject expected, long record, com.cinchapi.concourse.thrift.TObject replacement, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public void verifyOrSet(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException; public long findOrAddKeyValue(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.DuplicateEntryException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException; public long findOrInsertCriteriaJson(com.cinchapi.concourse.thrift.TCriteria criteria, String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.DuplicateEntryException, org.apache.thrift.TException; public long findOrInsertCclJson(String ccl, String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.DuplicateEntryException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject sumKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject sumKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject sumKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject sumKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject sumKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject sumKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject sumKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject sumKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject sumKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject sumKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject averageKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject averageKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject averageKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject averageKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject averageKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject averageKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject averageKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject averageKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject averageKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public com.cinchapi.concourse.thrift.TObject averageKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map> navigateKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> navigateKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> navigateKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map>> navigateKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map>> navigateKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map>> navigateKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map>> navigateKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> navigateKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> navigateKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> navigateKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map>> navigateKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map>> navigateKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public Map> navigateKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map> navigateKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map> navigateKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map>> navigateKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map>> navigateKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map>> navigateKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map> navigateKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map> navigateKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map> navigateKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map>> navigateKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map>> navigateKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public Map>> navigateKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; public String getServerEnvironment(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public String getServerVersion() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public long time(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException; public long timePhrase(String phrase, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException; } public interface AsyncIface { public void abort(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void addKeyValue(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void addKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void addKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void auditRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void auditRecordStart(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void auditRecordStartstr(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void auditRecordStartEnd(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void auditRecordStartstrEndstr(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void auditKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void auditKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void auditKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void auditKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void auditKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void browseKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void browseKeys(List keys, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void browseKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void browseKeyTimestr(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void browseKeysTime(List keys, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void browseKeysTimestr(List keys, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void chronologizeKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void chronologizeKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void chronologizeKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void chronologizeKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void chronologizeKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void clearRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void clearRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void clearKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void clearKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void clearKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void clearKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void commit(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void describe(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void describeTime(long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void describeTimestr(String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void describeRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void describeRecordTime(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void describeRecordTimestr(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void describeRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void describeRecordsTime(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void describeRecordsTimestr(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffRecordStart(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffRecordStartstr(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffRecordStartEnd(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffRecordStartstrEndstr(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffKeyStart(String key, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffKeyStartstr(String key, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffKeyStartEnd(String key, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffKeyStartstrEndstr(String key, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void invokePlugin(String id, String method, List params, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void login(ByteBuffer username, ByteBuffer password, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void logout(com.cinchapi.concourse.thrift.AccessToken token, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void stage(com.cinchapi.concourse.thrift.AccessToken token, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void insertJson(String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void insertJsonRecord(String json, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void insertJsonRecords(String json, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void removeKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void removeKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void setKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void setKeyValue(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void setKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void reconcileKeyRecordValues(String key, long record, Set values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void inventory(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectRecordTime(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectRecordTimestr(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectRecordsTime(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectRecordsTimestr(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectCriteria(com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectCriteriaTime(com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectCriteriaTimestr(com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectCclTime(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectCclTimestr(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void selectKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getCriteria(com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getCriteriaTime(com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getCriteriaTimestr(com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getCclTime(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getCclTimestr(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void verifyKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void verifyKeyValueRecordTime(String key, com.cinchapi.concourse.thrift.TObject value, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void verifyKeyValueRecordTimestr(String key, com.cinchapi.concourse.thrift.TObject value, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void jsonifyRecords(List records, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void jsonifyRecordsTime(List records, long timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void jsonifyRecordsTimestr(List records, String timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findCriteria(com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findKeyOperatorValues(String key, com.cinchapi.concourse.thrift.Operator operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findKeyOperatorValuesTime(String key, com.cinchapi.concourse.thrift.Operator operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findKeyOperatorValuesTimestr(String key, com.cinchapi.concourse.thrift.Operator operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findKeyOperatorstrValues(String key, String operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findKeyOperatorstrValuesTime(String key, String operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findKeyOperatorstrValuesTimestr(String key, String operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void search(String key, String query, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void revertKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void revertKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void revertKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void revertKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void revertKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void revertKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void revertKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void revertKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void pingRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void pingRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void verifyAndSwap(String key, com.cinchapi.concourse.thrift.TObject expected, long record, com.cinchapi.concourse.thrift.TObject replacement, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void verifyOrSet(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findOrAddKeyValue(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findOrInsertCriteriaJson(com.cinchapi.concourse.thrift.TCriteria criteria, String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void findOrInsertCclJson(String ccl, String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void sumKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void sumKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void sumKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void sumKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void sumKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void sumKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void sumKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void sumKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void sumKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void sumKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void averageKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void averageKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void averageKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void averageKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void averageKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void averageKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void averageKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void averageKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void averageKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void averageKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void navigateKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getServerEnvironment(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getServerVersion(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void time(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void timePhrase(String phrase, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment, 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 abort(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException { send_abort(creds, transaction, environment); recv_abort(); } public void send_abort(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { abort_args args = new abort_args(); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("abort", args); } public void recv_abort() throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException { abort_result result = new abort_result(); receiveBase(result, "abort"); if (result.ex != null) { throw result.ex; } return; } public long addKeyValue(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { send_addKeyValue(key, value, creds, transaction, environment); return recv_addKeyValue(); } public void send_addKeyValue(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { addKeyValue_args args = new addKeyValue_args(); args.setKey(key); args.setValue(value); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("addKeyValue", args); } public long recv_addKeyValue() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { addKeyValue_result result = new addKeyValue_result(); receiveBase(result, "addKeyValue"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addKeyValue failed: unknown result"); } public boolean addKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { send_addKeyValueRecord(key, value, record, creds, transaction, environment); return recv_addKeyValueRecord(); } public void send_addKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { addKeyValueRecord_args args = new addKeyValueRecord_args(); args.setKey(key); args.setValue(value); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("addKeyValueRecord", args); } public boolean recv_addKeyValueRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { addKeyValueRecord_result result = new addKeyValueRecord_result(); receiveBase(result, "addKeyValueRecord"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addKeyValueRecord failed: unknown result"); } public Map addKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { send_addKeyValueRecords(key, value, records, creds, transaction, environment); return recv_addKeyValueRecords(); } public void send_addKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { addKeyValueRecords_args args = new addKeyValueRecords_args(); args.setKey(key); args.setValue(value); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("addKeyValueRecords", args); } public Map recv_addKeyValueRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { addKeyValueRecords_result result = new addKeyValueRecords_result(); receiveBase(result, "addKeyValueRecords"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addKeyValueRecords failed: unknown result"); } public Map auditRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_auditRecord(record, creds, transaction, environment); return recv_auditRecord(); } public void send_auditRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { auditRecord_args args = new auditRecord_args(); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("auditRecord", args); } public Map recv_auditRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { auditRecord_result result = new auditRecord_result(); receiveBase(result, "auditRecord"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "auditRecord failed: unknown result"); } public Map auditRecordStart(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_auditRecordStart(record, start, creds, transaction, environment); return recv_auditRecordStart(); } public void send_auditRecordStart(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { auditRecordStart_args args = new auditRecordStart_args(); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("auditRecordStart", args); } public Map recv_auditRecordStart() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { auditRecordStart_result result = new auditRecordStart_result(); receiveBase(result, "auditRecordStart"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "auditRecordStart failed: unknown result"); } public Map auditRecordStartstr(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_auditRecordStartstr(record, start, creds, transaction, environment); return recv_auditRecordStartstr(); } public void send_auditRecordStartstr(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { auditRecordStartstr_args args = new auditRecordStartstr_args(); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("auditRecordStartstr", args); } public Map recv_auditRecordStartstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { auditRecordStartstr_result result = new auditRecordStartstr_result(); receiveBase(result, "auditRecordStartstr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "auditRecordStartstr failed: unknown result"); } public Map auditRecordStartEnd(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_auditRecordStartEnd(record, start, tend, creds, transaction, environment); return recv_auditRecordStartEnd(); } public void send_auditRecordStartEnd(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { auditRecordStartEnd_args args = new auditRecordStartEnd_args(); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("auditRecordStartEnd", args); } public Map recv_auditRecordStartEnd() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { auditRecordStartEnd_result result = new auditRecordStartEnd_result(); receiveBase(result, "auditRecordStartEnd"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "auditRecordStartEnd failed: unknown result"); } public Map auditRecordStartstrEndstr(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_auditRecordStartstrEndstr(record, start, tend, creds, transaction, environment); return recv_auditRecordStartstrEndstr(); } public void send_auditRecordStartstrEndstr(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { auditRecordStartstrEndstr_args args = new auditRecordStartstrEndstr_args(); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("auditRecordStartstrEndstr", args); } public Map recv_auditRecordStartstrEndstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { auditRecordStartstrEndstr_result result = new auditRecordStartstrEndstr_result(); receiveBase(result, "auditRecordStartstrEndstr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "auditRecordStartstrEndstr failed: unknown result"); } public Map auditKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_auditKeyRecord(key, record, creds, transaction, environment); return recv_auditKeyRecord(); } public void send_auditKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { auditKeyRecord_args args = new auditKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("auditKeyRecord", args); } public Map recv_auditKeyRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { auditKeyRecord_result result = new auditKeyRecord_result(); receiveBase(result, "auditKeyRecord"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "auditKeyRecord failed: unknown result"); } public Map auditKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_auditKeyRecordStart(key, record, start, creds, transaction, environment); return recv_auditKeyRecordStart(); } public void send_auditKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { auditKeyRecordStart_args args = new auditKeyRecordStart_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("auditKeyRecordStart", args); } public Map recv_auditKeyRecordStart() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { auditKeyRecordStart_result result = new auditKeyRecordStart_result(); receiveBase(result, "auditKeyRecordStart"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "auditKeyRecordStart failed: unknown result"); } public Map auditKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_auditKeyRecordStartstr(key, record, start, creds, transaction, environment); return recv_auditKeyRecordStartstr(); } public void send_auditKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { auditKeyRecordStartstr_args args = new auditKeyRecordStartstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("auditKeyRecordStartstr", args); } public Map recv_auditKeyRecordStartstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { auditKeyRecordStartstr_result result = new auditKeyRecordStartstr_result(); receiveBase(result, "auditKeyRecordStartstr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "auditKeyRecordStartstr failed: unknown result"); } public Map auditKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_auditKeyRecordStartEnd(key, record, start, tend, creds, transaction, environment); return recv_auditKeyRecordStartEnd(); } public void send_auditKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { auditKeyRecordStartEnd_args args = new auditKeyRecordStartEnd_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("auditKeyRecordStartEnd", args); } public Map recv_auditKeyRecordStartEnd() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { auditKeyRecordStartEnd_result result = new auditKeyRecordStartEnd_result(); receiveBase(result, "auditKeyRecordStartEnd"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "auditKeyRecordStartEnd failed: unknown result"); } public Map auditKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_auditKeyRecordStartstrEndstr(key, record, start, tend, creds, transaction, environment); return recv_auditKeyRecordStartstrEndstr(); } public void send_auditKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { auditKeyRecordStartstrEndstr_args args = new auditKeyRecordStartstrEndstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("auditKeyRecordStartstrEndstr", args); } public Map recv_auditKeyRecordStartstrEndstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { auditKeyRecordStartstrEndstr_result result = new auditKeyRecordStartstrEndstr_result(); receiveBase(result, "auditKeyRecordStartstrEndstr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "auditKeyRecordStartstrEndstr failed: unknown result"); } public Map> browseKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_browseKey(key, creds, transaction, environment); return recv_browseKey(); } public void send_browseKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { browseKey_args args = new browseKey_args(); args.setKey(key); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("browseKey", args); } public Map> recv_browseKey() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { browseKey_result result = new browseKey_result(); receiveBase(result, "browseKey"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "browseKey failed: unknown result"); } public Map>> browseKeys(List keys, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_browseKeys(keys, creds, transaction, environment); return recv_browseKeys(); } public void send_browseKeys(List keys, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { browseKeys_args args = new browseKeys_args(); args.setKeys(keys); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("browseKeys", args); } public Map>> recv_browseKeys() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { browseKeys_result result = new browseKeys_result(); receiveBase(result, "browseKeys"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "browseKeys failed: unknown result"); } public Map> browseKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_browseKeyTime(key, timestamp, creds, transaction, environment); return recv_browseKeyTime(); } public void send_browseKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { browseKeyTime_args args = new browseKeyTime_args(); args.setKey(key); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("browseKeyTime", args); } public Map> recv_browseKeyTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { browseKeyTime_result result = new browseKeyTime_result(); receiveBase(result, "browseKeyTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "browseKeyTime failed: unknown result"); } public Map> browseKeyTimestr(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_browseKeyTimestr(key, timestamp, creds, transaction, environment); return recv_browseKeyTimestr(); } public void send_browseKeyTimestr(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { browseKeyTimestr_args args = new browseKeyTimestr_args(); args.setKey(key); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("browseKeyTimestr", args); } public Map> recv_browseKeyTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { browseKeyTimestr_result result = new browseKeyTimestr_result(); receiveBase(result, "browseKeyTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "browseKeyTimestr failed: unknown result"); } public Map>> browseKeysTime(List keys, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_browseKeysTime(keys, timestamp, creds, transaction, environment); return recv_browseKeysTime(); } public void send_browseKeysTime(List keys, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { browseKeysTime_args args = new browseKeysTime_args(); args.setKeys(keys); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("browseKeysTime", args); } public Map>> recv_browseKeysTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { browseKeysTime_result result = new browseKeysTime_result(); receiveBase(result, "browseKeysTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "browseKeysTime failed: unknown result"); } public Map>> browseKeysTimestr(List keys, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_browseKeysTimestr(keys, timestamp, creds, transaction, environment); return recv_browseKeysTimestr(); } public void send_browseKeysTimestr(List keys, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { browseKeysTimestr_args args = new browseKeysTimestr_args(); args.setKeys(keys); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("browseKeysTimestr", args); } public Map>> recv_browseKeysTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { browseKeysTimestr_result result = new browseKeysTimestr_result(); receiveBase(result, "browseKeysTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "browseKeysTimestr failed: unknown result"); } public Map> chronologizeKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_chronologizeKeyRecord(key, record, creds, transaction, environment); return recv_chronologizeKeyRecord(); } public void send_chronologizeKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { chronologizeKeyRecord_args args = new chronologizeKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("chronologizeKeyRecord", args); } public Map> recv_chronologizeKeyRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { chronologizeKeyRecord_result result = new chronologizeKeyRecord_result(); receiveBase(result, "chronologizeKeyRecord"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "chronologizeKeyRecord failed: unknown result"); } public Map> chronologizeKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_chronologizeKeyRecordStart(key, record, start, creds, transaction, environment); return recv_chronologizeKeyRecordStart(); } public void send_chronologizeKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { chronologizeKeyRecordStart_args args = new chronologizeKeyRecordStart_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("chronologizeKeyRecordStart", args); } public Map> recv_chronologizeKeyRecordStart() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { chronologizeKeyRecordStart_result result = new chronologizeKeyRecordStart_result(); receiveBase(result, "chronologizeKeyRecordStart"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "chronologizeKeyRecordStart failed: unknown result"); } public Map> chronologizeKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_chronologizeKeyRecordStartstr(key, record, start, creds, transaction, environment); return recv_chronologizeKeyRecordStartstr(); } public void send_chronologizeKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { chronologizeKeyRecordStartstr_args args = new chronologizeKeyRecordStartstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("chronologizeKeyRecordStartstr", args); } public Map> recv_chronologizeKeyRecordStartstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { chronologizeKeyRecordStartstr_result result = new chronologizeKeyRecordStartstr_result(); receiveBase(result, "chronologizeKeyRecordStartstr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "chronologizeKeyRecordStartstr failed: unknown result"); } public Map> chronologizeKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_chronologizeKeyRecordStartEnd(key, record, start, tend, creds, transaction, environment); return recv_chronologizeKeyRecordStartEnd(); } public void send_chronologizeKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { chronologizeKeyRecordStartEnd_args args = new chronologizeKeyRecordStartEnd_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("chronologizeKeyRecordStartEnd", args); } public Map> recv_chronologizeKeyRecordStartEnd() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { chronologizeKeyRecordStartEnd_result result = new chronologizeKeyRecordStartEnd_result(); receiveBase(result, "chronologizeKeyRecordStartEnd"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "chronologizeKeyRecordStartEnd failed: unknown result"); } public Map> chronologizeKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_chronologizeKeyRecordStartstrEndstr(key, record, start, tend, creds, transaction, environment); return recv_chronologizeKeyRecordStartstrEndstr(); } public void send_chronologizeKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { chronologizeKeyRecordStartstrEndstr_args args = new chronologizeKeyRecordStartstrEndstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("chronologizeKeyRecordStartstrEndstr", args); } public Map> recv_chronologizeKeyRecordStartstrEndstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { chronologizeKeyRecordStartstrEndstr_result result = new chronologizeKeyRecordStartstrEndstr_result(); receiveBase(result, "chronologizeKeyRecordStartstrEndstr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "chronologizeKeyRecordStartstrEndstr failed: unknown result"); } public void clearRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_clearRecord(record, creds, transaction, environment); recv_clearRecord(); } public void send_clearRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { clearRecord_args args = new clearRecord_args(); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("clearRecord", args); } public void recv_clearRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { clearRecord_result result = new clearRecord_result(); receiveBase(result, "clearRecord"); if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } return; } public void clearRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_clearRecords(records, creds, transaction, environment); recv_clearRecords(); } public void send_clearRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { clearRecords_args args = new clearRecords_args(); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("clearRecords", args); } public void recv_clearRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { clearRecords_result result = new clearRecords_result(); receiveBase(result, "clearRecords"); if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } return; } public void clearKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_clearKeyRecord(key, record, creds, transaction, environment); recv_clearKeyRecord(); } public void send_clearKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { clearKeyRecord_args args = new clearKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("clearKeyRecord", args); } public void recv_clearKeyRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { clearKeyRecord_result result = new clearKeyRecord_result(); receiveBase(result, "clearKeyRecord"); if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } return; } public void clearKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_clearKeysRecord(keys, record, creds, transaction, environment); recv_clearKeysRecord(); } public void send_clearKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { clearKeysRecord_args args = new clearKeysRecord_args(); args.setKeys(keys); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("clearKeysRecord", args); } public void recv_clearKeysRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { clearKeysRecord_result result = new clearKeysRecord_result(); receiveBase(result, "clearKeysRecord"); if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } return; } public void clearKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_clearKeyRecords(key, records, creds, transaction, environment); recv_clearKeyRecords(); } public void send_clearKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { clearKeyRecords_args args = new clearKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("clearKeyRecords", args); } public void recv_clearKeyRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { clearKeyRecords_result result = new clearKeyRecords_result(); receiveBase(result, "clearKeyRecords"); if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } return; } public void clearKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_clearKeysRecords(keys, records, creds, transaction, environment); recv_clearKeysRecords(); } public void send_clearKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { clearKeysRecords_args args = new clearKeysRecords_args(); args.setKeys(keys); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("clearKeysRecords", args); } public void recv_clearKeysRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { clearKeysRecords_result result = new clearKeysRecords_result(); receiveBase(result, "clearKeysRecords"); if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } return; } public boolean commit(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_commit(creds, transaction, environment); return recv_commit(); } public void send_commit(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { commit_args args = new commit_args(); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("commit", args); } public boolean recv_commit() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { commit_result result = new commit_result(); receiveBase(result, "commit"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "commit failed: unknown result"); } public Set describe(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_describe(creds, transaction, environment); return recv_describe(); } public void send_describe(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { describe_args args = new describe_args(); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("describe", args); } public Set recv_describe() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { describe_result result = new describe_result(); receiveBase(result, "describe"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "describe failed: unknown result"); } public Set describeTime(long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_describeTime(timestamp, creds, transaction, environment); return recv_describeTime(); } public void send_describeTime(long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { describeTime_args args = new describeTime_args(); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("describeTime", args); } public Set recv_describeTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { describeTime_result result = new describeTime_result(); receiveBase(result, "describeTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "describeTime failed: unknown result"); } public Set describeTimestr(String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_describeTimestr(timestamp, creds, transaction, environment); return recv_describeTimestr(); } public void send_describeTimestr(String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { describeTimestr_args args = new describeTimestr_args(); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("describeTimestr", args); } public Set recv_describeTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { describeTimestr_result result = new describeTimestr_result(); receiveBase(result, "describeTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "describeTimestr failed: unknown result"); } public Set describeRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_describeRecord(record, creds, transaction, environment); return recv_describeRecord(); } public void send_describeRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { describeRecord_args args = new describeRecord_args(); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("describeRecord", args); } public Set recv_describeRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { describeRecord_result result = new describeRecord_result(); receiveBase(result, "describeRecord"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "describeRecord failed: unknown result"); } public Set describeRecordTime(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_describeRecordTime(record, timestamp, creds, transaction, environment); return recv_describeRecordTime(); } public void send_describeRecordTime(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { describeRecordTime_args args = new describeRecordTime_args(); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("describeRecordTime", args); } public Set recv_describeRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { describeRecordTime_result result = new describeRecordTime_result(); receiveBase(result, "describeRecordTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "describeRecordTime failed: unknown result"); } public Set describeRecordTimestr(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_describeRecordTimestr(record, timestamp, creds, transaction, environment); return recv_describeRecordTimestr(); } public void send_describeRecordTimestr(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { describeRecordTimestr_args args = new describeRecordTimestr_args(); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("describeRecordTimestr", args); } public Set recv_describeRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { describeRecordTimestr_result result = new describeRecordTimestr_result(); receiveBase(result, "describeRecordTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "describeRecordTimestr failed: unknown result"); } public Map> describeRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_describeRecords(records, creds, transaction, environment); return recv_describeRecords(); } public void send_describeRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { describeRecords_args args = new describeRecords_args(); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("describeRecords", args); } public Map> recv_describeRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { describeRecords_result result = new describeRecords_result(); receiveBase(result, "describeRecords"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "describeRecords failed: unknown result"); } public Map> describeRecordsTime(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_describeRecordsTime(records, timestamp, creds, transaction, environment); return recv_describeRecordsTime(); } public void send_describeRecordsTime(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { describeRecordsTime_args args = new describeRecordsTime_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("describeRecordsTime", args); } public Map> recv_describeRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { describeRecordsTime_result result = new describeRecordsTime_result(); receiveBase(result, "describeRecordsTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "describeRecordsTime failed: unknown result"); } public Map> describeRecordsTimestr(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_describeRecordsTimestr(records, timestamp, creds, transaction, environment); return recv_describeRecordsTimestr(); } public void send_describeRecordsTimestr(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { describeRecordsTimestr_args args = new describeRecordsTimestr_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("describeRecordsTimestr", args); } public Map> recv_describeRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { describeRecordsTimestr_result result = new describeRecordsTimestr_result(); receiveBase(result, "describeRecordsTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "describeRecordsTimestr failed: unknown result"); } public Map>> diffRecordStart(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_diffRecordStart(record, start, creds, transaction, environment); return recv_diffRecordStart(); } public void send_diffRecordStart(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffRecordStart_args args = new diffRecordStart_args(); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffRecordStart", args); } public Map>> recv_diffRecordStart() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { diffRecordStart_result result = new diffRecordStart_result(); receiveBase(result, "diffRecordStart"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "diffRecordStart failed: unknown result"); } public Map>> diffRecordStartstr(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_diffRecordStartstr(record, start, creds, transaction, environment); return recv_diffRecordStartstr(); } public void send_diffRecordStartstr(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffRecordStartstr_args args = new diffRecordStartstr_args(); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffRecordStartstr", args); } public Map>> recv_diffRecordStartstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { diffRecordStartstr_result result = new diffRecordStartstr_result(); receiveBase(result, "diffRecordStartstr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "diffRecordStartstr failed: unknown result"); } public Map>> diffRecordStartEnd(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_diffRecordStartEnd(record, start, tend, creds, transaction, environment); return recv_diffRecordStartEnd(); } public void send_diffRecordStartEnd(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffRecordStartEnd_args args = new diffRecordStartEnd_args(); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffRecordStartEnd", args); } public Map>> recv_diffRecordStartEnd() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { diffRecordStartEnd_result result = new diffRecordStartEnd_result(); receiveBase(result, "diffRecordStartEnd"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "diffRecordStartEnd failed: unknown result"); } public Map>> diffRecordStartstrEndstr(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_diffRecordStartstrEndstr(record, start, tend, creds, transaction, environment); return recv_diffRecordStartstrEndstr(); } public void send_diffRecordStartstrEndstr(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffRecordStartstrEndstr_args args = new diffRecordStartstrEndstr_args(); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffRecordStartstrEndstr", args); } public Map>> recv_diffRecordStartstrEndstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { diffRecordStartstrEndstr_result result = new diffRecordStartstrEndstr_result(); receiveBase(result, "diffRecordStartstrEndstr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "diffRecordStartstrEndstr failed: unknown result"); } public Map> diffKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_diffKeyRecordStart(key, record, start, creds, transaction, environment); return recv_diffKeyRecordStart(); } public void send_diffKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffKeyRecordStart_args args = new diffKeyRecordStart_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffKeyRecordStart", args); } public Map> recv_diffKeyRecordStart() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { diffKeyRecordStart_result result = new diffKeyRecordStart_result(); receiveBase(result, "diffKeyRecordStart"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "diffKeyRecordStart failed: unknown result"); } public Map> diffKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_diffKeyRecordStartstr(key, record, start, creds, transaction, environment); return recv_diffKeyRecordStartstr(); } public void send_diffKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffKeyRecordStartstr_args args = new diffKeyRecordStartstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffKeyRecordStartstr", args); } public Map> recv_diffKeyRecordStartstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { diffKeyRecordStartstr_result result = new diffKeyRecordStartstr_result(); receiveBase(result, "diffKeyRecordStartstr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "diffKeyRecordStartstr failed: unknown result"); } public Map> diffKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_diffKeyRecordStartEnd(key, record, start, tend, creds, transaction, environment); return recv_diffKeyRecordStartEnd(); } public void send_diffKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffKeyRecordStartEnd_args args = new diffKeyRecordStartEnd_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffKeyRecordStartEnd", args); } public Map> recv_diffKeyRecordStartEnd() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { diffKeyRecordStartEnd_result result = new diffKeyRecordStartEnd_result(); receiveBase(result, "diffKeyRecordStartEnd"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "diffKeyRecordStartEnd failed: unknown result"); } public Map> diffKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_diffKeyRecordStartstrEndstr(key, record, start, tend, creds, transaction, environment); return recv_diffKeyRecordStartstrEndstr(); } public void send_diffKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffKeyRecordStartstrEndstr_args args = new diffKeyRecordStartstrEndstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffKeyRecordStartstrEndstr", args); } public Map> recv_diffKeyRecordStartstrEndstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { diffKeyRecordStartstrEndstr_result result = new diffKeyRecordStartstrEndstr_result(); receiveBase(result, "diffKeyRecordStartstrEndstr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "diffKeyRecordStartstrEndstr failed: unknown result"); } public Map>> diffKeyStart(String key, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_diffKeyStart(key, start, creds, transaction, environment); return recv_diffKeyStart(); } public void send_diffKeyStart(String key, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffKeyStart_args args = new diffKeyStart_args(); args.setKey(key); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffKeyStart", args); } public Map>> recv_diffKeyStart() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { diffKeyStart_result result = new diffKeyStart_result(); receiveBase(result, "diffKeyStart"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "diffKeyStart failed: unknown result"); } public Map>> diffKeyStartstr(String key, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_diffKeyStartstr(key, start, creds, transaction, environment); return recv_diffKeyStartstr(); } public void send_diffKeyStartstr(String key, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffKeyStartstr_args args = new diffKeyStartstr_args(); args.setKey(key); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffKeyStartstr", args); } public Map>> recv_diffKeyStartstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { diffKeyStartstr_result result = new diffKeyStartstr_result(); receiveBase(result, "diffKeyStartstr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "diffKeyStartstr failed: unknown result"); } public Map>> diffKeyStartEnd(String key, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_diffKeyStartEnd(key, start, tend, creds, transaction, environment); return recv_diffKeyStartEnd(); } public void send_diffKeyStartEnd(String key, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffKeyStartEnd_args args = new diffKeyStartEnd_args(); args.setKey(key); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffKeyStartEnd", args); } public Map>> recv_diffKeyStartEnd() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { diffKeyStartEnd_result result = new diffKeyStartEnd_result(); receiveBase(result, "diffKeyStartEnd"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "diffKeyStartEnd failed: unknown result"); } public Map>> diffKeyStartstrEndstr(String key, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_diffKeyStartstrEndstr(key, start, tend, creds, transaction, environment); return recv_diffKeyStartstrEndstr(); } public void send_diffKeyStartstrEndstr(String key, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { diffKeyStartstrEndstr_args args = new diffKeyStartstrEndstr_args(); args.setKey(key); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("diffKeyStartstrEndstr", args); } public Map>> recv_diffKeyStartstrEndstr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { diffKeyStartstrEndstr_result result = new diffKeyStartstrEndstr_result(); receiveBase(result, "diffKeyStartstrEndstr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "diffKeyStartstrEndstr failed: unknown result"); } public com.cinchapi.concourse.thrift.ComplexTObject invokePlugin(String id, String method, List params, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { send_invokePlugin(id, method, params, creds, transaction, environment); return recv_invokePlugin(); } public void send_invokePlugin(String id, String method, List params, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { invokePlugin_args args = new invokePlugin_args(); args.setId(id); args.setMethod(method); args.setParams(params); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("invokePlugin", args); } public com.cinchapi.concourse.thrift.ComplexTObject recv_invokePlugin() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { invokePlugin_result result = new invokePlugin_result(); receiveBase(result, "invokePlugin"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "invokePlugin failed: unknown result"); } public com.cinchapi.concourse.thrift.AccessToken login(ByteBuffer username, ByteBuffer password, String environment) throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException { send_login(username, password, environment); return recv_login(); } public void send_login(ByteBuffer username, ByteBuffer password, String environment) throws org.apache.thrift.TException { login_args args = new login_args(); args.setUsername(username); args.setPassword(password); args.setEnvironment(environment); sendBase("login", args); } public com.cinchapi.concourse.thrift.AccessToken recv_login() throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException { login_result result = new login_result(); receiveBase(result, "login"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "login failed: unknown result"); } public void logout(com.cinchapi.concourse.thrift.AccessToken token, String environment) throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException { send_logout(token, environment); recv_logout(); } public void send_logout(com.cinchapi.concourse.thrift.AccessToken token, String environment) throws org.apache.thrift.TException { logout_args args = new logout_args(); args.setToken(token); args.setEnvironment(environment); sendBase("logout", args); } public void recv_logout() throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException { logout_result result = new logout_result(); receiveBase(result, "logout"); if (result.ex != null) { throw result.ex; } return; } public com.cinchapi.concourse.thrift.TransactionToken stage(com.cinchapi.concourse.thrift.AccessToken token, String environment) throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException { send_stage(token, environment); return recv_stage(); } public void send_stage(com.cinchapi.concourse.thrift.AccessToken token, String environment) throws org.apache.thrift.TException { stage_args args = new stage_args(); args.setToken(token); args.setEnvironment(environment); sendBase("stage", args); } public com.cinchapi.concourse.thrift.TransactionToken recv_stage() throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException { stage_result result = new stage_result(); receiveBase(result, "stage"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "stage failed: unknown result"); } public Set insertJson(String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_insertJson(json, creds, transaction, environment); return recv_insertJson(); } public void send_insertJson(String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { insertJson_args args = new insertJson_args(); args.setJson(json); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("insertJson", args); } public Set recv_insertJson() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { insertJson_result result = new insertJson_result(); receiveBase(result, "insertJson"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "insertJson failed: unknown result"); } public boolean insertJsonRecord(String json, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_insertJsonRecord(json, record, creds, transaction, environment); return recv_insertJsonRecord(); } public void send_insertJsonRecord(String json, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { insertJsonRecord_args args = new insertJsonRecord_args(); args.setJson(json); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("insertJsonRecord", args); } public boolean recv_insertJsonRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { insertJsonRecord_result result = new insertJsonRecord_result(); receiveBase(result, "insertJsonRecord"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "insertJsonRecord failed: unknown result"); } public Map insertJsonRecords(String json, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_insertJsonRecords(json, records, creds, transaction, environment); return recv_insertJsonRecords(); } public void send_insertJsonRecords(String json, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { insertJsonRecords_args args = new insertJsonRecords_args(); args.setJson(json); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("insertJsonRecords", args); } public Map recv_insertJsonRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { insertJsonRecords_result result = new insertJsonRecords_result(); receiveBase(result, "insertJsonRecords"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "insertJsonRecords failed: unknown result"); } public boolean removeKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { send_removeKeyValueRecord(key, value, record, creds, transaction, environment); return recv_removeKeyValueRecord(); } public void send_removeKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { removeKeyValueRecord_args args = new removeKeyValueRecord_args(); args.setKey(key); args.setValue(value); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("removeKeyValueRecord", args); } public boolean recv_removeKeyValueRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { removeKeyValueRecord_result result = new removeKeyValueRecord_result(); receiveBase(result, "removeKeyValueRecord"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "removeKeyValueRecord failed: unknown result"); } public Map removeKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { send_removeKeyValueRecords(key, value, records, creds, transaction, environment); return recv_removeKeyValueRecords(); } public void send_removeKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { removeKeyValueRecords_args args = new removeKeyValueRecords_args(); args.setKey(key); args.setValue(value); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("removeKeyValueRecords", args); } public Map recv_removeKeyValueRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { removeKeyValueRecords_result result = new removeKeyValueRecords_result(); receiveBase(result, "removeKeyValueRecords"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "removeKeyValueRecords failed: unknown result"); } public void setKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { send_setKeyValueRecord(key, value, record, creds, transaction, environment); recv_setKeyValueRecord(); } public void send_setKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { setKeyValueRecord_args args = new setKeyValueRecord_args(); args.setKey(key); args.setValue(value); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("setKeyValueRecord", args); } public void recv_setKeyValueRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { setKeyValueRecord_result result = new setKeyValueRecord_result(); receiveBase(result, "setKeyValueRecord"); if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } return; } public long setKeyValue(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { send_setKeyValue(key, value, creds, transaction, environment); return recv_setKeyValue(); } public void send_setKeyValue(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { setKeyValue_args args = new setKeyValue_args(); args.setKey(key); args.setValue(value); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("setKeyValue", args); } public long recv_setKeyValue() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { setKeyValue_result result = new setKeyValue_result(); receiveBase(result, "setKeyValue"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setKeyValue failed: unknown result"); } public void setKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { send_setKeyValueRecords(key, value, records, creds, transaction, environment); recv_setKeyValueRecords(); } public void send_setKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { setKeyValueRecords_args args = new setKeyValueRecords_args(); args.setKey(key); args.setValue(value); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("setKeyValueRecords", args); } public void recv_setKeyValueRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { setKeyValueRecords_result result = new setKeyValueRecords_result(); receiveBase(result, "setKeyValueRecords"); if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } return; } public void reconcileKeyRecordValues(String key, long record, Set values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { send_reconcileKeyRecordValues(key, record, values, creds, transaction, environment); recv_reconcileKeyRecordValues(); } public void send_reconcileKeyRecordValues(String key, long record, Set values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { reconcileKeyRecordValues_args args = new reconcileKeyRecordValues_args(); args.setKey(key); args.setRecord(record); args.setValues(values); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("reconcileKeyRecordValues", args); } public void recv_reconcileKeyRecordValues() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { reconcileKeyRecordValues_result result = new reconcileKeyRecordValues_result(); receiveBase(result, "reconcileKeyRecordValues"); if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } return; } public Set inventory(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_inventory(creds, transaction, environment); return recv_inventory(); } public void send_inventory(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { inventory_args args = new inventory_args(); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("inventory", args); } public Set recv_inventory() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { inventory_result result = new inventory_result(); receiveBase(result, "inventory"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "inventory failed: unknown result"); } public Map> selectRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_selectRecord(record, creds, transaction, environment); return recv_selectRecord(); } public void send_selectRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectRecord_args args = new selectRecord_args(); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectRecord", args); } public Map> recv_selectRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { selectRecord_result result = new selectRecord_result(); receiveBase(result, "selectRecord"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectRecord failed: unknown result"); } public Map>> selectRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_selectRecords(records, creds, transaction, environment); return recv_selectRecords(); } public void send_selectRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectRecords_args args = new selectRecords_args(); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectRecords", args); } public Map>> recv_selectRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { selectRecords_result result = new selectRecords_result(); receiveBase(result, "selectRecords"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectRecords failed: unknown result"); } public Map> selectRecordTime(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_selectRecordTime(record, timestamp, creds, transaction, environment); return recv_selectRecordTime(); } public void send_selectRecordTime(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectRecordTime_args args = new selectRecordTime_args(); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectRecordTime", args); } public Map> recv_selectRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { selectRecordTime_result result = new selectRecordTime_result(); receiveBase(result, "selectRecordTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectRecordTime failed: unknown result"); } public Map> selectRecordTimestr(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_selectRecordTimestr(record, timestamp, creds, transaction, environment); return recv_selectRecordTimestr(); } public void send_selectRecordTimestr(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectRecordTimestr_args args = new selectRecordTimestr_args(); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectRecordTimestr", args); } public Map> recv_selectRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { selectRecordTimestr_result result = new selectRecordTimestr_result(); receiveBase(result, "selectRecordTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectRecordTimestr failed: unknown result"); } public Map>> selectRecordsTime(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_selectRecordsTime(records, timestamp, creds, transaction, environment); return recv_selectRecordsTime(); } public void send_selectRecordsTime(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectRecordsTime_args args = new selectRecordsTime_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectRecordsTime", args); } public Map>> recv_selectRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { selectRecordsTime_result result = new selectRecordsTime_result(); receiveBase(result, "selectRecordsTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectRecordsTime failed: unknown result"); } public Map>> selectRecordsTimestr(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_selectRecordsTimestr(records, timestamp, creds, transaction, environment); return recv_selectRecordsTimestr(); } public void send_selectRecordsTimestr(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectRecordsTimestr_args args = new selectRecordsTimestr_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectRecordsTimestr", args); } public Map>> recv_selectRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { selectRecordsTimestr_result result = new selectRecordsTimestr_result(); receiveBase(result, "selectRecordsTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectRecordsTimestr failed: unknown result"); } public Set selectKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_selectKeyRecord(key, record, creds, transaction, environment); return recv_selectKeyRecord(); } public void send_selectKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyRecord_args args = new selectKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyRecord", args); } public Set recv_selectKeyRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { selectKeyRecord_result result = new selectKeyRecord_result(); receiveBase(result, "selectKeyRecord"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyRecord failed: unknown result"); } public Set selectKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_selectKeyRecordTime(key, record, timestamp, creds, transaction, environment); return recv_selectKeyRecordTime(); } public void send_selectKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyRecordTime_args args = new selectKeyRecordTime_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyRecordTime", args); } public Set recv_selectKeyRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { selectKeyRecordTime_result result = new selectKeyRecordTime_result(); receiveBase(result, "selectKeyRecordTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyRecordTime failed: unknown result"); } public Set selectKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_selectKeyRecordTimestr(key, record, timestamp, creds, transaction, environment); return recv_selectKeyRecordTimestr(); } public void send_selectKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyRecordTimestr_args args = new selectKeyRecordTimestr_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyRecordTimestr", args); } public Set recv_selectKeyRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { selectKeyRecordTimestr_result result = new selectKeyRecordTimestr_result(); receiveBase(result, "selectKeyRecordTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyRecordTimestr failed: unknown result"); } public Map> selectKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_selectKeysRecord(keys, record, creds, transaction, environment); return recv_selectKeysRecord(); } public void send_selectKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysRecord_args args = new selectKeysRecord_args(); args.setKeys(keys); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysRecord", args); } public Map> recv_selectKeysRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { selectKeysRecord_result result = new selectKeysRecord_result(); receiveBase(result, "selectKeysRecord"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysRecord failed: unknown result"); } public Map> selectKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_selectKeysRecordTime(keys, record, timestamp, creds, transaction, environment); return recv_selectKeysRecordTime(); } public void send_selectKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysRecordTime_args args = new selectKeysRecordTime_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysRecordTime", args); } public Map> recv_selectKeysRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { selectKeysRecordTime_result result = new selectKeysRecordTime_result(); receiveBase(result, "selectKeysRecordTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysRecordTime failed: unknown result"); } public Map> selectKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_selectKeysRecordTimestr(keys, record, timestamp, creds, transaction, environment); return recv_selectKeysRecordTimestr(); } public void send_selectKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysRecordTimestr_args args = new selectKeysRecordTimestr_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysRecordTimestr", args); } public Map> recv_selectKeysRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { selectKeysRecordTimestr_result result = new selectKeysRecordTimestr_result(); receiveBase(result, "selectKeysRecordTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysRecordTimestr failed: unknown result"); } public Map>> selectKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_selectKeysRecords(keys, records, creds, transaction, environment); return recv_selectKeysRecords(); } public void send_selectKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysRecords_args args = new selectKeysRecords_args(); args.setKeys(keys); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysRecords", args); } public Map>> recv_selectKeysRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { selectKeysRecords_result result = new selectKeysRecords_result(); receiveBase(result, "selectKeysRecords"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysRecords failed: unknown result"); } public Map> selectKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_selectKeyRecords(key, records, creds, transaction, environment); return recv_selectKeyRecords(); } public void send_selectKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyRecords_args args = new selectKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyRecords", args); } public Map> recv_selectKeyRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { selectKeyRecords_result result = new selectKeyRecords_result(); receiveBase(result, "selectKeyRecords"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyRecords failed: unknown result"); } public Map> selectKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_selectKeyRecordsTime(key, records, timestamp, creds, transaction, environment); return recv_selectKeyRecordsTime(); } public void send_selectKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyRecordsTime_args args = new selectKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyRecordsTime", args); } public Map> recv_selectKeyRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { selectKeyRecordsTime_result result = new selectKeyRecordsTime_result(); receiveBase(result, "selectKeyRecordsTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyRecordsTime failed: unknown result"); } public Map> selectKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_selectKeyRecordsTimestr(key, records, timestamp, creds, transaction, environment); return recv_selectKeyRecordsTimestr(); } public void send_selectKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyRecordsTimestr_args args = new selectKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyRecordsTimestr", args); } public Map> recv_selectKeyRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { selectKeyRecordsTimestr_result result = new selectKeyRecordsTimestr_result(); receiveBase(result, "selectKeyRecordsTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyRecordsTimestr failed: unknown result"); } public Map>> selectKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_selectKeysRecordsTime(keys, records, timestamp, creds, transaction, environment); return recv_selectKeysRecordsTime(); } public void send_selectKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysRecordsTime_args args = new selectKeysRecordsTime_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysRecordsTime", args); } public Map>> recv_selectKeysRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { selectKeysRecordsTime_result result = new selectKeysRecordsTime_result(); receiveBase(result, "selectKeysRecordsTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysRecordsTime failed: unknown result"); } public Map>> selectKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_selectKeysRecordsTimestr(keys, records, timestamp, creds, transaction, environment); return recv_selectKeysRecordsTimestr(); } public void send_selectKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysRecordsTimestr_args args = new selectKeysRecordsTimestr_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysRecordsTimestr", args); } public Map>> recv_selectKeysRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { selectKeysRecordsTimestr_result result = new selectKeysRecordsTimestr_result(); receiveBase(result, "selectKeysRecordsTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysRecordsTimestr failed: unknown result"); } public Map>> selectCriteria(com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_selectCriteria(criteria, creds, transaction, environment); return recv_selectCriteria(); } public void send_selectCriteria(com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectCriteria_args args = new selectCriteria_args(); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectCriteria", args); } public Map>> recv_selectCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { selectCriteria_result result = new selectCriteria_result(); receiveBase(result, "selectCriteria"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectCriteria failed: unknown result"); } public Map>> selectCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_selectCcl(ccl, creds, transaction, environment); return recv_selectCcl(); } public void send_selectCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectCcl_args args = new selectCcl_args(); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectCcl", args); } public Map>> recv_selectCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { selectCcl_result result = new selectCcl_result(); receiveBase(result, "selectCcl"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectCcl failed: unknown result"); } public Map>> selectCriteriaTime(com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_selectCriteriaTime(criteria, timestamp, creds, transaction, environment); return recv_selectCriteriaTime(); } public void send_selectCriteriaTime(com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectCriteriaTime_args args = new selectCriteriaTime_args(); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectCriteriaTime", args); } public Map>> recv_selectCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { selectCriteriaTime_result result = new selectCriteriaTime_result(); receiveBase(result, "selectCriteriaTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectCriteriaTime failed: unknown result"); } public Map>> selectCriteriaTimestr(com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_selectCriteriaTimestr(criteria, timestamp, creds, transaction, environment); return recv_selectCriteriaTimestr(); } public void send_selectCriteriaTimestr(com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectCriteriaTimestr_args args = new selectCriteriaTimestr_args(); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectCriteriaTimestr", args); } public Map>> recv_selectCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { selectCriteriaTimestr_result result = new selectCriteriaTimestr_result(); receiveBase(result, "selectCriteriaTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectCriteriaTimestr failed: unknown result"); } public Map>> selectCclTime(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_selectCclTime(ccl, timestamp, creds, transaction, environment); return recv_selectCclTime(); } public void send_selectCclTime(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectCclTime_args args = new selectCclTime_args(); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectCclTime", args); } public Map>> recv_selectCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { selectCclTime_result result = new selectCclTime_result(); receiveBase(result, "selectCclTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectCclTime failed: unknown result"); } public Map>> selectCclTimestr(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_selectCclTimestr(ccl, timestamp, creds, transaction, environment); return recv_selectCclTimestr(); } public void send_selectCclTimestr(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectCclTimestr_args args = new selectCclTimestr_args(); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectCclTimestr", args); } public Map>> recv_selectCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { selectCclTimestr_result result = new selectCclTimestr_result(); receiveBase(result, "selectCclTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectCclTimestr failed: unknown result"); } public Map> selectKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_selectKeyCriteria(key, criteria, creds, transaction, environment); return recv_selectKeyCriteria(); } public void send_selectKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyCriteria_args args = new selectKeyCriteria_args(); args.setKey(key); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyCriteria", args); } public Map> recv_selectKeyCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { selectKeyCriteria_result result = new selectKeyCriteria_result(); receiveBase(result, "selectKeyCriteria"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyCriteria failed: unknown result"); } public Map> selectKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_selectKeyCcl(key, ccl, creds, transaction, environment); return recv_selectKeyCcl(); } public void send_selectKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyCcl_args args = new selectKeyCcl_args(); args.setKey(key); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyCcl", args); } public Map> recv_selectKeyCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { selectKeyCcl_result result = new selectKeyCcl_result(); receiveBase(result, "selectKeyCcl"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyCcl failed: unknown result"); } public Map> selectKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_selectKeyCriteriaTime(key, criteria, timestamp, creds, transaction, environment); return recv_selectKeyCriteriaTime(); } public void send_selectKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyCriteriaTime_args args = new selectKeyCriteriaTime_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyCriteriaTime", args); } public Map> recv_selectKeyCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { selectKeyCriteriaTime_result result = new selectKeyCriteriaTime_result(); receiveBase(result, "selectKeyCriteriaTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyCriteriaTime failed: unknown result"); } public Map> selectKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_selectKeyCriteriaTimestr(key, criteria, timestamp, creds, transaction, environment); return recv_selectKeyCriteriaTimestr(); } public void send_selectKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyCriteriaTimestr_args args = new selectKeyCriteriaTimestr_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyCriteriaTimestr", args); } public Map> recv_selectKeyCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { selectKeyCriteriaTimestr_result result = new selectKeyCriteriaTimestr_result(); receiveBase(result, "selectKeyCriteriaTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyCriteriaTimestr failed: unknown result"); } public Map> selectKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_selectKeyCclTime(key, ccl, timestamp, creds, transaction, environment); return recv_selectKeyCclTime(); } public void send_selectKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyCclTime_args args = new selectKeyCclTime_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyCclTime", args); } public Map> recv_selectKeyCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { selectKeyCclTime_result result = new selectKeyCclTime_result(); receiveBase(result, "selectKeyCclTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyCclTime failed: unknown result"); } public Map> selectKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_selectKeyCclTimestr(key, ccl, timestamp, creds, transaction, environment); return recv_selectKeyCclTimestr(); } public void send_selectKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeyCclTimestr_args args = new selectKeyCclTimestr_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeyCclTimestr", args); } public Map> recv_selectKeyCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { selectKeyCclTimestr_result result = new selectKeyCclTimestr_result(); receiveBase(result, "selectKeyCclTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeyCclTimestr failed: unknown result"); } public Map>> selectKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_selectKeysCriteria(keys, criteria, creds, transaction, environment); return recv_selectKeysCriteria(); } public void send_selectKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysCriteria_args args = new selectKeysCriteria_args(); args.setKeys(keys); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysCriteria", args); } public Map>> recv_selectKeysCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { selectKeysCriteria_result result = new selectKeysCriteria_result(); receiveBase(result, "selectKeysCriteria"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysCriteria failed: unknown result"); } public Map>> selectKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_selectKeysCcl(keys, ccl, creds, transaction, environment); return recv_selectKeysCcl(); } public void send_selectKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysCcl_args args = new selectKeysCcl_args(); args.setKeys(keys); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysCcl", args); } public Map>> recv_selectKeysCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { selectKeysCcl_result result = new selectKeysCcl_result(); receiveBase(result, "selectKeysCcl"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysCcl failed: unknown result"); } public Map>> selectKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_selectKeysCriteriaTime(keys, criteria, timestamp, creds, transaction, environment); return recv_selectKeysCriteriaTime(); } public void send_selectKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysCriteriaTime_args args = new selectKeysCriteriaTime_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysCriteriaTime", args); } public Map>> recv_selectKeysCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { selectKeysCriteriaTime_result result = new selectKeysCriteriaTime_result(); receiveBase(result, "selectKeysCriteriaTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysCriteriaTime failed: unknown result"); } public Map>> selectKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_selectKeysCriteriaTimestr(keys, criteria, timestamp, creds, transaction, environment); return recv_selectKeysCriteriaTimestr(); } public void send_selectKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysCriteriaTimestr_args args = new selectKeysCriteriaTimestr_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysCriteriaTimestr", args); } public Map>> recv_selectKeysCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { selectKeysCriteriaTimestr_result result = new selectKeysCriteriaTimestr_result(); receiveBase(result, "selectKeysCriteriaTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysCriteriaTimestr failed: unknown result"); } public Map>> selectKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_selectKeysCclTime(keys, ccl, timestamp, creds, transaction, environment); return recv_selectKeysCclTime(); } public void send_selectKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysCclTime_args args = new selectKeysCclTime_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysCclTime", args); } public Map>> recv_selectKeysCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { selectKeysCclTime_result result = new selectKeysCclTime_result(); receiveBase(result, "selectKeysCclTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysCclTime failed: unknown result"); } public Map>> selectKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_selectKeysCclTimestr(keys, ccl, timestamp, creds, transaction, environment); return recv_selectKeysCclTimestr(); } public void send_selectKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { selectKeysCclTimestr_args args = new selectKeysCclTimestr_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("selectKeysCclTimestr", args); } public Map>> recv_selectKeysCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { selectKeysCclTimestr_result result = new selectKeysCclTimestr_result(); receiveBase(result, "selectKeysCclTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "selectKeysCclTimestr failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject getKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_getKeyRecord(key, record, creds, transaction, environment); return recv_getKeyRecord(); } public void send_getKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyRecord_args args = new getKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyRecord", args); } public com.cinchapi.concourse.thrift.TObject recv_getKeyRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { getKeyRecord_result result = new getKeyRecord_result(); receiveBase(result, "getKeyRecord"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyRecord failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject getKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_getKeyRecordTime(key, record, timestamp, creds, transaction, environment); return recv_getKeyRecordTime(); } public void send_getKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyRecordTime_args args = new getKeyRecordTime_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyRecordTime", args); } public com.cinchapi.concourse.thrift.TObject recv_getKeyRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { getKeyRecordTime_result result = new getKeyRecordTime_result(); receiveBase(result, "getKeyRecordTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyRecordTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject getKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_getKeyRecordTimestr(key, record, timestamp, creds, transaction, environment); return recv_getKeyRecordTimestr(); } public void send_getKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyRecordTimestr_args args = new getKeyRecordTimestr_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyRecordTimestr", args); } public com.cinchapi.concourse.thrift.TObject recv_getKeyRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { getKeyRecordTimestr_result result = new getKeyRecordTimestr_result(); receiveBase(result, "getKeyRecordTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyRecordTimestr failed: unknown result"); } public Map getKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_getKeysRecord(keys, record, creds, transaction, environment); return recv_getKeysRecord(); } public void send_getKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysRecord_args args = new getKeysRecord_args(); args.setKeys(keys); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysRecord", args); } public Map recv_getKeysRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { getKeysRecord_result result = new getKeysRecord_result(); receiveBase(result, "getKeysRecord"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysRecord failed: unknown result"); } public Map getKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_getKeysRecordTime(keys, record, timestamp, creds, transaction, environment); return recv_getKeysRecordTime(); } public void send_getKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysRecordTime_args args = new getKeysRecordTime_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysRecordTime", args); } public Map recv_getKeysRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { getKeysRecordTime_result result = new getKeysRecordTime_result(); receiveBase(result, "getKeysRecordTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysRecordTime failed: unknown result"); } public Map getKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_getKeysRecordTimestr(keys, record, timestamp, creds, transaction, environment); return recv_getKeysRecordTimestr(); } public void send_getKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysRecordTimestr_args args = new getKeysRecordTimestr_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysRecordTimestr", args); } public Map recv_getKeysRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { getKeysRecordTimestr_result result = new getKeysRecordTimestr_result(); receiveBase(result, "getKeysRecordTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysRecordTimestr failed: unknown result"); } public Map> getKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_getKeysRecords(keys, records, creds, transaction, environment); return recv_getKeysRecords(); } public void send_getKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysRecords_args args = new getKeysRecords_args(); args.setKeys(keys); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysRecords", args); } public Map> recv_getKeysRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { getKeysRecords_result result = new getKeysRecords_result(); receiveBase(result, "getKeysRecords"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysRecords failed: unknown result"); } public Map getKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_getKeyRecords(key, records, creds, transaction, environment); return recv_getKeyRecords(); } public void send_getKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyRecords_args args = new getKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyRecords", args); } public Map recv_getKeyRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { getKeyRecords_result result = new getKeyRecords_result(); receiveBase(result, "getKeyRecords"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyRecords failed: unknown result"); } public Map getKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_getKeyRecordsTime(key, records, timestamp, creds, transaction, environment); return recv_getKeyRecordsTime(); } public void send_getKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyRecordsTime_args args = new getKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyRecordsTime", args); } public Map recv_getKeyRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { getKeyRecordsTime_result result = new getKeyRecordsTime_result(); receiveBase(result, "getKeyRecordsTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyRecordsTime failed: unknown result"); } public Map getKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_getKeyRecordsTimestr(key, records, timestamp, creds, transaction, environment); return recv_getKeyRecordsTimestr(); } public void send_getKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyRecordsTimestr_args args = new getKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyRecordsTimestr", args); } public Map recv_getKeyRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { getKeyRecordsTimestr_result result = new getKeyRecordsTimestr_result(); receiveBase(result, "getKeyRecordsTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyRecordsTimestr failed: unknown result"); } public Map> getKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_getKeysRecordsTime(keys, records, timestamp, creds, transaction, environment); return recv_getKeysRecordsTime(); } public void send_getKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysRecordsTime_args args = new getKeysRecordsTime_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysRecordsTime", args); } public Map> recv_getKeysRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { getKeysRecordsTime_result result = new getKeysRecordsTime_result(); receiveBase(result, "getKeysRecordsTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysRecordsTime failed: unknown result"); } public Map> getKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_getKeysRecordsTimestr(keys, records, timestamp, creds, transaction, environment); return recv_getKeysRecordsTimestr(); } public void send_getKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysRecordsTimestr_args args = new getKeysRecordsTimestr_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysRecordsTimestr", args); } public Map> recv_getKeysRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { getKeysRecordsTimestr_result result = new getKeysRecordsTimestr_result(); receiveBase(result, "getKeysRecordsTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysRecordsTimestr failed: unknown result"); } public Map getKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_getKeyCriteria(key, criteria, creds, transaction, environment); return recv_getKeyCriteria(); } public void send_getKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyCriteria_args args = new getKeyCriteria_args(); args.setKey(key); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyCriteria", args); } public Map recv_getKeyCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { getKeyCriteria_result result = new getKeyCriteria_result(); receiveBase(result, "getKeyCriteria"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyCriteria failed: unknown result"); } public Map> getCriteria(com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_getCriteria(criteria, creds, transaction, environment); return recv_getCriteria(); } public void send_getCriteria(com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getCriteria_args args = new getCriteria_args(); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getCriteria", args); } public Map> recv_getCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { getCriteria_result result = new getCriteria_result(); receiveBase(result, "getCriteria"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCriteria failed: unknown result"); } public Map> getCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_getCcl(ccl, creds, transaction, environment); return recv_getCcl(); } public void send_getCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getCcl_args args = new getCcl_args(); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getCcl", args); } public Map> recv_getCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { getCcl_result result = new getCcl_result(); receiveBase(result, "getCcl"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCcl failed: unknown result"); } public Map> getCriteriaTime(com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_getCriteriaTime(criteria, timestamp, creds, transaction, environment); return recv_getCriteriaTime(); } public void send_getCriteriaTime(com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getCriteriaTime_args args = new getCriteriaTime_args(); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getCriteriaTime", args); } public Map> recv_getCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { getCriteriaTime_result result = new getCriteriaTime_result(); receiveBase(result, "getCriteriaTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCriteriaTime failed: unknown result"); } public Map> getCriteriaTimestr(com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_getCriteriaTimestr(criteria, timestamp, creds, transaction, environment); return recv_getCriteriaTimestr(); } public void send_getCriteriaTimestr(com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getCriteriaTimestr_args args = new getCriteriaTimestr_args(); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getCriteriaTimestr", args); } public Map> recv_getCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { getCriteriaTimestr_result result = new getCriteriaTimestr_result(); receiveBase(result, "getCriteriaTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCriteriaTimestr failed: unknown result"); } public Map> getCclTime(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_getCclTime(ccl, timestamp, creds, transaction, environment); return recv_getCclTime(); } public void send_getCclTime(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getCclTime_args args = new getCclTime_args(); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getCclTime", args); } public Map> recv_getCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { getCclTime_result result = new getCclTime_result(); receiveBase(result, "getCclTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCclTime failed: unknown result"); } public Map> getCclTimestr(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_getCclTimestr(ccl, timestamp, creds, transaction, environment); return recv_getCclTimestr(); } public void send_getCclTimestr(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getCclTimestr_args args = new getCclTimestr_args(); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getCclTimestr", args); } public Map> recv_getCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { getCclTimestr_result result = new getCclTimestr_result(); receiveBase(result, "getCclTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCclTimestr failed: unknown result"); } public Map getKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_getKeyCcl(key, ccl, creds, transaction, environment); return recv_getKeyCcl(); } public void send_getKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyCcl_args args = new getKeyCcl_args(); args.setKey(key); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyCcl", args); } public Map recv_getKeyCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { getKeyCcl_result result = new getKeyCcl_result(); receiveBase(result, "getKeyCcl"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyCcl failed: unknown result"); } public Map getKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_getKeyCriteriaTime(key, criteria, timestamp, creds, transaction, environment); return recv_getKeyCriteriaTime(); } public void send_getKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyCriteriaTime_args args = new getKeyCriteriaTime_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyCriteriaTime", args); } public Map recv_getKeyCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { getKeyCriteriaTime_result result = new getKeyCriteriaTime_result(); receiveBase(result, "getKeyCriteriaTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyCriteriaTime failed: unknown result"); } public Map getKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_getKeyCriteriaTimestr(key, criteria, timestamp, creds, transaction, environment); return recv_getKeyCriteriaTimestr(); } public void send_getKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyCriteriaTimestr_args args = new getKeyCriteriaTimestr_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyCriteriaTimestr", args); } public Map recv_getKeyCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { getKeyCriteriaTimestr_result result = new getKeyCriteriaTimestr_result(); receiveBase(result, "getKeyCriteriaTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyCriteriaTimestr failed: unknown result"); } public Map getKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_getKeyCclTime(key, ccl, timestamp, creds, transaction, environment); return recv_getKeyCclTime(); } public void send_getKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyCclTime_args args = new getKeyCclTime_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyCclTime", args); } public Map recv_getKeyCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { getKeyCclTime_result result = new getKeyCclTime_result(); receiveBase(result, "getKeyCclTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyCclTime failed: unknown result"); } public Map getKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_getKeyCclTimestr(key, ccl, timestamp, creds, transaction, environment); return recv_getKeyCclTimestr(); } public void send_getKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeyCclTimestr_args args = new getKeyCclTimestr_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeyCclTimestr", args); } public Map recv_getKeyCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { getKeyCclTimestr_result result = new getKeyCclTimestr_result(); receiveBase(result, "getKeyCclTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeyCclTimestr failed: unknown result"); } public Map> getKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_getKeysCriteria(keys, criteria, creds, transaction, environment); return recv_getKeysCriteria(); } public void send_getKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysCriteria_args args = new getKeysCriteria_args(); args.setKeys(keys); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysCriteria", args); } public Map> recv_getKeysCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { getKeysCriteria_result result = new getKeysCriteria_result(); receiveBase(result, "getKeysCriteria"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysCriteria failed: unknown result"); } public Map> getKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_getKeysCcl(keys, ccl, creds, transaction, environment); return recv_getKeysCcl(); } public void send_getKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysCcl_args args = new getKeysCcl_args(); args.setKeys(keys); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysCcl", args); } public Map> recv_getKeysCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { getKeysCcl_result result = new getKeysCcl_result(); receiveBase(result, "getKeysCcl"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysCcl failed: unknown result"); } public Map> getKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_getKeysCriteriaTime(keys, criteria, timestamp, creds, transaction, environment); return recv_getKeysCriteriaTime(); } public void send_getKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysCriteriaTime_args args = new getKeysCriteriaTime_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysCriteriaTime", args); } public Map> recv_getKeysCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { getKeysCriteriaTime_result result = new getKeysCriteriaTime_result(); receiveBase(result, "getKeysCriteriaTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysCriteriaTime failed: unknown result"); } public Map> getKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_getKeysCriteriaTimestr(keys, criteria, timestamp, creds, transaction, environment); return recv_getKeysCriteriaTimestr(); } public void send_getKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysCriteriaTimestr_args args = new getKeysCriteriaTimestr_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysCriteriaTimestr", args); } public Map> recv_getKeysCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { getKeysCriteriaTimestr_result result = new getKeysCriteriaTimestr_result(); receiveBase(result, "getKeysCriteriaTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysCriteriaTimestr failed: unknown result"); } public Map> getKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_getKeysCclTime(keys, ccl, timestamp, creds, transaction, environment); return recv_getKeysCclTime(); } public void send_getKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysCclTime_args args = new getKeysCclTime_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysCclTime", args); } public Map> recv_getKeysCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { getKeysCclTime_result result = new getKeysCclTime_result(); receiveBase(result, "getKeysCclTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysCclTime failed: unknown result"); } public Map> getKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_getKeysCclTimestr(keys, ccl, timestamp, creds, transaction, environment); return recv_getKeysCclTimestr(); } public void send_getKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { getKeysCclTimestr_args args = new getKeysCclTimestr_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("getKeysCclTimestr", args); } public Map> recv_getKeysCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { getKeysCclTimestr_result result = new getKeysCclTimestr_result(); receiveBase(result, "getKeysCclTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getKeysCclTimestr failed: unknown result"); } public boolean verifyKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_verifyKeyValueRecord(key, value, record, creds, transaction, environment); return recv_verifyKeyValueRecord(); } public void send_verifyKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { verifyKeyValueRecord_args args = new verifyKeyValueRecord_args(); args.setKey(key); args.setValue(value); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("verifyKeyValueRecord", args); } public boolean recv_verifyKeyValueRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { verifyKeyValueRecord_result result = new verifyKeyValueRecord_result(); receiveBase(result, "verifyKeyValueRecord"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "verifyKeyValueRecord failed: unknown result"); } public boolean verifyKeyValueRecordTime(String key, com.cinchapi.concourse.thrift.TObject value, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_verifyKeyValueRecordTime(key, value, record, timestamp, creds, transaction, environment); return recv_verifyKeyValueRecordTime(); } public void send_verifyKeyValueRecordTime(String key, com.cinchapi.concourse.thrift.TObject value, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { verifyKeyValueRecordTime_args args = new verifyKeyValueRecordTime_args(); args.setKey(key); args.setValue(value); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("verifyKeyValueRecordTime", args); } public boolean recv_verifyKeyValueRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { verifyKeyValueRecordTime_result result = new verifyKeyValueRecordTime_result(); receiveBase(result, "verifyKeyValueRecordTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "verifyKeyValueRecordTime failed: unknown result"); } public boolean verifyKeyValueRecordTimestr(String key, com.cinchapi.concourse.thrift.TObject value, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_verifyKeyValueRecordTimestr(key, value, record, timestamp, creds, transaction, environment); return recv_verifyKeyValueRecordTimestr(); } public void send_verifyKeyValueRecordTimestr(String key, com.cinchapi.concourse.thrift.TObject value, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { verifyKeyValueRecordTimestr_args args = new verifyKeyValueRecordTimestr_args(); args.setKey(key); args.setValue(value); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("verifyKeyValueRecordTimestr", args); } public boolean recv_verifyKeyValueRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { verifyKeyValueRecordTimestr_result result = new verifyKeyValueRecordTimestr_result(); receiveBase(result, "verifyKeyValueRecordTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "verifyKeyValueRecordTimestr failed: unknown result"); } public String jsonifyRecords(List records, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_jsonifyRecords(records, identifier, creds, transaction, environment); return recv_jsonifyRecords(); } public void send_jsonifyRecords(List records, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { jsonifyRecords_args args = new jsonifyRecords_args(); args.setRecords(records); args.setIdentifier(identifier); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("jsonifyRecords", args); } public String recv_jsonifyRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { jsonifyRecords_result result = new jsonifyRecords_result(); receiveBase(result, "jsonifyRecords"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "jsonifyRecords failed: unknown result"); } public String jsonifyRecordsTime(List records, long timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_jsonifyRecordsTime(records, timestamp, identifier, creds, transaction, environment); return recv_jsonifyRecordsTime(); } public void send_jsonifyRecordsTime(List records, long timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { jsonifyRecordsTime_args args = new jsonifyRecordsTime_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setIdentifier(identifier); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("jsonifyRecordsTime", args); } public String recv_jsonifyRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { jsonifyRecordsTime_result result = new jsonifyRecordsTime_result(); receiveBase(result, "jsonifyRecordsTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "jsonifyRecordsTime failed: unknown result"); } public String jsonifyRecordsTimestr(List records, String timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_jsonifyRecordsTimestr(records, timestamp, identifier, creds, transaction, environment); return recv_jsonifyRecordsTimestr(); } public void send_jsonifyRecordsTimestr(List records, String timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { jsonifyRecordsTimestr_args args = new jsonifyRecordsTimestr_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setIdentifier(identifier); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("jsonifyRecordsTimestr", args); } public String recv_jsonifyRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { jsonifyRecordsTimestr_result result = new jsonifyRecordsTimestr_result(); receiveBase(result, "jsonifyRecordsTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "jsonifyRecordsTimestr failed: unknown result"); } public Set findCriteria(com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_findCriteria(criteria, creds, transaction, environment); return recv_findCriteria(); } public void send_findCriteria(com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { findCriteria_args args = new findCriteria_args(); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("findCriteria", args); } public Set recv_findCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { findCriteria_result result = new findCriteria_result(); receiveBase(result, "findCriteria"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "findCriteria failed: unknown result"); } public Set findCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_findCcl(ccl, creds, transaction, environment); return recv_findCcl(); } public void send_findCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { findCcl_args args = new findCcl_args(); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("findCcl", args); } public Set recv_findCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { findCcl_result result = new findCcl_result(); receiveBase(result, "findCcl"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "findCcl failed: unknown result"); } public Set findKeyOperatorValues(String key, com.cinchapi.concourse.thrift.Operator operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_findKeyOperatorValues(key, operator, values, creds, transaction, environment); return recv_findKeyOperatorValues(); } public void send_findKeyOperatorValues(String key, com.cinchapi.concourse.thrift.Operator operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { findKeyOperatorValues_args args = new findKeyOperatorValues_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("findKeyOperatorValues", args); } public Set recv_findKeyOperatorValues() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { findKeyOperatorValues_result result = new findKeyOperatorValues_result(); receiveBase(result, "findKeyOperatorValues"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "findKeyOperatorValues failed: unknown result"); } public Set findKeyOperatorValuesTime(String key, com.cinchapi.concourse.thrift.Operator operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_findKeyOperatorValuesTime(key, operator, values, timestamp, creds, transaction, environment); return recv_findKeyOperatorValuesTime(); } public void send_findKeyOperatorValuesTime(String key, com.cinchapi.concourse.thrift.Operator operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { findKeyOperatorValuesTime_args args = new findKeyOperatorValuesTime_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("findKeyOperatorValuesTime", args); } public Set recv_findKeyOperatorValuesTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { findKeyOperatorValuesTime_result result = new findKeyOperatorValuesTime_result(); receiveBase(result, "findKeyOperatorValuesTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "findKeyOperatorValuesTime failed: unknown result"); } public Set findKeyOperatorValuesTimestr(String key, com.cinchapi.concourse.thrift.Operator operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_findKeyOperatorValuesTimestr(key, operator, values, timestamp, creds, transaction, environment); return recv_findKeyOperatorValuesTimestr(); } public void send_findKeyOperatorValuesTimestr(String key, com.cinchapi.concourse.thrift.Operator operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { findKeyOperatorValuesTimestr_args args = new findKeyOperatorValuesTimestr_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("findKeyOperatorValuesTimestr", args); } public Set recv_findKeyOperatorValuesTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { findKeyOperatorValuesTimestr_result result = new findKeyOperatorValuesTimestr_result(); receiveBase(result, "findKeyOperatorValuesTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "findKeyOperatorValuesTimestr failed: unknown result"); } public Set findKeyOperatorstrValues(String key, String operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_findKeyOperatorstrValues(key, operator, values, creds, transaction, environment); return recv_findKeyOperatorstrValues(); } public void send_findKeyOperatorstrValues(String key, String operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { findKeyOperatorstrValues_args args = new findKeyOperatorstrValues_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("findKeyOperatorstrValues", args); } public Set recv_findKeyOperatorstrValues() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { findKeyOperatorstrValues_result result = new findKeyOperatorstrValues_result(); receiveBase(result, "findKeyOperatorstrValues"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "findKeyOperatorstrValues failed: unknown result"); } public Set findKeyOperatorstrValuesTime(String key, String operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_findKeyOperatorstrValuesTime(key, operator, values, timestamp, creds, transaction, environment); return recv_findKeyOperatorstrValuesTime(); } public void send_findKeyOperatorstrValuesTime(String key, String operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { findKeyOperatorstrValuesTime_args args = new findKeyOperatorstrValuesTime_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("findKeyOperatorstrValuesTime", args); } public Set recv_findKeyOperatorstrValuesTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { findKeyOperatorstrValuesTime_result result = new findKeyOperatorstrValuesTime_result(); receiveBase(result, "findKeyOperatorstrValuesTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "findKeyOperatorstrValuesTime failed: unknown result"); } public Set findKeyOperatorstrValuesTimestr(String key, String operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_findKeyOperatorstrValuesTimestr(key, operator, values, timestamp, creds, transaction, environment); return recv_findKeyOperatorstrValuesTimestr(); } public void send_findKeyOperatorstrValuesTimestr(String key, String operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { findKeyOperatorstrValuesTimestr_args args = new findKeyOperatorstrValuesTimestr_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("findKeyOperatorstrValuesTimestr", args); } public Set recv_findKeyOperatorstrValuesTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { findKeyOperatorstrValuesTimestr_result result = new findKeyOperatorstrValuesTimestr_result(); receiveBase(result, "findKeyOperatorstrValuesTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "findKeyOperatorstrValuesTimestr failed: unknown result"); } public Set search(String key, String query, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_search(key, query, creds, transaction, environment); return recv_search(); } public void send_search(String key, String query, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { search_args args = new search_args(); args.setKey(key); args.setQuery(query); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("search", args); } public Set recv_search() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { search_result result = new search_result(); receiveBase(result, "search"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "search failed: unknown result"); } public void revertKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_revertKeysRecordsTime(keys, records, timestamp, creds, transaction, environment); recv_revertKeysRecordsTime(); } public void send_revertKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { revertKeysRecordsTime_args args = new revertKeysRecordsTime_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("revertKeysRecordsTime", args); } public void recv_revertKeysRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { revertKeysRecordsTime_result result = new revertKeysRecordsTime_result(); receiveBase(result, "revertKeysRecordsTime"); if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } return; } public void revertKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_revertKeysRecordsTimestr(keys, records, timestamp, creds, transaction, environment); recv_revertKeysRecordsTimestr(); } public void send_revertKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { revertKeysRecordsTimestr_args args = new revertKeysRecordsTimestr_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("revertKeysRecordsTimestr", args); } public void recv_revertKeysRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { revertKeysRecordsTimestr_result result = new revertKeysRecordsTimestr_result(); receiveBase(result, "revertKeysRecordsTimestr"); if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } return; } public void revertKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_revertKeysRecordTime(keys, record, timestamp, creds, transaction, environment); recv_revertKeysRecordTime(); } public void send_revertKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { revertKeysRecordTime_args args = new revertKeysRecordTime_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("revertKeysRecordTime", args); } public void recv_revertKeysRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { revertKeysRecordTime_result result = new revertKeysRecordTime_result(); receiveBase(result, "revertKeysRecordTime"); if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } return; } public void revertKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_revertKeysRecordTimestr(keys, record, timestamp, creds, transaction, environment); recv_revertKeysRecordTimestr(); } public void send_revertKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { revertKeysRecordTimestr_args args = new revertKeysRecordTimestr_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("revertKeysRecordTimestr", args); } public void recv_revertKeysRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { revertKeysRecordTimestr_result result = new revertKeysRecordTimestr_result(); receiveBase(result, "revertKeysRecordTimestr"); if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } return; } public void revertKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_revertKeyRecordsTime(key, records, timestamp, creds, transaction, environment); recv_revertKeyRecordsTime(); } public void send_revertKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { revertKeyRecordsTime_args args = new revertKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("revertKeyRecordsTime", args); } public void recv_revertKeyRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { revertKeyRecordsTime_result result = new revertKeyRecordsTime_result(); receiveBase(result, "revertKeyRecordsTime"); if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } return; } public void revertKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_revertKeyRecordsTimestr(key, records, timestamp, creds, transaction, environment); recv_revertKeyRecordsTimestr(); } public void send_revertKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { revertKeyRecordsTimestr_args args = new revertKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("revertKeyRecordsTimestr", args); } public void recv_revertKeyRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { revertKeyRecordsTimestr_result result = new revertKeyRecordsTimestr_result(); receiveBase(result, "revertKeyRecordsTimestr"); if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } return; } public void revertKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_revertKeyRecordTime(key, record, timestamp, creds, transaction, environment); recv_revertKeyRecordTime(); } public void send_revertKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { revertKeyRecordTime_args args = new revertKeyRecordTime_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("revertKeyRecordTime", args); } public void recv_revertKeyRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { revertKeyRecordTime_result result = new revertKeyRecordTime_result(); receiveBase(result, "revertKeyRecordTime"); if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } return; } public void revertKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_revertKeyRecordTimestr(key, record, timestamp, creds, transaction, environment); recv_revertKeyRecordTimestr(); } public void send_revertKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { revertKeyRecordTimestr_args args = new revertKeyRecordTimestr_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("revertKeyRecordTimestr", args); } public void recv_revertKeyRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { revertKeyRecordTimestr_result result = new revertKeyRecordTimestr_result(); receiveBase(result, "revertKeyRecordTimestr"); if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } return; } public Map pingRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_pingRecords(records, creds, transaction, environment); return recv_pingRecords(); } public void send_pingRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { pingRecords_args args = new pingRecords_args(); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("pingRecords", args); } public Map recv_pingRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { pingRecords_result result = new pingRecords_result(); receiveBase(result, "pingRecords"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "pingRecords failed: unknown result"); } public boolean pingRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_pingRecord(record, creds, transaction, environment); return recv_pingRecord(); } public void send_pingRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { pingRecord_args args = new pingRecord_args(); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("pingRecord", args); } public boolean recv_pingRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { pingRecord_result result = new pingRecord_result(); receiveBase(result, "pingRecord"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "pingRecord failed: unknown result"); } public boolean verifyAndSwap(String key, com.cinchapi.concourse.thrift.TObject expected, long record, com.cinchapi.concourse.thrift.TObject replacement, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_verifyAndSwap(key, expected, record, replacement, creds, transaction, environment); return recv_verifyAndSwap(); } public void send_verifyAndSwap(String key, com.cinchapi.concourse.thrift.TObject expected, long record, com.cinchapi.concourse.thrift.TObject replacement, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { verifyAndSwap_args args = new verifyAndSwap_args(); args.setKey(key); args.setExpected(expected); args.setRecord(record); args.setReplacement(replacement); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("verifyAndSwap", args); } public boolean recv_verifyAndSwap() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { verifyAndSwap_result result = new verifyAndSwap_result(); receiveBase(result, "verifyAndSwap"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "verifyAndSwap failed: unknown result"); } public void verifyOrSet(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { send_verifyOrSet(key, value, record, creds, transaction, environment); recv_verifyOrSet(); } public void send_verifyOrSet(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { verifyOrSet_args args = new verifyOrSet_args(); args.setKey(key); args.setValue(value); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("verifyOrSet", args); } public void recv_verifyOrSet() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { verifyOrSet_result result = new verifyOrSet_result(); receiveBase(result, "verifyOrSet"); if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } return; } public long findOrAddKeyValue(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.DuplicateEntryException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { send_findOrAddKeyValue(key, value, creds, transaction, environment); return recv_findOrAddKeyValue(); } public void send_findOrAddKeyValue(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { findOrAddKeyValue_args args = new findOrAddKeyValue_args(); args.setKey(key); args.setValue(value); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("findOrAddKeyValue", args); } public long recv_findOrAddKeyValue() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.DuplicateEntryException, com.cinchapi.concourse.thrift.InvalidArgumentException, org.apache.thrift.TException { findOrAddKeyValue_result result = new findOrAddKeyValue_result(); receiveBase(result, "findOrAddKeyValue"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } if (result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "findOrAddKeyValue failed: unknown result"); } public long findOrInsertCriteriaJson(com.cinchapi.concourse.thrift.TCriteria criteria, String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.DuplicateEntryException, org.apache.thrift.TException { send_findOrInsertCriteriaJson(criteria, json, creds, transaction, environment); return recv_findOrInsertCriteriaJson(); } public void send_findOrInsertCriteriaJson(com.cinchapi.concourse.thrift.TCriteria criteria, String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { findOrInsertCriteriaJson_args args = new findOrInsertCriteriaJson_args(); args.setCriteria(criteria); args.setJson(json); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("findOrInsertCriteriaJson", args); } public long recv_findOrInsertCriteriaJson() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.DuplicateEntryException, org.apache.thrift.TException { findOrInsertCriteriaJson_result result = new findOrInsertCriteriaJson_result(); receiveBase(result, "findOrInsertCriteriaJson"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "findOrInsertCriteriaJson failed: unknown result"); } public long findOrInsertCclJson(String ccl, String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.DuplicateEntryException, org.apache.thrift.TException { send_findOrInsertCclJson(ccl, json, creds, transaction, environment); return recv_findOrInsertCclJson(); } public void send_findOrInsertCclJson(String ccl, String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { findOrInsertCclJson_args args = new findOrInsertCclJson_args(); args.setCcl(ccl); args.setJson(json); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("findOrInsertCclJson", args); } public long recv_findOrInsertCclJson() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.DuplicateEntryException, org.apache.thrift.TException { findOrInsertCclJson_result result = new findOrInsertCclJson_result(); receiveBase(result, "findOrInsertCclJson"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } if (result.ex4 != null) { throw result.ex4; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "findOrInsertCclJson failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject sumKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_sumKeyRecord(key, record, creds, transaction, environment); return recv_sumKeyRecord(); } public void send_sumKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { sumKeyRecord_args args = new sumKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("sumKeyRecord", args); } public com.cinchapi.concourse.thrift.TObject recv_sumKeyRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { sumKeyRecord_result result = new sumKeyRecord_result(); receiveBase(result, "sumKeyRecord"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sumKeyRecord failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject sumKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_sumKey(key, creds, transaction, environment); return recv_sumKey(); } public void send_sumKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { sumKey_args args = new sumKey_args(); args.setKey(key); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("sumKey", args); } public com.cinchapi.concourse.thrift.TObject recv_sumKey() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { sumKey_result result = new sumKey_result(); receiveBase(result, "sumKey"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sumKey failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject sumKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_sumKeyTime(key, timestamp, creds, transaction, environment); return recv_sumKeyTime(); } public void send_sumKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { sumKeyTime_args args = new sumKeyTime_args(); args.setKey(key); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("sumKeyTime", args); } public com.cinchapi.concourse.thrift.TObject recv_sumKeyTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { sumKeyTime_result result = new sumKeyTime_result(); receiveBase(result, "sumKeyTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sumKeyTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject sumKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_sumKeyRecordTime(key, record, timestamp, creds, transaction, environment); return recv_sumKeyRecordTime(); } public void send_sumKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { sumKeyRecordTime_args args = new sumKeyRecordTime_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("sumKeyRecordTime", args); } public com.cinchapi.concourse.thrift.TObject recv_sumKeyRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { sumKeyRecordTime_result result = new sumKeyRecordTime_result(); receiveBase(result, "sumKeyRecordTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sumKeyRecordTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject sumKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_sumKeyRecords(key, records, creds, transaction, environment); return recv_sumKeyRecords(); } public void send_sumKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { sumKeyRecords_args args = new sumKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("sumKeyRecords", args); } public com.cinchapi.concourse.thrift.TObject recv_sumKeyRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { sumKeyRecords_result result = new sumKeyRecords_result(); receiveBase(result, "sumKeyRecords"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sumKeyRecords failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject sumKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_sumKeyRecordsTime(key, records, timestamp, creds, transaction, environment); return recv_sumKeyRecordsTime(); } public void send_sumKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { sumKeyRecordsTime_args args = new sumKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("sumKeyRecordsTime", args); } public com.cinchapi.concourse.thrift.TObject recv_sumKeyRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { sumKeyRecordsTime_result result = new sumKeyRecordsTime_result(); receiveBase(result, "sumKeyRecordsTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sumKeyRecordsTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject sumKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_sumKeyCriteria(key, criteria, creds, transaction, environment); return recv_sumKeyCriteria(); } public void send_sumKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { sumKeyCriteria_args args = new sumKeyCriteria_args(); args.setKey(key); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("sumKeyCriteria", args); } public com.cinchapi.concourse.thrift.TObject recv_sumKeyCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { sumKeyCriteria_result result = new sumKeyCriteria_result(); receiveBase(result, "sumKeyCriteria"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sumKeyCriteria failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject sumKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_sumKeyCcl(key, ccl, creds, transaction, environment); return recv_sumKeyCcl(); } public void send_sumKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { sumKeyCcl_args args = new sumKeyCcl_args(); args.setKey(key); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("sumKeyCcl", args); } public com.cinchapi.concourse.thrift.TObject recv_sumKeyCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { sumKeyCcl_result result = new sumKeyCcl_result(); receiveBase(result, "sumKeyCcl"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sumKeyCcl failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject sumKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_sumKeyCriteriaTime(key, criteria, timestamp, creds, transaction, environment); return recv_sumKeyCriteriaTime(); } public void send_sumKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { sumKeyCriteriaTime_args args = new sumKeyCriteriaTime_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("sumKeyCriteriaTime", args); } public com.cinchapi.concourse.thrift.TObject recv_sumKeyCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { sumKeyCriteriaTime_result result = new sumKeyCriteriaTime_result(); receiveBase(result, "sumKeyCriteriaTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sumKeyCriteriaTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject sumKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_sumKeyCclTime(key, ccl, timestamp, creds, transaction, environment); return recv_sumKeyCclTime(); } public void send_sumKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { sumKeyCclTime_args args = new sumKeyCclTime_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("sumKeyCclTime", args); } public com.cinchapi.concourse.thrift.TObject recv_sumKeyCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { sumKeyCclTime_result result = new sumKeyCclTime_result(); receiveBase(result, "sumKeyCclTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sumKeyCclTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject averageKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_averageKeyRecord(key, record, creds, transaction, environment); return recv_averageKeyRecord(); } public void send_averageKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { averageKeyRecord_args args = new averageKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("averageKeyRecord", args); } public com.cinchapi.concourse.thrift.TObject recv_averageKeyRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { averageKeyRecord_result result = new averageKeyRecord_result(); receiveBase(result, "averageKeyRecord"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "averageKeyRecord failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject averageKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_averageKey(key, creds, transaction, environment); return recv_averageKey(); } public void send_averageKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { averageKey_args args = new averageKey_args(); args.setKey(key); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("averageKey", args); } public com.cinchapi.concourse.thrift.TObject recv_averageKey() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { averageKey_result result = new averageKey_result(); receiveBase(result, "averageKey"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "averageKey failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject averageKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_averageKeyTime(key, timestamp, creds, transaction, environment); return recv_averageKeyTime(); } public void send_averageKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { averageKeyTime_args args = new averageKeyTime_args(); args.setKey(key); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("averageKeyTime", args); } public com.cinchapi.concourse.thrift.TObject recv_averageKeyTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { averageKeyTime_result result = new averageKeyTime_result(); receiveBase(result, "averageKeyTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "averageKeyTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject averageKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_averageKeyRecordTime(key, record, timestamp, creds, transaction, environment); return recv_averageKeyRecordTime(); } public void send_averageKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { averageKeyRecordTime_args args = new averageKeyRecordTime_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("averageKeyRecordTime", args); } public com.cinchapi.concourse.thrift.TObject recv_averageKeyRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { averageKeyRecordTime_result result = new averageKeyRecordTime_result(); receiveBase(result, "averageKeyRecordTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "averageKeyRecordTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject averageKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_averageKeyRecords(key, records, creds, transaction, environment); return recv_averageKeyRecords(); } public void send_averageKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { averageKeyRecords_args args = new averageKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("averageKeyRecords", args); } public com.cinchapi.concourse.thrift.TObject recv_averageKeyRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { averageKeyRecords_result result = new averageKeyRecords_result(); receiveBase(result, "averageKeyRecords"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "averageKeyRecords failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject averageKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_averageKeyRecordsTime(key, records, timestamp, creds, transaction, environment); return recv_averageKeyRecordsTime(); } public void send_averageKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { averageKeyRecordsTime_args args = new averageKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("averageKeyRecordsTime", args); } public com.cinchapi.concourse.thrift.TObject recv_averageKeyRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { averageKeyRecordsTime_result result = new averageKeyRecordsTime_result(); receiveBase(result, "averageKeyRecordsTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "averageKeyRecordsTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject averageKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_averageKeyCriteria(key, criteria, creds, transaction, environment); return recv_averageKeyCriteria(); } public void send_averageKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { averageKeyCriteria_args args = new averageKeyCriteria_args(); args.setKey(key); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("averageKeyCriteria", args); } public com.cinchapi.concourse.thrift.TObject recv_averageKeyCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { averageKeyCriteria_result result = new averageKeyCriteria_result(); receiveBase(result, "averageKeyCriteria"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "averageKeyCriteria failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject averageKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_averageKeyCcl(key, ccl, creds, transaction, environment); return recv_averageKeyCcl(); } public void send_averageKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { averageKeyCcl_args args = new averageKeyCcl_args(); args.setKey(key); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("averageKeyCcl", args); } public com.cinchapi.concourse.thrift.TObject recv_averageKeyCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { averageKeyCcl_result result = new averageKeyCcl_result(); receiveBase(result, "averageKeyCcl"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "averageKeyCcl failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject averageKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_averageKeyCriteriaTime(key, criteria, timestamp, creds, transaction, environment); return recv_averageKeyCriteriaTime(); } public void send_averageKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { averageKeyCriteriaTime_args args = new averageKeyCriteriaTime_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("averageKeyCriteriaTime", args); } public com.cinchapi.concourse.thrift.TObject recv_averageKeyCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { averageKeyCriteriaTime_result result = new averageKeyCriteriaTime_result(); receiveBase(result, "averageKeyCriteriaTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "averageKeyCriteriaTime failed: unknown result"); } public com.cinchapi.concourse.thrift.TObject averageKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_averageKeyCclTime(key, ccl, timestamp, creds, transaction, environment); return recv_averageKeyCclTime(); } public void send_averageKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { averageKeyCclTime_args args = new averageKeyCclTime_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("averageKeyCclTime", args); } public com.cinchapi.concourse.thrift.TObject recv_averageKeyCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { averageKeyCclTime_result result = new averageKeyCclTime_result(); receiveBase(result, "averageKeyCclTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "averageKeyCclTime failed: unknown result"); } public Map> navigateKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_navigateKeyRecord(key, record, creds, transaction, environment); return recv_navigateKeyRecord(); } public void send_navigateKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyRecord_args args = new navigateKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyRecord", args); } public Map> recv_navigateKeyRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { navigateKeyRecord_result result = new navigateKeyRecord_result(); receiveBase(result, "navigateKeyRecord"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyRecord failed: unknown result"); } public Map> navigateKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_navigateKeyRecordTime(key, record, timestamp, creds, transaction, environment); return recv_navigateKeyRecordTime(); } public void send_navigateKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyRecordTime_args args = new navigateKeyRecordTime_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyRecordTime", args); } public Map> recv_navigateKeyRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { navigateKeyRecordTime_result result = new navigateKeyRecordTime_result(); receiveBase(result, "navigateKeyRecordTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyRecordTime failed: unknown result"); } public Map> navigateKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_navigateKeyRecordTimestr(key, record, timestamp, creds, transaction, environment); return recv_navigateKeyRecordTimestr(); } public void send_navigateKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyRecordTimestr_args args = new navigateKeyRecordTimestr_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyRecordTimestr", args); } public Map> recv_navigateKeyRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { navigateKeyRecordTimestr_result result = new navigateKeyRecordTimestr_result(); receiveBase(result, "navigateKeyRecordTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyRecordTimestr failed: unknown result"); } public Map>> navigateKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_navigateKeysRecord(keys, record, creds, transaction, environment); return recv_navigateKeysRecord(); } public void send_navigateKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysRecord_args args = new navigateKeysRecord_args(); args.setKeys(keys); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysRecord", args); } public Map>> recv_navigateKeysRecord() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { navigateKeysRecord_result result = new navigateKeysRecord_result(); receiveBase(result, "navigateKeysRecord"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysRecord failed: unknown result"); } public Map>> navigateKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_navigateKeysRecordTime(keys, record, timestamp, creds, transaction, environment); return recv_navigateKeysRecordTime(); } public void send_navigateKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysRecordTime_args args = new navigateKeysRecordTime_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysRecordTime", args); } public Map>> recv_navigateKeysRecordTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { navigateKeysRecordTime_result result = new navigateKeysRecordTime_result(); receiveBase(result, "navigateKeysRecordTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysRecordTime failed: unknown result"); } public Map>> navigateKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_navigateKeysRecordTimestr(keys, record, timestamp, creds, transaction, environment); return recv_navigateKeysRecordTimestr(); } public void send_navigateKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysRecordTimestr_args args = new navigateKeysRecordTimestr_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysRecordTimestr", args); } public Map>> recv_navigateKeysRecordTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { navigateKeysRecordTimestr_result result = new navigateKeysRecordTimestr_result(); receiveBase(result, "navigateKeysRecordTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysRecordTimestr failed: unknown result"); } public Map>> navigateKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_navigateKeysRecords(keys, records, creds, transaction, environment); return recv_navigateKeysRecords(); } public void send_navigateKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysRecords_args args = new navigateKeysRecords_args(); args.setKeys(keys); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysRecords", args); } public Map>> recv_navigateKeysRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { navigateKeysRecords_result result = new navigateKeysRecords_result(); receiveBase(result, "navigateKeysRecords"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysRecords failed: unknown result"); } public Map> navigateKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_navigateKeyRecords(key, records, creds, transaction, environment); return recv_navigateKeyRecords(); } public void send_navigateKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyRecords_args args = new navigateKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyRecords", args); } public Map> recv_navigateKeyRecords() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { navigateKeyRecords_result result = new navigateKeyRecords_result(); receiveBase(result, "navigateKeyRecords"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyRecords failed: unknown result"); } public Map> navigateKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_navigateKeyRecordsTime(key, records, timestamp, creds, transaction, environment); return recv_navigateKeyRecordsTime(); } public void send_navigateKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyRecordsTime_args args = new navigateKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyRecordsTime", args); } public Map> recv_navigateKeyRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { navigateKeyRecordsTime_result result = new navigateKeyRecordsTime_result(); receiveBase(result, "navigateKeyRecordsTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyRecordsTime failed: unknown result"); } public Map> navigateKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_navigateKeyRecordsTimestr(key, records, timestamp, creds, transaction, environment); return recv_navigateKeyRecordsTimestr(); } public void send_navigateKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyRecordsTimestr_args args = new navigateKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyRecordsTimestr", args); } public Map> recv_navigateKeyRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { navigateKeyRecordsTimestr_result result = new navigateKeyRecordsTimestr_result(); receiveBase(result, "navigateKeyRecordsTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyRecordsTimestr failed: unknown result"); } public Map>> navigateKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_navigateKeysRecordsTime(keys, records, timestamp, creds, transaction, environment); return recv_navigateKeysRecordsTime(); } public void send_navigateKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysRecordsTime_args args = new navigateKeysRecordsTime_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysRecordsTime", args); } public Map>> recv_navigateKeysRecordsTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { navigateKeysRecordsTime_result result = new navigateKeysRecordsTime_result(); receiveBase(result, "navigateKeysRecordsTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysRecordsTime failed: unknown result"); } public Map>> navigateKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_navigateKeysRecordsTimestr(keys, records, timestamp, creds, transaction, environment); return recv_navigateKeysRecordsTimestr(); } public void send_navigateKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysRecordsTimestr_args args = new navigateKeysRecordsTimestr_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysRecordsTimestr", args); } public Map>> recv_navigateKeysRecordsTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { navigateKeysRecordsTimestr_result result = new navigateKeysRecordsTimestr_result(); receiveBase(result, "navigateKeysRecordsTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysRecordsTimestr failed: unknown result"); } public Map> navigateKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_navigateKeyCcl(key, ccl, creds, transaction, environment); return recv_navigateKeyCcl(); } public void send_navigateKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyCcl_args args = new navigateKeyCcl_args(); args.setKey(key); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyCcl", args); } public Map> recv_navigateKeyCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { navigateKeyCcl_result result = new navigateKeyCcl_result(); receiveBase(result, "navigateKeyCcl"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyCcl failed: unknown result"); } public Map> navigateKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_navigateKeyCclTime(key, ccl, timestamp, creds, transaction, environment); return recv_navigateKeyCclTime(); } public void send_navigateKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyCclTime_args args = new navigateKeyCclTime_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyCclTime", args); } public Map> recv_navigateKeyCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { navigateKeyCclTime_result result = new navigateKeyCclTime_result(); receiveBase(result, "navigateKeyCclTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyCclTime failed: unknown result"); } public Map> navigateKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_navigateKeyCclTimestr(key, ccl, timestamp, creds, transaction, environment); return recv_navigateKeyCclTimestr(); } public void send_navigateKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyCclTimestr_args args = new navigateKeyCclTimestr_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyCclTimestr", args); } public Map> recv_navigateKeyCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { navigateKeyCclTimestr_result result = new navigateKeyCclTimestr_result(); receiveBase(result, "navigateKeyCclTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyCclTimestr failed: unknown result"); } public Map>> navigateKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_navigateKeysCcl(keys, ccl, creds, transaction, environment); return recv_navigateKeysCcl(); } public void send_navigateKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysCcl_args args = new navigateKeysCcl_args(); args.setKeys(keys); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysCcl", args); } public Map>> recv_navigateKeysCcl() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { navigateKeysCcl_result result = new navigateKeysCcl_result(); receiveBase(result, "navigateKeysCcl"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysCcl failed: unknown result"); } public Map>> navigateKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_navigateKeysCclTime(keys, ccl, timestamp, creds, transaction, environment); return recv_navigateKeysCclTime(); } public void send_navigateKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysCclTime_args args = new navigateKeysCclTime_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysCclTime", args); } public Map>> recv_navigateKeysCclTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { navigateKeysCclTime_result result = new navigateKeysCclTime_result(); receiveBase(result, "navigateKeysCclTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysCclTime failed: unknown result"); } public Map>> navigateKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_navigateKeysCclTimestr(keys, ccl, timestamp, creds, transaction, environment); return recv_navigateKeysCclTimestr(); } public void send_navigateKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysCclTimestr_args args = new navigateKeysCclTimestr_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysCclTimestr", args); } public Map>> recv_navigateKeysCclTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { navigateKeysCclTimestr_result result = new navigateKeysCclTimestr_result(); receiveBase(result, "navigateKeysCclTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysCclTimestr failed: unknown result"); } public Map> navigateKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_navigateKeyCriteria(key, criteria, creds, transaction, environment); return recv_navigateKeyCriteria(); } public void send_navigateKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyCriteria_args args = new navigateKeyCriteria_args(); args.setKey(key); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyCriteria", args); } public Map> recv_navigateKeyCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { navigateKeyCriteria_result result = new navigateKeyCriteria_result(); receiveBase(result, "navigateKeyCriteria"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyCriteria failed: unknown result"); } public Map> navigateKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_navigateKeyCriteriaTime(key, criteria, timestamp, creds, transaction, environment); return recv_navigateKeyCriteriaTime(); } public void send_navigateKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyCriteriaTime_args args = new navigateKeyCriteriaTime_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyCriteriaTime", args); } public Map> recv_navigateKeyCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { navigateKeyCriteriaTime_result result = new navigateKeyCriteriaTime_result(); receiveBase(result, "navigateKeyCriteriaTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyCriteriaTime failed: unknown result"); } public Map> navigateKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_navigateKeyCriteriaTimestr(key, criteria, timestamp, creds, transaction, environment); return recv_navigateKeyCriteriaTimestr(); } public void send_navigateKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeyCriteriaTimestr_args args = new navigateKeyCriteriaTimestr_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeyCriteriaTimestr", args); } public Map> recv_navigateKeyCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { navigateKeyCriteriaTimestr_result result = new navigateKeyCriteriaTimestr_result(); receiveBase(result, "navigateKeyCriteriaTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeyCriteriaTimestr failed: unknown result"); } public Map>> navigateKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_navigateKeysCriteria(keys, criteria, creds, transaction, environment); return recv_navigateKeysCriteria(); } public void send_navigateKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysCriteria_args args = new navigateKeysCriteria_args(); args.setKeys(keys); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysCriteria", args); } public Map>> recv_navigateKeysCriteria() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { navigateKeysCriteria_result result = new navigateKeysCriteria_result(); receiveBase(result, "navigateKeysCriteria"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysCriteria failed: unknown result"); } public Map>> navigateKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_navigateKeysCriteriaTime(keys, criteria, timestamp, creds, transaction, environment); return recv_navigateKeysCriteriaTime(); } public void send_navigateKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysCriteriaTime_args args = new navigateKeysCriteriaTime_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysCriteriaTime", args); } public Map>> recv_navigateKeysCriteriaTime() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { navigateKeysCriteriaTime_result result = new navigateKeysCriteriaTime_result(); receiveBase(result, "navigateKeysCriteriaTime"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysCriteriaTime failed: unknown result"); } public Map>> navigateKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_navigateKeysCriteriaTimestr(keys, criteria, timestamp, creds, transaction, environment); return recv_navigateKeysCriteriaTimestr(); } public void send_navigateKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) throws org.apache.thrift.TException { navigateKeysCriteriaTimestr_args args = new navigateKeysCriteriaTimestr_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); sendBase("navigateKeysCriteriaTimestr", args); } public Map>> recv_navigateKeysCriteriaTimestr() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { navigateKeysCriteriaTimestr_result result = new navigateKeysCriteriaTimestr_result(); receiveBase(result, "navigateKeysCriteriaTimestr"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "navigateKeysCriteriaTimestr failed: unknown result"); } public String getServerEnvironment(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_getServerEnvironment(creds, token, environment); return recv_getServerEnvironment(); } public void send_getServerEnvironment(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment) throws org.apache.thrift.TException { getServerEnvironment_args args = new getServerEnvironment_args(); args.setCreds(creds); args.setToken(token); args.setEnvironment(environment); sendBase("getServerEnvironment", args); } public String recv_getServerEnvironment() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { getServerEnvironment_result result = new getServerEnvironment_result(); receiveBase(result, "getServerEnvironment"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getServerEnvironment failed: unknown result"); } public String getServerVersion() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_getServerVersion(); return recv_getServerVersion(); } public void send_getServerVersion() throws org.apache.thrift.TException { getServerVersion_args args = new getServerVersion_args(); sendBase("getServerVersion", args); } public String recv_getServerVersion() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { getServerVersion_result result = new getServerVersion_result(); receiveBase(result, "getServerVersion"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getServerVersion failed: unknown result"); } public long time(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { send_time(creds, token, environment); return recv_time(); } public void send_time(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment) throws org.apache.thrift.TException { time_args args = new time_args(); args.setCreds(creds); args.setToken(token); args.setEnvironment(environment); sendBase("time", args); } public long recv_time() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, org.apache.thrift.TException { time_result result = new time_result(); receiveBase(result, "time"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "time failed: unknown result"); } public long timePhrase(String phrase, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment) throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { send_timePhrase(phrase, creds, token, environment); return recv_timePhrase(); } public void send_timePhrase(String phrase, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment) throws org.apache.thrift.TException { timePhrase_args args = new timePhrase_args(); args.setPhrase(phrase); args.setCreds(creds); args.setToken(token); args.setEnvironment(environment); sendBase("timePhrase", args); } public long recv_timePhrase() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, org.apache.thrift.TException { timePhrase_result result = new timePhrase_result(); receiveBase(result, "timePhrase"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } if (result.ex2 != null) { throw result.ex2; } if (result.ex3 != null) { throw result.ex3; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "timePhrase 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 abort(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); abort_call method_call = new abort_call(creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class abort_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public abort_call(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("abort", org.apache.thrift.protocol.TMessageType.CALL, 0)); abort_args args = new abort_args(); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_abort(); } } public void addKeyValue(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); addKeyValue_call method_call = new addKeyValue_call(key, value, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addKeyValue_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TObject value; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public addKeyValue_call(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.value = value; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addKeyValue", org.apache.thrift.protocol.TMessageType.CALL, 0)); addKeyValue_args args = new addKeyValue_args(); args.setKey(key); args.setValue(value); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public long getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, 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_addKeyValue(); } } public void addKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); addKeyValueRecord_call method_call = new addKeyValueRecord_call(key, value, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addKeyValueRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TObject value; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public addKeyValueRecord_call(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.value = value; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addKeyValueRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); addKeyValueRecord_args args = new addKeyValueRecord_args(); args.setKey(key); args.setValue(value); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public boolean getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, 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_addKeyValueRecord(); } } public void addKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); addKeyValueRecords_call method_call = new addKeyValueRecords_call(key, value, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class addKeyValueRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TObject value; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public addKeyValueRecords_call(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.value = value; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addKeyValueRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); addKeyValueRecords_args args = new addKeyValueRecords_args(); args.setKey(key); args.setValue(value); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, 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_addKeyValueRecords(); } } public void auditRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); auditRecord_call method_call = new auditRecord_call(record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class auditRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public auditRecord_call(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("auditRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); auditRecord_args args = new auditRecord_args(); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_auditRecord(); } } public void auditRecordStart(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); auditRecordStart_call method_call = new auditRecordStart_call(record, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class auditRecordStart_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private long start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public auditRecordStart_call(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.record = record; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("auditRecordStart", org.apache.thrift.protocol.TMessageType.CALL, 0)); auditRecordStart_args args = new auditRecordStart_args(); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_auditRecordStart(); } } public void auditRecordStartstr(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); auditRecordStartstr_call method_call = new auditRecordStartstr_call(record, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class auditRecordStartstr_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private String start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public auditRecordStartstr_call(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.record = record; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("auditRecordStartstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); auditRecordStartstr_args args = new auditRecordStartstr_args(); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_auditRecordStartstr(); } } public void auditRecordStartEnd(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); auditRecordStartEnd_call method_call = new auditRecordStartEnd_call(record, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class auditRecordStartEnd_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private long start; private long tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public auditRecordStartEnd_call(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.record = record; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("auditRecordStartEnd", org.apache.thrift.protocol.TMessageType.CALL, 0)); auditRecordStartEnd_args args = new auditRecordStartEnd_args(); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_auditRecordStartEnd(); } } public void auditRecordStartstrEndstr(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); auditRecordStartstrEndstr_call method_call = new auditRecordStartstrEndstr_call(record, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class auditRecordStartstrEndstr_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private String start; private String tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public auditRecordStartstrEndstr_call(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.record = record; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("auditRecordStartstrEndstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); auditRecordStartstrEndstr_args args = new auditRecordStartstrEndstr_args(); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_auditRecordStartstrEndstr(); } } public void auditKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); auditKeyRecord_call method_call = new auditKeyRecord_call(key, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class auditKeyRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public auditKeyRecord_call(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("auditKeyRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); auditKeyRecord_args args = new auditKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_auditKeyRecord(); } } public void auditKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); auditKeyRecordStart_call method_call = new auditKeyRecordStart_call(key, record, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class auditKeyRecordStart_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private long start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public auditKeyRecordStart_call(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("auditKeyRecordStart", org.apache.thrift.protocol.TMessageType.CALL, 0)); auditKeyRecordStart_args args = new auditKeyRecordStart_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_auditKeyRecordStart(); } } public void auditKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); auditKeyRecordStartstr_call method_call = new auditKeyRecordStartstr_call(key, record, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class auditKeyRecordStartstr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private String start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public auditKeyRecordStartstr_call(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("auditKeyRecordStartstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); auditKeyRecordStartstr_args args = new auditKeyRecordStartstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_auditKeyRecordStartstr(); } } public void auditKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); auditKeyRecordStartEnd_call method_call = new auditKeyRecordStartEnd_call(key, record, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class auditKeyRecordStartEnd_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private long start; private long tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public auditKeyRecordStartEnd_call(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("auditKeyRecordStartEnd", org.apache.thrift.protocol.TMessageType.CALL, 0)); auditKeyRecordStartEnd_args args = new auditKeyRecordStartEnd_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_auditKeyRecordStartEnd(); } } public void auditKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); auditKeyRecordStartstrEndstr_call method_call = new auditKeyRecordStartstrEndstr_call(key, record, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class auditKeyRecordStartstrEndstr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private String start; private String tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public auditKeyRecordStartstrEndstr_call(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("auditKeyRecordStartstrEndstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); auditKeyRecordStartstrEndstr_args args = new auditKeyRecordStartstrEndstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_auditKeyRecordStartstrEndstr(); } } public void browseKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); browseKey_call method_call = new browseKey_call(key, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class browseKey_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public browseKey_call(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("browseKey", org.apache.thrift.protocol.TMessageType.CALL, 0)); browseKey_args args = new browseKey_args(); args.setKey(key); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_browseKey(); } } public void browseKeys(List keys, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); browseKeys_call method_call = new browseKeys_call(keys, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class browseKeys_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public browseKeys_call(List keys, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("browseKeys", org.apache.thrift.protocol.TMessageType.CALL, 0)); browseKeys_args args = new browseKeys_args(); args.setKeys(keys); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_browseKeys(); } } public void browseKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); browseKeyTime_call method_call = new browseKeyTime_call(key, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class browseKeyTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public browseKeyTime_call(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("browseKeyTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); browseKeyTime_args args = new browseKeyTime_args(); args.setKey(key); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_browseKeyTime(); } } public void browseKeyTimestr(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); browseKeyTimestr_call method_call = new browseKeyTimestr_call(key, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class browseKeyTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public browseKeyTimestr_call(String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("browseKeyTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); browseKeyTimestr_args args = new browseKeyTimestr_args(); args.setKey(key); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_browseKeyTimestr(); } } public void browseKeysTime(List keys, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); browseKeysTime_call method_call = new browseKeysTime_call(keys, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class browseKeysTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public browseKeysTime_call(List keys, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("browseKeysTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); browseKeysTime_args args = new browseKeysTime_args(); args.setKeys(keys); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_browseKeysTime(); } } public void browseKeysTimestr(List keys, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); browseKeysTimestr_call method_call = new browseKeysTimestr_call(keys, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class browseKeysTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public browseKeysTimestr_call(List keys, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("browseKeysTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); browseKeysTimestr_args args = new browseKeysTimestr_args(); args.setKeys(keys); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_browseKeysTimestr(); } } public void chronologizeKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); chronologizeKeyRecord_call method_call = new chronologizeKeyRecord_call(key, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class chronologizeKeyRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public chronologizeKeyRecord_call(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("chronologizeKeyRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); chronologizeKeyRecord_args args = new chronologizeKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_chronologizeKeyRecord(); } } public void chronologizeKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); chronologizeKeyRecordStart_call method_call = new chronologizeKeyRecordStart_call(key, record, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class chronologizeKeyRecordStart_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private long start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public chronologizeKeyRecordStart_call(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("chronologizeKeyRecordStart", org.apache.thrift.protocol.TMessageType.CALL, 0)); chronologizeKeyRecordStart_args args = new chronologizeKeyRecordStart_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_chronologizeKeyRecordStart(); } } public void chronologizeKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); chronologizeKeyRecordStartstr_call method_call = new chronologizeKeyRecordStartstr_call(key, record, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class chronologizeKeyRecordStartstr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private String start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public chronologizeKeyRecordStartstr_call(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("chronologizeKeyRecordStartstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); chronologizeKeyRecordStartstr_args args = new chronologizeKeyRecordStartstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_chronologizeKeyRecordStartstr(); } } public void chronologizeKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); chronologizeKeyRecordStartEnd_call method_call = new chronologizeKeyRecordStartEnd_call(key, record, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class chronologizeKeyRecordStartEnd_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private long start; private long tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public chronologizeKeyRecordStartEnd_call(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("chronologizeKeyRecordStartEnd", org.apache.thrift.protocol.TMessageType.CALL, 0)); chronologizeKeyRecordStartEnd_args args = new chronologizeKeyRecordStartEnd_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_chronologizeKeyRecordStartEnd(); } } public void chronologizeKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); chronologizeKeyRecordStartstrEndstr_call method_call = new chronologizeKeyRecordStartstrEndstr_call(key, record, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class chronologizeKeyRecordStartstrEndstr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private String start; private String tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public chronologizeKeyRecordStartstrEndstr_call(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("chronologizeKeyRecordStartstrEndstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); chronologizeKeyRecordStartstrEndstr_args args = new chronologizeKeyRecordStartstrEndstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_chronologizeKeyRecordStartstrEndstr(); } } public void clearRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); clearRecord_call method_call = new clearRecord_call(record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class clearRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public clearRecord_call(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); clearRecord_args args = new clearRecord_args(); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_clearRecord(); } } public void clearRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); clearRecords_call method_call = new clearRecords_call(records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class clearRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public clearRecords_call(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); clearRecords_args args = new clearRecords_args(); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_clearRecords(); } } public void clearKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); clearKeyRecord_call method_call = new clearKeyRecord_call(key, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class clearKeyRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public clearKeyRecord_call(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearKeyRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); clearKeyRecord_args args = new clearKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_clearKeyRecord(); } } public void clearKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); clearKeysRecord_call method_call = new clearKeysRecord_call(keys, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class clearKeysRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public clearKeysRecord_call(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearKeysRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); clearKeysRecord_args args = new clearKeysRecord_args(); args.setKeys(keys); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_clearKeysRecord(); } } public void clearKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); clearKeyRecords_call method_call = new clearKeyRecords_call(key, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class clearKeyRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public clearKeyRecords_call(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearKeyRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); clearKeyRecords_args args = new clearKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_clearKeyRecords(); } } public void clearKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); clearKeysRecords_call method_call = new clearKeysRecords_call(keys, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class clearKeysRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public clearKeysRecords_call(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearKeysRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); clearKeysRecords_args args = new clearKeysRecords_args(); args.setKeys(keys); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_clearKeysRecords(); } } public void commit(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); commit_call method_call = new commit_call(creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class commit_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public commit_call(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("commit", org.apache.thrift.protocol.TMessageType.CALL, 0)); commit_args args = new commit_args(); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public boolean getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_commit(); } } public void describe(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describe_call method_call = new describe_call(creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class describe_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public describe_call(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("describe", org.apache.thrift.protocol.TMessageType.CALL, 0)); describe_args args = new describe_args(); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_describe(); } } public void describeTime(long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describeTime_call method_call = new describeTime_call(timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class describeTime_call extends org.apache.thrift.async.TAsyncMethodCall { private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public describeTime_call(long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("describeTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); describeTime_args args = new describeTime_args(); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_describeTime(); } } public void describeTimestr(String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describeTimestr_call method_call = new describeTimestr_call(timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class describeTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public describeTimestr_call(String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("describeTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); describeTimestr_args args = new describeTimestr_args(); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_describeTimestr(); } } public void describeRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describeRecord_call method_call = new describeRecord_call(record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class describeRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public describeRecord_call(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("describeRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); describeRecord_args args = new describeRecord_args(); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_describeRecord(); } } public void describeRecordTime(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describeRecordTime_call method_call = new describeRecordTime_call(record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class describeRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public describeRecordTime_call(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("describeRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); describeRecordTime_args args = new describeRecordTime_args(); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_describeRecordTime(); } } public void describeRecordTimestr(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describeRecordTimestr_call method_call = new describeRecordTimestr_call(record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class describeRecordTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public describeRecordTimestr_call(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("describeRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); describeRecordTimestr_args args = new describeRecordTimestr_args(); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_describeRecordTimestr(); } } public void describeRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describeRecords_call method_call = new describeRecords_call(records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class describeRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public describeRecords_call(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("describeRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); describeRecords_args args = new describeRecords_args(); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_describeRecords(); } } public void describeRecordsTime(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describeRecordsTime_call method_call = new describeRecordsTime_call(records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class describeRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public describeRecordsTime_call(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("describeRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); describeRecordsTime_args args = new describeRecordsTime_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_describeRecordsTime(); } } public void describeRecordsTimestr(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); describeRecordsTimestr_call method_call = new describeRecordsTimestr_call(records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class describeRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public describeRecordsTimestr_call(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("describeRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); describeRecordsTimestr_args args = new describeRecordsTimestr_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_describeRecordsTimestr(); } } public void diffRecordStart(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffRecordStart_call method_call = new diffRecordStart_call(record, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffRecordStart_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private long start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffRecordStart_call(long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.record = record; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("diffRecordStart", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffRecordStart_args args = new diffRecordStart_args(); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_diffRecordStart(); } } public void diffRecordStartstr(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffRecordStartstr_call method_call = new diffRecordStartstr_call(record, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffRecordStartstr_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private String start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffRecordStartstr_call(long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.record = record; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("diffRecordStartstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffRecordStartstr_args args = new diffRecordStartstr_args(); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_diffRecordStartstr(); } } public void diffRecordStartEnd(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffRecordStartEnd_call method_call = new diffRecordStartEnd_call(record, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffRecordStartEnd_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private long start; private long tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffRecordStartEnd_call(long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.record = record; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("diffRecordStartEnd", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffRecordStartEnd_args args = new diffRecordStartEnd_args(); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_diffRecordStartEnd(); } } public void diffRecordStartstrEndstr(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffRecordStartstrEndstr_call method_call = new diffRecordStartstrEndstr_call(record, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffRecordStartstrEndstr_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private String start; private String tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffRecordStartstrEndstr_call(long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.record = record; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("diffRecordStartstrEndstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffRecordStartstrEndstr_args args = new diffRecordStartstrEndstr_args(); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_diffRecordStartstrEndstr(); } } public void diffKeyRecordStart(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffKeyRecordStart_call method_call = new diffKeyRecordStart_call(key, record, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffKeyRecordStart_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private long start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffKeyRecordStart_call(String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("diffKeyRecordStart", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffKeyRecordStart_args args = new diffKeyRecordStart_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_diffKeyRecordStart(); } } public void diffKeyRecordStartstr(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffKeyRecordStartstr_call method_call = new diffKeyRecordStartstr_call(key, record, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffKeyRecordStartstr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private String start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffKeyRecordStartstr_call(String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("diffKeyRecordStartstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffKeyRecordStartstr_args args = new diffKeyRecordStartstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_diffKeyRecordStartstr(); } } public void diffKeyRecordStartEnd(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffKeyRecordStartEnd_call method_call = new diffKeyRecordStartEnd_call(key, record, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffKeyRecordStartEnd_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private long start; private long tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffKeyRecordStartEnd_call(String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("diffKeyRecordStartEnd", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffKeyRecordStartEnd_args args = new diffKeyRecordStartEnd_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_diffKeyRecordStartEnd(); } } public void diffKeyRecordStartstrEndstr(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffKeyRecordStartstrEndstr_call method_call = new diffKeyRecordStartstrEndstr_call(key, record, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffKeyRecordStartstrEndstr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private String start; private String tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffKeyRecordStartstrEndstr_call(String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("diffKeyRecordStartstrEndstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffKeyRecordStartstrEndstr_args args = new diffKeyRecordStartstrEndstr_args(); args.setKey(key); args.setRecord(record); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_diffKeyRecordStartstrEndstr(); } } public void diffKeyStart(String key, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffKeyStart_call method_call = new diffKeyStart_call(key, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffKeyStart_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffKeyStart_call(String key, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("diffKeyStart", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffKeyStart_args args = new diffKeyStart_args(); args.setKey(key); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_diffKeyStart(); } } public void diffKeyStartstr(String key, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffKeyStartstr_call method_call = new diffKeyStartstr_call(key, start, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffKeyStartstr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String start; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffKeyStartstr_call(String key, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("diffKeyStartstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffKeyStartstr_args args = new diffKeyStartstr_args(); args.setKey(key); args.setStart(start); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_diffKeyStartstr(); } } public void diffKeyStartEnd(String key, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffKeyStartEnd_call method_call = new diffKeyStartEnd_call(key, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffKeyStartEnd_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long start; private long tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffKeyStartEnd_call(String key, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("diffKeyStartEnd", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffKeyStartEnd_args args = new diffKeyStartEnd_args(); args.setKey(key); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_diffKeyStartEnd(); } } public void diffKeyStartstrEndstr(String key, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffKeyStartstrEndstr_call method_call = new diffKeyStartstrEndstr_call(key, start, tend, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffKeyStartstrEndstr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String start; private String tend; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public diffKeyStartstrEndstr_call(String key, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("diffKeyStartstrEndstr", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffKeyStartstrEndstr_args args = new diffKeyStartstrEndstr_args(); args.setKey(key); args.setStart(start); args.setTend(tend); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_diffKeyStartstrEndstr(); } } public void invokePlugin(String id, String method, List params, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); invokePlugin_call method_call = new invokePlugin_call(id, method, params, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class invokePlugin_call extends org.apache.thrift.async.TAsyncMethodCall { private String id; private String method; private List params; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public invokePlugin_call(String id, String method, List params, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.id = id; this.method = method; this.params = params; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("invokePlugin", org.apache.thrift.protocol.TMessageType.CALL, 0)); invokePlugin_args args = new invokePlugin_args(); args.setId(id); args.setMethod(method); args.setParams(params); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.ComplexTObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, 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_invokePlugin(); } } public void login(ByteBuffer username, ByteBuffer password, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); login_call method_call = new login_call(username, password, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class login_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer username; private ByteBuffer password; private String environment; public login_call(ByteBuffer username, ByteBuffer password, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.username = username; this.password = password; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("login", org.apache.thrift.protocol.TMessageType.CALL, 0)); login_args args = new login_args(); args.setUsername(username); args.setPassword(password); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.AccessToken getResult() throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_login(); } } public void logout(com.cinchapi.concourse.thrift.AccessToken token, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); logout_call method_call = new logout_call(token, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class logout_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.AccessToken token; private String environment; public logout_call(com.cinchapi.concourse.thrift.AccessToken token, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.token = token; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("logout", org.apache.thrift.protocol.TMessageType.CALL, 0)); logout_args args = new logout_args(); args.setToken(token); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_logout(); } } public void stage(com.cinchapi.concourse.thrift.AccessToken token, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); stage_call method_call = new stage_call(token, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class stage_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.AccessToken token; private String environment; public stage_call(com.cinchapi.concourse.thrift.AccessToken token, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.token = token; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("stage", org.apache.thrift.protocol.TMessageType.CALL, 0)); stage_args args = new stage_args(); args.setToken(token); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TransactionToken getResult() throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_stage(); } } public void insertJson(String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); insertJson_call method_call = new insertJson_call(json, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class insertJson_call extends org.apache.thrift.async.TAsyncMethodCall { private String json; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public insertJson_call(String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.json = json; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertJson", org.apache.thrift.protocol.TMessageType.CALL, 0)); insertJson_args args = new insertJson_args(); args.setJson(json); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_insertJson(); } } public void insertJsonRecord(String json, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); insertJsonRecord_call method_call = new insertJsonRecord_call(json, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class insertJsonRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private String json; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public insertJsonRecord_call(String json, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.json = json; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertJsonRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); insertJsonRecord_args args = new insertJsonRecord_args(); args.setJson(json); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public boolean getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_insertJsonRecord(); } } public void insertJsonRecords(String json, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); insertJsonRecords_call method_call = new insertJsonRecords_call(json, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class insertJsonRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String json; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public insertJsonRecords_call(String json, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.json = json; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertJsonRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); insertJsonRecords_args args = new insertJsonRecords_args(); args.setJson(json); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_insertJsonRecords(); } } public void removeKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); removeKeyValueRecord_call method_call = new removeKeyValueRecord_call(key, value, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class removeKeyValueRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TObject value; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public removeKeyValueRecord_call(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.value = value; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeKeyValueRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); removeKeyValueRecord_args args = new removeKeyValueRecord_args(); args.setKey(key); args.setValue(value); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public boolean getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, 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_removeKeyValueRecord(); } } public void removeKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); removeKeyValueRecords_call method_call = new removeKeyValueRecords_call(key, value, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class removeKeyValueRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TObject value; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public removeKeyValueRecords_call(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.value = value; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeKeyValueRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); removeKeyValueRecords_args args = new removeKeyValueRecords_args(); args.setKey(key); args.setValue(value); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, 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_removeKeyValueRecords(); } } public void setKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); setKeyValueRecord_call method_call = new setKeyValueRecord_call(key, value, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class setKeyValueRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TObject value; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public setKeyValueRecord_call(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.value = value; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setKeyValueRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); setKeyValueRecord_args args = new setKeyValueRecord_args(); args.setKey(key); args.setValue(value); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, 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_setKeyValueRecord(); } } public void setKeyValue(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); setKeyValue_call method_call = new setKeyValue_call(key, value, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class setKeyValue_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TObject value; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public setKeyValue_call(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.value = value; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setKeyValue", org.apache.thrift.protocol.TMessageType.CALL, 0)); setKeyValue_args args = new setKeyValue_args(); args.setKey(key); args.setValue(value); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public long getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, 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_setKeyValue(); } } public void setKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); setKeyValueRecords_call method_call = new setKeyValueRecords_call(key, value, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class setKeyValueRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TObject value; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public setKeyValueRecords_call(String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.value = value; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setKeyValueRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); setKeyValueRecords_args args = new setKeyValueRecords_args(); args.setKey(key); args.setValue(value); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, 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_setKeyValueRecords(); } } public void reconcileKeyRecordValues(String key, long record, Set values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); reconcileKeyRecordValues_call method_call = new reconcileKeyRecordValues_call(key, record, values, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class reconcileKeyRecordValues_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private Set values; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public reconcileKeyRecordValues_call(String key, long record, Set values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.values = values; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reconcileKeyRecordValues", org.apache.thrift.protocol.TMessageType.CALL, 0)); reconcileKeyRecordValues_args args = new reconcileKeyRecordValues_args(); args.setKey(key); args.setRecord(record); args.setValues(values); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, 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_reconcileKeyRecordValues(); } } public void inventory(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); inventory_call method_call = new inventory_call(creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class inventory_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public inventory_call(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("inventory", org.apache.thrift.protocol.TMessageType.CALL, 0)); inventory_args args = new inventory_args(); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_inventory(); } } public void selectRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectRecord_call method_call = new selectRecord_call(record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectRecord_call(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectRecord_args args = new selectRecord_args(); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_selectRecord(); } } public void selectRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectRecords_call method_call = new selectRecords_call(records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectRecords_call(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectRecords_args args = new selectRecords_args(); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_selectRecords(); } } public void selectRecordTime(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectRecordTime_call method_call = new selectRecordTime_call(record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectRecordTime_call(long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectRecordTime_args args = new selectRecordTime_args(); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_selectRecordTime(); } } public void selectRecordTimestr(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectRecordTimestr_call method_call = new selectRecordTimestr_call(record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectRecordTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectRecordTimestr_call(long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectRecordTimestr_args args = new selectRecordTimestr_args(); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_selectRecordTimestr(); } } public void selectRecordsTime(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectRecordsTime_call method_call = new selectRecordsTime_call(records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectRecordsTime_call(List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectRecordsTime_args args = new selectRecordsTime_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_selectRecordsTime(); } } public void selectRecordsTimestr(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectRecordsTimestr_call method_call = new selectRecordsTimestr_call(records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectRecordsTimestr_call(List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectRecordsTimestr_args args = new selectRecordsTimestr_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_selectRecordsTimestr(); } } public void selectKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyRecord_call method_call = new selectKeyRecord_call(key, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyRecord_call(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeyRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyRecord_args args = new selectKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_selectKeyRecord(); } } public void selectKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyRecordTime_call method_call = new selectKeyRecordTime_call(key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyRecordTime_call(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeyRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyRecordTime_args args = new selectKeyRecordTime_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_selectKeyRecordTime(); } } public void selectKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyRecordTimestr_call method_call = new selectKeyRecordTimestr_call(key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyRecordTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyRecordTimestr_call(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeyRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyRecordTimestr_args args = new selectKeyRecordTimestr_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_selectKeyRecordTimestr(); } } public void selectKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysRecord_call method_call = new selectKeysRecord_call(keys, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysRecord_call(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeysRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysRecord_args args = new selectKeysRecord_args(); args.setKeys(keys); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_selectKeysRecord(); } } public void selectKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysRecordTime_call method_call = new selectKeysRecordTime_call(keys, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysRecordTime_call(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeysRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysRecordTime_args args = new selectKeysRecordTime_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_selectKeysRecordTime(); } } public void selectKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysRecordTimestr_call method_call = new selectKeysRecordTimestr_call(keys, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysRecordTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysRecordTimestr_call(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeysRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysRecordTimestr_args args = new selectKeysRecordTimestr_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_selectKeysRecordTimestr(); } } public void selectKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysRecords_call method_call = new selectKeysRecords_call(keys, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysRecords_call(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeysRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysRecords_args args = new selectKeysRecords_args(); args.setKeys(keys); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_selectKeysRecords(); } } public void selectKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyRecords_call method_call = new selectKeyRecords_call(key, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyRecords_call(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeyRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyRecords_args args = new selectKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_selectKeyRecords(); } } public void selectKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyRecordsTime_call method_call = new selectKeyRecordsTime_call(key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyRecordsTime_call(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeyRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyRecordsTime_args args = new selectKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_selectKeyRecordsTime(); } } public void selectKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyRecordsTimestr_call method_call = new selectKeyRecordsTimestr_call(key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyRecordsTimestr_call(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeyRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyRecordsTimestr_args args = new selectKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_selectKeyRecordsTimestr(); } } public void selectKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysRecordsTime_call method_call = new selectKeysRecordsTime_call(keys, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysRecordsTime_call(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeysRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysRecordsTime_args args = new selectKeysRecordsTime_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_selectKeysRecordsTime(); } } public void selectKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysRecordsTimestr_call method_call = new selectKeysRecordsTimestr_call(keys, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysRecordsTimestr_call(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeysRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysRecordsTimestr_args args = new selectKeysRecordsTimestr_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_selectKeysRecordsTimestr(); } } public void selectCriteria(com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectCriteria_call method_call = new selectCriteria_call(criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectCriteria_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.TCriteria criteria; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectCriteria_call(com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectCriteria_args args = new selectCriteria_args(); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_selectCriteria(); } } public void selectCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectCcl_call method_call = new selectCcl_call(ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectCcl_call extends org.apache.thrift.async.TAsyncMethodCall { private String ccl; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectCcl_call(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectCcl_args args = new selectCcl_args(); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_selectCcl(); } } public void selectCriteriaTime(com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectCriteriaTime_call method_call = new selectCriteriaTime_call(criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectCriteriaTime_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.TCriteria criteria; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectCriteriaTime_call(com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectCriteriaTime_args args = new selectCriteriaTime_args(); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_selectCriteriaTime(); } } public void selectCriteriaTimestr(com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectCriteriaTimestr_call method_call = new selectCriteriaTimestr_call(criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectCriteriaTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.TCriteria criteria; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectCriteriaTimestr_call(com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectCriteriaTimestr_args args = new selectCriteriaTimestr_args(); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_selectCriteriaTimestr(); } } public void selectCclTime(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectCclTime_call method_call = new selectCclTime_call(ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectCclTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String ccl; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectCclTime_call(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectCclTime_args args = new selectCclTime_args(); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_selectCclTime(); } } public void selectCclTimestr(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectCclTimestr_call method_call = new selectCclTimestr_call(ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectCclTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String ccl; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectCclTimestr_call(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectCclTimestr_args args = new selectCclTimestr_args(); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_selectCclTimestr(); } } public void selectKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyCriteria_call method_call = new selectKeyCriteria_call(key, criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyCriteria_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyCriteria_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeyCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyCriteria_args args = new selectKeyCriteria_args(); args.setKey(key); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_selectKeyCriteria(); } } public void selectKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyCcl_call method_call = new selectKeyCcl_call(key, ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyCcl_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyCcl_call(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeyCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyCcl_args args = new selectKeyCcl_args(); args.setKey(key); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_selectKeyCcl(); } } public void selectKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyCriteriaTime_call method_call = new selectKeyCriteriaTime_call(key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyCriteriaTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyCriteriaTime_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeyCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyCriteriaTime_args args = new selectKeyCriteriaTime_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_selectKeyCriteriaTime(); } } public void selectKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyCriteriaTimestr_call method_call = new selectKeyCriteriaTimestr_call(key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyCriteriaTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyCriteriaTimestr_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeyCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyCriteriaTimestr_args args = new selectKeyCriteriaTimestr_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_selectKeyCriteriaTimestr(); } } public void selectKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyCclTime_call method_call = new selectKeyCclTime_call(key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyCclTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyCclTime_call(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeyCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyCclTime_args args = new selectKeyCclTime_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_selectKeyCclTime(); } } public void selectKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeyCclTimestr_call method_call = new selectKeyCclTimestr_call(key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeyCclTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeyCclTimestr_call(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeyCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeyCclTimestr_args args = new selectKeyCclTimestr_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_selectKeyCclTimestr(); } } public void selectKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysCriteria_call method_call = new selectKeysCriteria_call(keys, criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysCriteria_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private com.cinchapi.concourse.thrift.TCriteria criteria; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysCriteria_call(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeysCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysCriteria_args args = new selectKeysCriteria_args(); args.setKeys(keys); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_selectKeysCriteria(); } } public void selectKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysCcl_call method_call = new selectKeysCcl_call(keys, ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysCcl_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private String ccl; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysCcl_call(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeysCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysCcl_args args = new selectKeysCcl_args(); args.setKeys(keys); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_selectKeysCcl(); } } public void selectKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysCriteriaTime_call method_call = new selectKeysCriteriaTime_call(keys, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysCriteriaTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private com.cinchapi.concourse.thrift.TCriteria criteria; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysCriteriaTime_call(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeysCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysCriteriaTime_args args = new selectKeysCriteriaTime_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_selectKeysCriteriaTime(); } } public void selectKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysCriteriaTimestr_call method_call = new selectKeysCriteriaTimestr_call(keys, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysCriteriaTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private com.cinchapi.concourse.thrift.TCriteria criteria; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysCriteriaTimestr_call(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeysCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysCriteriaTimestr_args args = new selectKeysCriteriaTimestr_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_selectKeysCriteriaTimestr(); } } public void selectKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysCclTime_call method_call = new selectKeysCclTime_call(keys, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysCclTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private String ccl; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysCclTime_call(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeysCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysCclTime_args args = new selectKeysCclTime_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_selectKeysCclTime(); } } public void selectKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); selectKeysCclTimestr_call method_call = new selectKeysCclTimestr_call(keys, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class selectKeysCclTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private String ccl; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public selectKeysCclTimestr_call(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("selectKeysCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); selectKeysCclTimestr_args args = new selectKeysCclTimestr_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_selectKeysCclTimestr(); } } public void getKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyRecord_call method_call = new getKeyRecord_call(key, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyRecord_call(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeyRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyRecord_args args = new getKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_getKeyRecord(); } } public void getKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyRecordTime_call method_call = new getKeyRecordTime_call(key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyRecordTime_call(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeyRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyRecordTime_args args = new getKeyRecordTime_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_getKeyRecordTime(); } } public void getKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyRecordTimestr_call method_call = new getKeyRecordTimestr_call(key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyRecordTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyRecordTimestr_call(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeyRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyRecordTimestr_args args = new getKeyRecordTimestr_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_getKeyRecordTimestr(); } } public void getKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysRecord_call method_call = new getKeysRecord_call(keys, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysRecord_call(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeysRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysRecord_args args = new getKeysRecord_args(); args.setKeys(keys); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_getKeysRecord(); } } public void getKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysRecordTime_call method_call = new getKeysRecordTime_call(keys, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysRecordTime_call(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeysRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysRecordTime_args args = new getKeysRecordTime_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_getKeysRecordTime(); } } public void getKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysRecordTimestr_call method_call = new getKeysRecordTimestr_call(keys, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysRecordTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysRecordTimestr_call(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeysRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysRecordTimestr_args args = new getKeysRecordTimestr_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_getKeysRecordTimestr(); } } public void getKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysRecords_call method_call = new getKeysRecords_call(keys, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysRecords_call(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeysRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysRecords_args args = new getKeysRecords_args(); args.setKeys(keys); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_getKeysRecords(); } } public void getKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyRecords_call method_call = new getKeyRecords_call(key, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyRecords_call(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeyRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyRecords_args args = new getKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_getKeyRecords(); } } public void getKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyRecordsTime_call method_call = new getKeyRecordsTime_call(key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyRecordsTime_call(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeyRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyRecordsTime_args args = new getKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_getKeyRecordsTime(); } } public void getKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyRecordsTimestr_call method_call = new getKeyRecordsTimestr_call(key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyRecordsTimestr_call(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeyRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyRecordsTimestr_args args = new getKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_getKeyRecordsTimestr(); } } public void getKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysRecordsTime_call method_call = new getKeysRecordsTime_call(keys, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysRecordsTime_call(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeysRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysRecordsTime_args args = new getKeysRecordsTime_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_getKeysRecordsTime(); } } public void getKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysRecordsTimestr_call method_call = new getKeysRecordsTimestr_call(keys, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysRecordsTimestr_call(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeysRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysRecordsTimestr_args args = new getKeysRecordsTimestr_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_getKeysRecordsTimestr(); } } public void getKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyCriteria_call method_call = new getKeyCriteria_call(key, criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyCriteria_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyCriteria_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeyCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyCriteria_args args = new getKeyCriteria_args(); args.setKey(key); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_getKeyCriteria(); } } public void getCriteria(com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getCriteria_call method_call = new getCriteria_call(criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getCriteria_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.TCriteria criteria; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getCriteria_call(com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); getCriteria_args args = new getCriteria_args(); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_getCriteria(); } } public void getCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getCcl_call method_call = new getCcl_call(ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getCcl_call extends org.apache.thrift.async.TAsyncMethodCall { private String ccl; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getCcl_call(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); getCcl_args args = new getCcl_args(); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_getCcl(); } } public void getCriteriaTime(com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getCriteriaTime_call method_call = new getCriteriaTime_call(criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getCriteriaTime_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.TCriteria criteria; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getCriteriaTime_call(com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); getCriteriaTime_args args = new getCriteriaTime_args(); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_getCriteriaTime(); } } public void getCriteriaTimestr(com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getCriteriaTimestr_call method_call = new getCriteriaTimestr_call(criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getCriteriaTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.TCriteria criteria; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getCriteriaTimestr_call(com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); getCriteriaTimestr_args args = new getCriteriaTimestr_args(); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_getCriteriaTimestr(); } } public void getCclTime(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getCclTime_call method_call = new getCclTime_call(ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getCclTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String ccl; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getCclTime_call(String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); getCclTime_args args = new getCclTime_args(); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_getCclTime(); } } public void getCclTimestr(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getCclTimestr_call method_call = new getCclTimestr_call(ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getCclTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String ccl; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getCclTimestr_call(String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); getCclTimestr_args args = new getCclTimestr_args(); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_getCclTimestr(); } } public void getKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyCcl_call method_call = new getKeyCcl_call(key, ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyCcl_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyCcl_call(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeyCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyCcl_args args = new getKeyCcl_args(); args.setKey(key); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_getKeyCcl(); } } public void getKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyCriteriaTime_call method_call = new getKeyCriteriaTime_call(key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyCriteriaTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyCriteriaTime_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeyCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyCriteriaTime_args args = new getKeyCriteriaTime_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_getKeyCriteriaTime(); } } public void getKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyCriteriaTimestr_call method_call = new getKeyCriteriaTimestr_call(key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyCriteriaTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyCriteriaTimestr_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeyCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyCriteriaTimestr_args args = new getKeyCriteriaTimestr_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_getKeyCriteriaTimestr(); } } public void getKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyCclTime_call method_call = new getKeyCclTime_call(key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyCclTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyCclTime_call(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeyCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyCclTime_args args = new getKeyCclTime_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_getKeyCclTime(); } } public void getKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeyCclTimestr_call method_call = new getKeyCclTimestr_call(key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeyCclTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeyCclTimestr_call(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeyCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeyCclTimestr_args args = new getKeyCclTimestr_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_getKeyCclTimestr(); } } public void getKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysCriteria_call method_call = new getKeysCriteria_call(keys, criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysCriteria_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private com.cinchapi.concourse.thrift.TCriteria criteria; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysCriteria_call(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeysCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysCriteria_args args = new getKeysCriteria_args(); args.setKeys(keys); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_getKeysCriteria(); } } public void getKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysCcl_call method_call = new getKeysCcl_call(keys, ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysCcl_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private String ccl; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysCcl_call(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeysCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysCcl_args args = new getKeysCcl_args(); args.setKeys(keys); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_getKeysCcl(); } } public void getKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysCriteriaTime_call method_call = new getKeysCriteriaTime_call(keys, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysCriteriaTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private com.cinchapi.concourse.thrift.TCriteria criteria; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysCriteriaTime_call(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeysCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysCriteriaTime_args args = new getKeysCriteriaTime_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_getKeysCriteriaTime(); } } public void getKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysCriteriaTimestr_call method_call = new getKeysCriteriaTimestr_call(keys, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysCriteriaTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private com.cinchapi.concourse.thrift.TCriteria criteria; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysCriteriaTimestr_call(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeysCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysCriteriaTimestr_args args = new getKeysCriteriaTimestr_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_getKeysCriteriaTimestr(); } } public void getKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysCclTime_call method_call = new getKeysCclTime_call(keys, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysCclTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private String ccl; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysCclTime_call(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeysCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysCclTime_args args = new getKeysCclTime_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_getKeysCclTime(); } } public void getKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getKeysCclTimestr_call method_call = new getKeysCclTimestr_call(keys, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getKeysCclTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private String ccl; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public getKeysCclTimestr_call(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getKeysCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); getKeysCclTimestr_args args = new getKeysCclTimestr_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_getKeysCclTimestr(); } } public void verifyKeyValueRecord(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); verifyKeyValueRecord_call method_call = new verifyKeyValueRecord_call(key, value, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class verifyKeyValueRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TObject value; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public verifyKeyValueRecord_call(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.value = value; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("verifyKeyValueRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); verifyKeyValueRecord_args args = new verifyKeyValueRecord_args(); args.setKey(key); args.setValue(value); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public boolean getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_verifyKeyValueRecord(); } } public void verifyKeyValueRecordTime(String key, com.cinchapi.concourse.thrift.TObject value, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); verifyKeyValueRecordTime_call method_call = new verifyKeyValueRecordTime_call(key, value, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class verifyKeyValueRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TObject value; private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public verifyKeyValueRecordTime_call(String key, com.cinchapi.concourse.thrift.TObject value, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.value = value; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("verifyKeyValueRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); verifyKeyValueRecordTime_args args = new verifyKeyValueRecordTime_args(); args.setKey(key); args.setValue(value); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public boolean getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_verifyKeyValueRecordTime(); } } public void verifyKeyValueRecordTimestr(String key, com.cinchapi.concourse.thrift.TObject value, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); verifyKeyValueRecordTimestr_call method_call = new verifyKeyValueRecordTimestr_call(key, value, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class verifyKeyValueRecordTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TObject value; private long record; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public verifyKeyValueRecordTimestr_call(String key, com.cinchapi.concourse.thrift.TObject value, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.value = value; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("verifyKeyValueRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); verifyKeyValueRecordTimestr_args args = new verifyKeyValueRecordTimestr_args(); args.setKey(key); args.setValue(value); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public boolean getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_verifyKeyValueRecordTimestr(); } } public void jsonifyRecords(List records, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); jsonifyRecords_call method_call = new jsonifyRecords_call(records, identifier, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class jsonifyRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private boolean identifier; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public jsonifyRecords_call(List records, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.records = records; this.identifier = identifier; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("jsonifyRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); jsonifyRecords_args args = new jsonifyRecords_args(); args.setRecords(records); args.setIdentifier(identifier); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public String getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_jsonifyRecords(); } } public void jsonifyRecordsTime(List records, long timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); jsonifyRecordsTime_call method_call = new jsonifyRecordsTime_call(records, timestamp, identifier, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class jsonifyRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private long timestamp; private boolean identifier; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public jsonifyRecordsTime_call(List records, long timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.records = records; this.timestamp = timestamp; this.identifier = identifier; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("jsonifyRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); jsonifyRecordsTime_args args = new jsonifyRecordsTime_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setIdentifier(identifier); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public String getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_jsonifyRecordsTime(); } } public void jsonifyRecordsTimestr(List records, String timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); jsonifyRecordsTimestr_call method_call = new jsonifyRecordsTimestr_call(records, timestamp, identifier, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class jsonifyRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private String timestamp; private boolean identifier; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public jsonifyRecordsTimestr_call(List records, String timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.records = records; this.timestamp = timestamp; this.identifier = identifier; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("jsonifyRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); jsonifyRecordsTimestr_args args = new jsonifyRecordsTimestr_args(); args.setRecords(records); args.setTimestamp(timestamp); args.setIdentifier(identifier); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public String getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_jsonifyRecordsTimestr(); } } public void findCriteria(com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); findCriteria_call method_call = new findCriteria_call(criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class findCriteria_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.TCriteria criteria; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public findCriteria_call(com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("findCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); findCriteria_args args = new findCriteria_args(); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_findCriteria(); } } public void findCcl(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); findCcl_call method_call = new findCcl_call(ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class findCcl_call extends org.apache.thrift.async.TAsyncMethodCall { private String ccl; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public findCcl_call(String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("findCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); findCcl_args args = new findCcl_args(); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_findCcl(); } } public void findKeyOperatorValues(String key, com.cinchapi.concourse.thrift.Operator operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); findKeyOperatorValues_call method_call = new findKeyOperatorValues_call(key, operator, values, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class findKeyOperatorValues_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.Operator operator; private List values; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public findKeyOperatorValues_call(String key, com.cinchapi.concourse.thrift.Operator operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.operator = operator; this.values = values; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("findKeyOperatorValues", org.apache.thrift.protocol.TMessageType.CALL, 0)); findKeyOperatorValues_args args = new findKeyOperatorValues_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_findKeyOperatorValues(); } } public void findKeyOperatorValuesTime(String key, com.cinchapi.concourse.thrift.Operator operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); findKeyOperatorValuesTime_call method_call = new findKeyOperatorValuesTime_call(key, operator, values, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class findKeyOperatorValuesTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.Operator operator; private List values; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public findKeyOperatorValuesTime_call(String key, com.cinchapi.concourse.thrift.Operator operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.operator = operator; this.values = values; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("findKeyOperatorValuesTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); findKeyOperatorValuesTime_args args = new findKeyOperatorValuesTime_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_findKeyOperatorValuesTime(); } } public void findKeyOperatorValuesTimestr(String key, com.cinchapi.concourse.thrift.Operator operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); findKeyOperatorValuesTimestr_call method_call = new findKeyOperatorValuesTimestr_call(key, operator, values, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class findKeyOperatorValuesTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.Operator operator; private List values; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public findKeyOperatorValuesTimestr_call(String key, com.cinchapi.concourse.thrift.Operator operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.operator = operator; this.values = values; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("findKeyOperatorValuesTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); findKeyOperatorValuesTimestr_args args = new findKeyOperatorValuesTimestr_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_findKeyOperatorValuesTimestr(); } } public void findKeyOperatorstrValues(String key, String operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); findKeyOperatorstrValues_call method_call = new findKeyOperatorstrValues_call(key, operator, values, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class findKeyOperatorstrValues_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String operator; private List values; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public findKeyOperatorstrValues_call(String key, String operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.operator = operator; this.values = values; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("findKeyOperatorstrValues", org.apache.thrift.protocol.TMessageType.CALL, 0)); findKeyOperatorstrValues_args args = new findKeyOperatorstrValues_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_findKeyOperatorstrValues(); } } public void findKeyOperatorstrValuesTime(String key, String operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); findKeyOperatorstrValuesTime_call method_call = new findKeyOperatorstrValuesTime_call(key, operator, values, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class findKeyOperatorstrValuesTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String operator; private List values; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public findKeyOperatorstrValuesTime_call(String key, String operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.operator = operator; this.values = values; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("findKeyOperatorstrValuesTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); findKeyOperatorstrValuesTime_args args = new findKeyOperatorstrValuesTime_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_findKeyOperatorstrValuesTime(); } } public void findKeyOperatorstrValuesTimestr(String key, String operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); findKeyOperatorstrValuesTimestr_call method_call = new findKeyOperatorstrValuesTimestr_call(key, operator, values, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class findKeyOperatorstrValuesTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String operator; private List values; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public findKeyOperatorstrValuesTimestr_call(String key, String operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.operator = operator; this.values = values; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("findKeyOperatorstrValuesTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); findKeyOperatorstrValuesTimestr_args args = new findKeyOperatorstrValuesTimestr_args(); args.setKey(key); args.setOperator(operator); args.setValues(values); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_findKeyOperatorstrValuesTimestr(); } } public void search(String key, String query, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); search_call method_call = new search_call(key, query, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class search_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String query; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public search_call(String key, String query, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.query = query; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("search", org.apache.thrift.protocol.TMessageType.CALL, 0)); search_args args = new search_args(); args.setKey(key); args.setQuery(query); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_search(); } } public void revertKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); revertKeysRecordsTime_call method_call = new revertKeysRecordsTime_call(keys, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class revertKeysRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public revertKeysRecordsTime_call(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("revertKeysRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); revertKeysRecordsTime_args args = new revertKeysRecordsTime_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_revertKeysRecordsTime(); } } public void revertKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); revertKeysRecordsTimestr_call method_call = new revertKeysRecordsTimestr_call(keys, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class revertKeysRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public revertKeysRecordsTimestr_call(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("revertKeysRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); revertKeysRecordsTimestr_args args = new revertKeysRecordsTimestr_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_revertKeysRecordsTimestr(); } } public void revertKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); revertKeysRecordTime_call method_call = new revertKeysRecordTime_call(keys, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class revertKeysRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public revertKeysRecordTime_call(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("revertKeysRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); revertKeysRecordTime_args args = new revertKeysRecordTime_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_revertKeysRecordTime(); } } public void revertKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); revertKeysRecordTimestr_call method_call = new revertKeysRecordTimestr_call(keys, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class revertKeysRecordTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public revertKeysRecordTimestr_call(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("revertKeysRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); revertKeysRecordTimestr_args args = new revertKeysRecordTimestr_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_revertKeysRecordTimestr(); } } public void revertKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); revertKeyRecordsTime_call method_call = new revertKeyRecordsTime_call(key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class revertKeyRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public revertKeyRecordsTime_call(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("revertKeyRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); revertKeyRecordsTime_args args = new revertKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_revertKeyRecordsTime(); } } public void revertKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); revertKeyRecordsTimestr_call method_call = new revertKeyRecordsTimestr_call(key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class revertKeyRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public revertKeyRecordsTimestr_call(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("revertKeyRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); revertKeyRecordsTimestr_args args = new revertKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_revertKeyRecordsTimestr(); } } public void revertKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); revertKeyRecordTime_call method_call = new revertKeyRecordTime_call(key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class revertKeyRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public revertKeyRecordTime_call(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("revertKeyRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); revertKeyRecordTime_args args = new revertKeyRecordTime_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_revertKeyRecordTime(); } } public void revertKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); revertKeyRecordTimestr_call method_call = new revertKeyRecordTimestr_call(key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class revertKeyRecordTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public revertKeyRecordTimestr_call(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("revertKeyRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); revertKeyRecordTimestr_args args = new revertKeyRecordTimestr_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_revertKeyRecordTimestr(); } } public void pingRecords(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); pingRecords_call method_call = new pingRecords_call(records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class pingRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public pingRecords_call(List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("pingRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); pingRecords_args args = new pingRecords_args(); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_pingRecords(); } } public void pingRecord(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); pingRecord_call method_call = new pingRecord_call(record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class pingRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public pingRecord_call(long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("pingRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); pingRecord_args args = new pingRecord_args(); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public boolean getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_pingRecord(); } } public void verifyAndSwap(String key, com.cinchapi.concourse.thrift.TObject expected, long record, com.cinchapi.concourse.thrift.TObject replacement, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); verifyAndSwap_call method_call = new verifyAndSwap_call(key, expected, record, replacement, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class verifyAndSwap_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TObject expected; private long record; private com.cinchapi.concourse.thrift.TObject replacement; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public verifyAndSwap_call(String key, com.cinchapi.concourse.thrift.TObject expected, long record, com.cinchapi.concourse.thrift.TObject replacement, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.expected = expected; this.record = record; this.replacement = replacement; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("verifyAndSwap", org.apache.thrift.protocol.TMessageType.CALL, 0)); verifyAndSwap_args args = new verifyAndSwap_args(); args.setKey(key); args.setExpected(expected); args.setRecord(record); args.setReplacement(replacement); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public boolean getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_verifyAndSwap(); } } public void verifyOrSet(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); verifyOrSet_call method_call = new verifyOrSet_call(key, value, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class verifyOrSet_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TObject value; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public verifyOrSet_call(String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.value = value; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("verifyOrSet", org.apache.thrift.protocol.TMessageType.CALL, 0)); verifyOrSet_args args = new verifyOrSet_args(); args.setKey(key); args.setValue(value); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.InvalidArgumentException, 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_verifyOrSet(); } } public void findOrAddKeyValue(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); findOrAddKeyValue_call method_call = new findOrAddKeyValue_call(key, value, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class findOrAddKeyValue_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TObject value; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public findOrAddKeyValue_call(String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.value = value; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("findOrAddKeyValue", org.apache.thrift.protocol.TMessageType.CALL, 0)); findOrAddKeyValue_args args = new findOrAddKeyValue_args(); args.setKey(key); args.setValue(value); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public long getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.DuplicateEntryException, com.cinchapi.concourse.thrift.InvalidArgumentException, 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_findOrAddKeyValue(); } } public void findOrInsertCriteriaJson(com.cinchapi.concourse.thrift.TCriteria criteria, String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); findOrInsertCriteriaJson_call method_call = new findOrInsertCriteriaJson_call(criteria, json, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class findOrInsertCriteriaJson_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.TCriteria criteria; private String json; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public findOrInsertCriteriaJson_call(com.cinchapi.concourse.thrift.TCriteria criteria, String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.criteria = criteria; this.json = json; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("findOrInsertCriteriaJson", org.apache.thrift.protocol.TMessageType.CALL, 0)); findOrInsertCriteriaJson_args args = new findOrInsertCriteriaJson_args(); args.setCriteria(criteria); args.setJson(json); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public long getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.DuplicateEntryException, 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_findOrInsertCriteriaJson(); } } public void findOrInsertCclJson(String ccl, String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); findOrInsertCclJson_call method_call = new findOrInsertCclJson_call(ccl, json, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class findOrInsertCclJson_call extends org.apache.thrift.async.TAsyncMethodCall { private String ccl; private String json; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public findOrInsertCclJson_call(String ccl, String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.ccl = ccl; this.json = json; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("findOrInsertCclJson", org.apache.thrift.protocol.TMessageType.CALL, 0)); findOrInsertCclJson_args args = new findOrInsertCclJson_args(); args.setCcl(ccl); args.setJson(json); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public long getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, com.cinchapi.concourse.thrift.DuplicateEntryException, 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_findOrInsertCclJson(); } } public void sumKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); sumKeyRecord_call method_call = new sumKeyRecord_call(key, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sumKeyRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public sumKeyRecord_call(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sumKeyRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); sumKeyRecord_args args = new sumKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_sumKeyRecord(); } } public void sumKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); sumKey_call method_call = new sumKey_call(key, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sumKey_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public sumKey_call(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sumKey", org.apache.thrift.protocol.TMessageType.CALL, 0)); sumKey_args args = new sumKey_args(); args.setKey(key); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_sumKey(); } } public void sumKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); sumKeyTime_call method_call = new sumKeyTime_call(key, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sumKeyTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public sumKeyTime_call(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sumKeyTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); sumKeyTime_args args = new sumKeyTime_args(); args.setKey(key); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_sumKeyTime(); } } public void sumKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); sumKeyRecordTime_call method_call = new sumKeyRecordTime_call(key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sumKeyRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public sumKeyRecordTime_call(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sumKeyRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); sumKeyRecordTime_args args = new sumKeyRecordTime_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_sumKeyRecordTime(); } } public void sumKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); sumKeyRecords_call method_call = new sumKeyRecords_call(key, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sumKeyRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public sumKeyRecords_call(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sumKeyRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); sumKeyRecords_args args = new sumKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_sumKeyRecords(); } } public void sumKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); sumKeyRecordsTime_call method_call = new sumKeyRecordsTime_call(key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sumKeyRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public sumKeyRecordsTime_call(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sumKeyRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); sumKeyRecordsTime_args args = new sumKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_sumKeyRecordsTime(); } } public void sumKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); sumKeyCriteria_call method_call = new sumKeyCriteria_call(key, criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sumKeyCriteria_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public sumKeyCriteria_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sumKeyCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); sumKeyCriteria_args args = new sumKeyCriteria_args(); args.setKey(key); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_sumKeyCriteria(); } } public void sumKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); sumKeyCcl_call method_call = new sumKeyCcl_call(key, ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sumKeyCcl_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public sumKeyCcl_call(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sumKeyCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); sumKeyCcl_args args = new sumKeyCcl_args(); args.setKey(key); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_sumKeyCcl(); } } public void sumKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); sumKeyCriteriaTime_call method_call = new sumKeyCriteriaTime_call(key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sumKeyCriteriaTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public sumKeyCriteriaTime_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sumKeyCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); sumKeyCriteriaTime_args args = new sumKeyCriteriaTime_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_sumKeyCriteriaTime(); } } public void sumKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); sumKeyCclTime_call method_call = new sumKeyCclTime_call(key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sumKeyCclTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public sumKeyCclTime_call(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sumKeyCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); sumKeyCclTime_args args = new sumKeyCclTime_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_sumKeyCclTime(); } } public void averageKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); averageKeyRecord_call method_call = new averageKeyRecord_call(key, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class averageKeyRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public averageKeyRecord_call(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("averageKeyRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); averageKeyRecord_args args = new averageKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_averageKeyRecord(); } } public void averageKey(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); averageKey_call method_call = new averageKey_call(key, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class averageKey_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public averageKey_call(String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("averageKey", org.apache.thrift.protocol.TMessageType.CALL, 0)); averageKey_args args = new averageKey_args(); args.setKey(key); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_averageKey(); } } public void averageKeyTime(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); averageKeyTime_call method_call = new averageKeyTime_call(key, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class averageKeyTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public averageKeyTime_call(String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("averageKeyTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); averageKeyTime_args args = new averageKeyTime_args(); args.setKey(key); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_averageKeyTime(); } } public void averageKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); averageKeyRecordTime_call method_call = new averageKeyRecordTime_call(key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class averageKeyRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public averageKeyRecordTime_call(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("averageKeyRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); averageKeyRecordTime_args args = new averageKeyRecordTime_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_averageKeyRecordTime(); } } public void averageKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); averageKeyRecords_call method_call = new averageKeyRecords_call(key, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class averageKeyRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public averageKeyRecords_call(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("averageKeyRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); averageKeyRecords_args args = new averageKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_averageKeyRecords(); } } public void averageKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); averageKeyRecordsTime_call method_call = new averageKeyRecordsTime_call(key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class averageKeyRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public averageKeyRecordsTime_call(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("averageKeyRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); averageKeyRecordsTime_args args = new averageKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_averageKeyRecordsTime(); } } public void averageKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); averageKeyCriteria_call method_call = new averageKeyCriteria_call(key, criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class averageKeyCriteria_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public averageKeyCriteria_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("averageKeyCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); averageKeyCriteria_args args = new averageKeyCriteria_args(); args.setKey(key); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_averageKeyCriteria(); } } public void averageKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); averageKeyCcl_call method_call = new averageKeyCcl_call(key, ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class averageKeyCcl_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public averageKeyCcl_call(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("averageKeyCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); averageKeyCcl_args args = new averageKeyCcl_args(); args.setKey(key); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_averageKeyCcl(); } } public void averageKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); averageKeyCriteriaTime_call method_call = new averageKeyCriteriaTime_call(key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class averageKeyCriteriaTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public averageKeyCriteriaTime_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("averageKeyCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); averageKeyCriteriaTime_args args = new averageKeyCriteriaTime_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_averageKeyCriteriaTime(); } } public void averageKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); averageKeyCclTime_call method_call = new averageKeyCclTime_call(key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class averageKeyCclTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public averageKeyCclTime_call(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("averageKeyCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); averageKeyCclTime_args args = new averageKeyCclTime_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.TObject getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_averageKeyCclTime(); } } public void navigateKeyRecord(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyRecord_call method_call = new navigateKeyRecord_call(key, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyRecord_call(String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeyRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyRecord_args args = new navigateKeyRecord_args(); args.setKey(key); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_navigateKeyRecord(); } } public void navigateKeyRecordTime(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyRecordTime_call method_call = new navigateKeyRecordTime_call(key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyRecordTime_call(String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeyRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyRecordTime_args args = new navigateKeyRecordTime_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_navigateKeyRecordTime(); } } public void navigateKeyRecordTimestr(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyRecordTimestr_call method_call = new navigateKeyRecordTimestr_call(key, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyRecordTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private long record; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyRecordTimestr_call(String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeyRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyRecordTimestr_args args = new navigateKeyRecordTimestr_args(); args.setKey(key); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_navigateKeyRecordTimestr(); } } public void navigateKeysRecord(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysRecord_call method_call = new navigateKeysRecord_call(keys, record, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysRecord_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysRecord_call(List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.record = record; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeysRecord", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysRecord_args args = new navigateKeysRecord_args(); args.setKeys(keys); args.setRecord(record); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_navigateKeysRecord(); } } public void navigateKeysRecordTime(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysRecordTime_call method_call = new navigateKeysRecordTime_call(keys, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysRecordTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysRecordTime_call(List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeysRecordTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysRecordTime_args args = new navigateKeysRecordTime_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_navigateKeysRecordTime(); } } public void navigateKeysRecordTimestr(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysRecordTimestr_call method_call = new navigateKeysRecordTimestr_call(keys, record, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysRecordTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private long record; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysRecordTimestr_call(List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.record = record; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeysRecordTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysRecordTimestr_args args = new navigateKeysRecordTimestr_args(); args.setKeys(keys); args.setRecord(record); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_navigateKeysRecordTimestr(); } } public void navigateKeysRecords(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysRecords_call method_call = new navigateKeysRecords_call(keys, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysRecords_call(List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeysRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysRecords_args args = new navigateKeysRecords_args(); args.setKeys(keys); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_navigateKeysRecords(); } } public void navigateKeyRecords(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyRecords_call method_call = new navigateKeyRecords_call(key, records, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyRecords_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyRecords_call(String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeyRecords", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyRecords_args args = new navigateKeyRecords_args(); args.setKey(key); args.setRecords(records); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_navigateKeyRecords(); } } public void navigateKeyRecordsTime(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyRecordsTime_call method_call = new navigateKeyRecordsTime_call(key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyRecordsTime_call(String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeyRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyRecordsTime_args args = new navigateKeyRecordsTime_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_navigateKeyRecordsTime(); } } public void navigateKeyRecordsTimestr(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyRecordsTimestr_call method_call = new navigateKeyRecordsTimestr_call(key, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyRecordsTimestr_call(String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeyRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyRecordsTimestr_args args = new navigateKeyRecordsTimestr_args(); args.setKey(key); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_navigateKeyRecordsTimestr(); } } public void navigateKeysRecordsTime(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysRecordsTime_call method_call = new navigateKeysRecordsTime_call(keys, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysRecordsTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysRecordsTime_call(List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeysRecordsTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysRecordsTime_args args = new navigateKeysRecordsTime_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_navigateKeysRecordsTime(); } } public void navigateKeysRecordsTimestr(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysRecordsTimestr_call method_call = new navigateKeysRecordsTimestr_call(keys, records, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysRecordsTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private List records; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysRecordsTimestr_call(List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeysRecordsTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysRecordsTimestr_args args = new navigateKeysRecordsTimestr_args(); args.setKeys(keys); args.setRecords(records); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_navigateKeysRecordsTimestr(); } } public void navigateKeyCcl(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyCcl_call method_call = new navigateKeyCcl_call(key, ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyCcl_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyCcl_call(String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeyCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyCcl_args args = new navigateKeyCcl_args(); args.setKey(key); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_navigateKeyCcl(); } } public void navigateKeyCclTime(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyCclTime_call method_call = new navigateKeyCclTime_call(key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyCclTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyCclTime_call(String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeyCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyCclTime_args args = new navigateKeyCclTime_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_navigateKeyCclTime(); } } public void navigateKeyCclTimestr(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyCclTimestr_call method_call = new navigateKeyCclTimestr_call(key, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyCclTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String ccl; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyCclTimestr_call(String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeyCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyCclTimestr_args args = new navigateKeyCclTimestr_args(); args.setKey(key); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_navigateKeyCclTimestr(); } } public void navigateKeysCcl(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysCcl_call method_call = new navigateKeysCcl_call(keys, ccl, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysCcl_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private String ccl; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysCcl_call(List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeysCcl", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysCcl_args args = new navigateKeysCcl_args(); args.setKeys(keys); args.setCcl(ccl); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_navigateKeysCcl(); } } public void navigateKeysCclTime(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysCclTime_call method_call = new navigateKeysCclTime_call(keys, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysCclTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private String ccl; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysCclTime_call(List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeysCclTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysCclTime_args args = new navigateKeysCclTime_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_navigateKeysCclTime(); } } public void navigateKeysCclTimestr(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysCclTimestr_call method_call = new navigateKeysCclTimestr_call(keys, ccl, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysCclTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private String ccl; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysCclTimestr_call(List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeysCclTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysCclTimestr_args args = new navigateKeysCclTimestr_args(); args.setKeys(keys); args.setCcl(ccl); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_navigateKeysCclTimestr(); } } public void navigateKeyCriteria(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyCriteria_call method_call = new navigateKeyCriteria_call(key, criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyCriteria_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyCriteria_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeyCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyCriteria_args args = new navigateKeyCriteria_args(); args.setKey(key); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_navigateKeyCriteria(); } } public void navigateKeyCriteriaTime(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyCriteriaTime_call method_call = new navigateKeyCriteriaTime_call(key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyCriteriaTime_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyCriteriaTime_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeyCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyCriteriaTime_args args = new navigateKeyCriteriaTime_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_navigateKeyCriteriaTime(); } } public void navigateKeyCriteriaTimestr(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeyCriteriaTimestr_call method_call = new navigateKeyCriteriaTimestr_call(key, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeyCriteriaTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private com.cinchapi.concourse.thrift.TCriteria criteria; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeyCriteriaTimestr_call(String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeyCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeyCriteriaTimestr_args args = new navigateKeyCriteriaTimestr_args(); args.setKey(key); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_navigateKeyCriteriaTimestr(); } } public void navigateKeysCriteria(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysCriteria_call method_call = new navigateKeysCriteria_call(keys, criteria, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysCriteria_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private com.cinchapi.concourse.thrift.TCriteria criteria; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysCriteria_call(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeysCriteria", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysCriteria_args args = new navigateKeysCriteria_args(); args.setKeys(keys); args.setCriteria(criteria); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_navigateKeysCriteria(); } } public void navigateKeysCriteriaTime(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysCriteriaTime_call method_call = new navigateKeysCriteriaTime_call(keys, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysCriteriaTime_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private com.cinchapi.concourse.thrift.TCriteria criteria; private long timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysCriteriaTime_call(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeysCriteriaTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysCriteriaTime_args args = new navigateKeysCriteriaTime_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_navigateKeysCriteriaTime(); } } public void navigateKeysCriteriaTimestr(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); navigateKeysCriteriaTimestr_call method_call = new navigateKeysCriteriaTimestr_call(keys, criteria, timestamp, creds, transaction, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class navigateKeysCriteriaTimestr_call extends org.apache.thrift.async.TAsyncMethodCall { private List keys; private com.cinchapi.concourse.thrift.TCriteria criteria; private String timestamp; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken transaction; private String environment; public navigateKeysCriteriaTimestr_call(List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment, 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.keys = keys; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("navigateKeysCriteriaTimestr", org.apache.thrift.protocol.TMessageType.CALL, 0)); navigateKeysCriteriaTimestr_args args = new navigateKeysCriteriaTimestr_args(); args.setKeys(keys); args.setCriteria(criteria); args.setTimestamp(timestamp); args.setCreds(creds); args.setTransaction(transaction); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public Map>> getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_navigateKeysCriteriaTimestr(); } } public void getServerEnvironment(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getServerEnvironment_call method_call = new getServerEnvironment_call(creds, token, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getServerEnvironment_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken token; private String environment; public getServerEnvironment_call(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.creds = creds; this.token = token; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getServerEnvironment", org.apache.thrift.protocol.TMessageType.CALL, 0)); getServerEnvironment_args args = new getServerEnvironment_args(); args.setCreds(creds); args.setToken(token); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public String getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_getServerEnvironment(); } } public void getServerVersion(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getServerVersion_call method_call = new getServerVersion_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getServerVersion_call extends org.apache.thrift.async.TAsyncMethodCall { public getServerVersion_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("getServerVersion", org.apache.thrift.protocol.TMessageType.CALL, 0)); getServerVersion_args args = new getServerVersion_args(); args.write(prot); prot.writeMessageEnd(); } public String getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_getServerVersion(); } } public void time(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); time_call method_call = new time_call(creds, token, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class time_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken token; private String environment; public time_call(com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.creds = creds; this.token = token; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("time", org.apache.thrift.protocol.TMessageType.CALL, 0)); time_args args = new time_args(); args.setCreds(creds); args.setToken(token); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public long getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, 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_time(); } } public void timePhrase(String phrase, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); timePhrase_call method_call = new timePhrase_call(phrase, creds, token, environment, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class timePhrase_call extends org.apache.thrift.async.TAsyncMethodCall { private String phrase; private com.cinchapi.concourse.thrift.AccessToken creds; private com.cinchapi.concourse.thrift.TransactionToken token; private String environment; public timePhrase_call(String phrase, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment, 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.phrase = phrase; this.creds = creds; this.token = token; this.environment = environment; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("timePhrase", org.apache.thrift.protocol.TMessageType.CALL, 0)); timePhrase_args args = new timePhrase_args(); args.setPhrase(phrase); args.setCreds(creds); args.setToken(token); args.setEnvironment(environment); args.write(prot); prot.writeMessageEnd(); } public long getResult() throws com.cinchapi.concourse.thrift.SecurityException, com.cinchapi.concourse.thrift.TransactionException, com.cinchapi.concourse.thrift.ParseException, 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_timePhrase(); } } } 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 LinkedHashMap>())); } protected Processor(I iface, Map> processMap) { super(iface, getProcessMap(processMap)); } private static Map> getProcessMap(Map> processMap) { processMap.put("abort", new abort()); processMap.put("addKeyValue", new addKeyValue()); processMap.put("addKeyValueRecord", new addKeyValueRecord()); processMap.put("addKeyValueRecords", new addKeyValueRecords()); processMap.put("auditRecord", new auditRecord()); processMap.put("auditRecordStart", new auditRecordStart()); processMap.put("auditRecordStartstr", new auditRecordStartstr()); processMap.put("auditRecordStartEnd", new auditRecordStartEnd()); processMap.put("auditRecordStartstrEndstr", new auditRecordStartstrEndstr()); processMap.put("auditKeyRecord", new auditKeyRecord()); processMap.put("auditKeyRecordStart", new auditKeyRecordStart()); processMap.put("auditKeyRecordStartstr", new auditKeyRecordStartstr()); processMap.put("auditKeyRecordStartEnd", new auditKeyRecordStartEnd()); processMap.put("auditKeyRecordStartstrEndstr", new auditKeyRecordStartstrEndstr()); processMap.put("browseKey", new browseKey()); processMap.put("browseKeys", new browseKeys()); processMap.put("browseKeyTime", new browseKeyTime()); processMap.put("browseKeyTimestr", new browseKeyTimestr()); processMap.put("browseKeysTime", new browseKeysTime()); processMap.put("browseKeysTimestr", new browseKeysTimestr()); processMap.put("chronologizeKeyRecord", new chronologizeKeyRecord()); processMap.put("chronologizeKeyRecordStart", new chronologizeKeyRecordStart()); processMap.put("chronologizeKeyRecordStartstr", new chronologizeKeyRecordStartstr()); processMap.put("chronologizeKeyRecordStartEnd", new chronologizeKeyRecordStartEnd()); processMap.put("chronologizeKeyRecordStartstrEndstr", new chronologizeKeyRecordStartstrEndstr()); processMap.put("clearRecord", new clearRecord()); processMap.put("clearRecords", new clearRecords()); processMap.put("clearKeyRecord", new clearKeyRecord()); processMap.put("clearKeysRecord", new clearKeysRecord()); processMap.put("clearKeyRecords", new clearKeyRecords()); processMap.put("clearKeysRecords", new clearKeysRecords()); processMap.put("commit", new commit()); processMap.put("describe", new describe()); processMap.put("describeTime", new describeTime()); processMap.put("describeTimestr", new describeTimestr()); processMap.put("describeRecord", new describeRecord()); processMap.put("describeRecordTime", new describeRecordTime()); processMap.put("describeRecordTimestr", new describeRecordTimestr()); processMap.put("describeRecords", new describeRecords()); processMap.put("describeRecordsTime", new describeRecordsTime()); processMap.put("describeRecordsTimestr", new describeRecordsTimestr()); processMap.put("diffRecordStart", new diffRecordStart()); processMap.put("diffRecordStartstr", new diffRecordStartstr()); processMap.put("diffRecordStartEnd", new diffRecordStartEnd()); processMap.put("diffRecordStartstrEndstr", new diffRecordStartstrEndstr()); processMap.put("diffKeyRecordStart", new diffKeyRecordStart()); processMap.put("diffKeyRecordStartstr", new diffKeyRecordStartstr()); processMap.put("diffKeyRecordStartEnd", new diffKeyRecordStartEnd()); processMap.put("diffKeyRecordStartstrEndstr", new diffKeyRecordStartstrEndstr()); processMap.put("diffKeyStart", new diffKeyStart()); processMap.put("diffKeyStartstr", new diffKeyStartstr()); processMap.put("diffKeyStartEnd", new diffKeyStartEnd()); processMap.put("diffKeyStartstrEndstr", new diffKeyStartstrEndstr()); processMap.put("invokePlugin", new invokePlugin()); processMap.put("login", new login()); processMap.put("logout", new logout()); processMap.put("stage", new stage()); processMap.put("insertJson", new insertJson()); processMap.put("insertJsonRecord", new insertJsonRecord()); processMap.put("insertJsonRecords", new insertJsonRecords()); processMap.put("removeKeyValueRecord", new removeKeyValueRecord()); processMap.put("removeKeyValueRecords", new removeKeyValueRecords()); processMap.put("setKeyValueRecord", new setKeyValueRecord()); processMap.put("setKeyValue", new setKeyValue()); processMap.put("setKeyValueRecords", new setKeyValueRecords()); processMap.put("reconcileKeyRecordValues", new reconcileKeyRecordValues()); processMap.put("inventory", new inventory()); processMap.put("selectRecord", new selectRecord()); processMap.put("selectRecords", new selectRecords()); processMap.put("selectRecordTime", new selectRecordTime()); processMap.put("selectRecordTimestr", new selectRecordTimestr()); processMap.put("selectRecordsTime", new selectRecordsTime()); processMap.put("selectRecordsTimestr", new selectRecordsTimestr()); processMap.put("selectKeyRecord", new selectKeyRecord()); processMap.put("selectKeyRecordTime", new selectKeyRecordTime()); processMap.put("selectKeyRecordTimestr", new selectKeyRecordTimestr()); processMap.put("selectKeysRecord", new selectKeysRecord()); processMap.put("selectKeysRecordTime", new selectKeysRecordTime()); processMap.put("selectKeysRecordTimestr", new selectKeysRecordTimestr()); processMap.put("selectKeysRecords", new selectKeysRecords()); processMap.put("selectKeyRecords", new selectKeyRecords()); processMap.put("selectKeyRecordsTime", new selectKeyRecordsTime()); processMap.put("selectKeyRecordsTimestr", new selectKeyRecordsTimestr()); processMap.put("selectKeysRecordsTime", new selectKeysRecordsTime()); processMap.put("selectKeysRecordsTimestr", new selectKeysRecordsTimestr()); processMap.put("selectCriteria", new selectCriteria()); processMap.put("selectCcl", new selectCcl()); processMap.put("selectCriteriaTime", new selectCriteriaTime()); processMap.put("selectCriteriaTimestr", new selectCriteriaTimestr()); processMap.put("selectCclTime", new selectCclTime()); processMap.put("selectCclTimestr", new selectCclTimestr()); processMap.put("selectKeyCriteria", new selectKeyCriteria()); processMap.put("selectKeyCcl", new selectKeyCcl()); processMap.put("selectKeyCriteriaTime", new selectKeyCriteriaTime()); processMap.put("selectKeyCriteriaTimestr", new selectKeyCriteriaTimestr()); processMap.put("selectKeyCclTime", new selectKeyCclTime()); processMap.put("selectKeyCclTimestr", new selectKeyCclTimestr()); processMap.put("selectKeysCriteria", new selectKeysCriteria()); processMap.put("selectKeysCcl", new selectKeysCcl()); processMap.put("selectKeysCriteriaTime", new selectKeysCriteriaTime()); processMap.put("selectKeysCriteriaTimestr", new selectKeysCriteriaTimestr()); processMap.put("selectKeysCclTime", new selectKeysCclTime()); processMap.put("selectKeysCclTimestr", new selectKeysCclTimestr()); processMap.put("getKeyRecord", new getKeyRecord()); processMap.put("getKeyRecordTime", new getKeyRecordTime()); processMap.put("getKeyRecordTimestr", new getKeyRecordTimestr()); processMap.put("getKeysRecord", new getKeysRecord()); processMap.put("getKeysRecordTime", new getKeysRecordTime()); processMap.put("getKeysRecordTimestr", new getKeysRecordTimestr()); processMap.put("getKeysRecords", new getKeysRecords()); processMap.put("getKeyRecords", new getKeyRecords()); processMap.put("getKeyRecordsTime", new getKeyRecordsTime()); processMap.put("getKeyRecordsTimestr", new getKeyRecordsTimestr()); processMap.put("getKeysRecordsTime", new getKeysRecordsTime()); processMap.put("getKeysRecordsTimestr", new getKeysRecordsTimestr()); processMap.put("getKeyCriteria", new getKeyCriteria()); processMap.put("getCriteria", new getCriteria()); processMap.put("getCcl", new getCcl()); processMap.put("getCriteriaTime", new getCriteriaTime()); processMap.put("getCriteriaTimestr", new getCriteriaTimestr()); processMap.put("getCclTime", new getCclTime()); processMap.put("getCclTimestr", new getCclTimestr()); processMap.put("getKeyCcl", new getKeyCcl()); processMap.put("getKeyCriteriaTime", new getKeyCriteriaTime()); processMap.put("getKeyCriteriaTimestr", new getKeyCriteriaTimestr()); processMap.put("getKeyCclTime", new getKeyCclTime()); processMap.put("getKeyCclTimestr", new getKeyCclTimestr()); processMap.put("getKeysCriteria", new getKeysCriteria()); processMap.put("getKeysCcl", new getKeysCcl()); processMap.put("getKeysCriteriaTime", new getKeysCriteriaTime()); processMap.put("getKeysCriteriaTimestr", new getKeysCriteriaTimestr()); processMap.put("getKeysCclTime", new getKeysCclTime()); processMap.put("getKeysCclTimestr", new getKeysCclTimestr()); processMap.put("verifyKeyValueRecord", new verifyKeyValueRecord()); processMap.put("verifyKeyValueRecordTime", new verifyKeyValueRecordTime()); processMap.put("verifyKeyValueRecordTimestr", new verifyKeyValueRecordTimestr()); processMap.put("jsonifyRecords", new jsonifyRecords()); processMap.put("jsonifyRecordsTime", new jsonifyRecordsTime()); processMap.put("jsonifyRecordsTimestr", new jsonifyRecordsTimestr()); processMap.put("findCriteria", new findCriteria()); processMap.put("findCcl", new findCcl()); processMap.put("findKeyOperatorValues", new findKeyOperatorValues()); processMap.put("findKeyOperatorValuesTime", new findKeyOperatorValuesTime()); processMap.put("findKeyOperatorValuesTimestr", new findKeyOperatorValuesTimestr()); processMap.put("findKeyOperatorstrValues", new findKeyOperatorstrValues()); processMap.put("findKeyOperatorstrValuesTime", new findKeyOperatorstrValuesTime()); processMap.put("findKeyOperatorstrValuesTimestr", new findKeyOperatorstrValuesTimestr()); processMap.put("search", new search()); processMap.put("revertKeysRecordsTime", new revertKeysRecordsTime()); processMap.put("revertKeysRecordsTimestr", new revertKeysRecordsTimestr()); processMap.put("revertKeysRecordTime", new revertKeysRecordTime()); processMap.put("revertKeysRecordTimestr", new revertKeysRecordTimestr()); processMap.put("revertKeyRecordsTime", new revertKeyRecordsTime()); processMap.put("revertKeyRecordsTimestr", new revertKeyRecordsTimestr()); processMap.put("revertKeyRecordTime", new revertKeyRecordTime()); processMap.put("revertKeyRecordTimestr", new revertKeyRecordTimestr()); processMap.put("pingRecords", new pingRecords()); processMap.put("pingRecord", new pingRecord()); processMap.put("verifyAndSwap", new verifyAndSwap()); processMap.put("verifyOrSet", new verifyOrSet()); processMap.put("findOrAddKeyValue", new findOrAddKeyValue()); processMap.put("findOrInsertCriteriaJson", new findOrInsertCriteriaJson()); processMap.put("findOrInsertCclJson", new findOrInsertCclJson()); processMap.put("sumKeyRecord", new sumKeyRecord()); processMap.put("sumKey", new sumKey()); processMap.put("sumKeyTime", new sumKeyTime()); processMap.put("sumKeyRecordTime", new sumKeyRecordTime()); processMap.put("sumKeyRecords", new sumKeyRecords()); processMap.put("sumKeyRecordsTime", new sumKeyRecordsTime()); processMap.put("sumKeyCriteria", new sumKeyCriteria()); processMap.put("sumKeyCcl", new sumKeyCcl()); processMap.put("sumKeyCriteriaTime", new sumKeyCriteriaTime()); processMap.put("sumKeyCclTime", new sumKeyCclTime()); processMap.put("averageKeyRecord", new averageKeyRecord()); processMap.put("averageKey", new averageKey()); processMap.put("averageKeyTime", new averageKeyTime()); processMap.put("averageKeyRecordTime", new averageKeyRecordTime()); processMap.put("averageKeyRecords", new averageKeyRecords()); processMap.put("averageKeyRecordsTime", new averageKeyRecordsTime()); processMap.put("averageKeyCriteria", new averageKeyCriteria()); processMap.put("averageKeyCcl", new averageKeyCcl()); processMap.put("averageKeyCriteriaTime", new averageKeyCriteriaTime()); processMap.put("averageKeyCclTime", new averageKeyCclTime()); processMap.put("navigateKeyRecord", new navigateKeyRecord()); processMap.put("navigateKeyRecordTime", new navigateKeyRecordTime()); processMap.put("navigateKeyRecordTimestr", new navigateKeyRecordTimestr()); processMap.put("navigateKeysRecord", new navigateKeysRecord()); processMap.put("navigateKeysRecordTime", new navigateKeysRecordTime()); processMap.put("navigateKeysRecordTimestr", new navigateKeysRecordTimestr()); processMap.put("navigateKeysRecords", new navigateKeysRecords()); processMap.put("navigateKeyRecords", new navigateKeyRecords()); processMap.put("navigateKeyRecordsTime", new navigateKeyRecordsTime()); processMap.put("navigateKeyRecordsTimestr", new navigateKeyRecordsTimestr()); processMap.put("navigateKeysRecordsTime", new navigateKeysRecordsTime()); processMap.put("navigateKeysRecordsTimestr", new navigateKeysRecordsTimestr()); processMap.put("navigateKeyCcl", new navigateKeyCcl()); processMap.put("navigateKeyCclTime", new navigateKeyCclTime()); processMap.put("navigateKeyCclTimestr", new navigateKeyCclTimestr()); processMap.put("navigateKeysCcl", new navigateKeysCcl()); processMap.put("navigateKeysCclTime", new navigateKeysCclTime()); processMap.put("navigateKeysCclTimestr", new navigateKeysCclTimestr()); processMap.put("navigateKeyCriteria", new navigateKeyCriteria()); processMap.put("navigateKeyCriteriaTime", new navigateKeyCriteriaTime()); processMap.put("navigateKeyCriteriaTimestr", new navigateKeyCriteriaTimestr()); processMap.put("navigateKeysCriteria", new navigateKeysCriteria()); processMap.put("navigateKeysCriteriaTime", new navigateKeysCriteriaTime()); processMap.put("navigateKeysCriteriaTimestr", new navigateKeysCriteriaTimestr()); processMap.put("getServerEnvironment", new getServerEnvironment()); processMap.put("getServerVersion", new getServerVersion()); processMap.put("time", new time()); processMap.put("timePhrase", new timePhrase()); return processMap; } public static class abort extends org.apache.thrift.ProcessFunction { public abort() { super("abort"); } public abort_args getEmptyArgsInstance() { return new abort_args(); } protected boolean isOneway() { return false; } public abort_result getResult(I iface, abort_args args) throws org.apache.thrift.TException { abort_result result = new abort_result(); try { iface.abort(args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } return result; } } public static class addKeyValue extends org.apache.thrift.ProcessFunction { public addKeyValue() { super("addKeyValue"); } public addKeyValue_args getEmptyArgsInstance() { return new addKeyValue_args(); } protected boolean isOneway() { return false; } public addKeyValue_result getResult(I iface, addKeyValue_args args) throws org.apache.thrift.TException { addKeyValue_result result = new addKeyValue_result(); try { result.success = iface.addKeyValue(args.key, args.value, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } return result; } } public static class addKeyValueRecord extends org.apache.thrift.ProcessFunction { public addKeyValueRecord() { super("addKeyValueRecord"); } public addKeyValueRecord_args getEmptyArgsInstance() { return new addKeyValueRecord_args(); } protected boolean isOneway() { return false; } public addKeyValueRecord_result getResult(I iface, addKeyValueRecord_args args) throws org.apache.thrift.TException { addKeyValueRecord_result result = new addKeyValueRecord_result(); try { result.success = iface.addKeyValueRecord(args.key, args.value, args.record, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } return result; } } public static class addKeyValueRecords extends org.apache.thrift.ProcessFunction { public addKeyValueRecords() { super("addKeyValueRecords"); } public addKeyValueRecords_args getEmptyArgsInstance() { return new addKeyValueRecords_args(); } protected boolean isOneway() { return false; } public addKeyValueRecords_result getResult(I iface, addKeyValueRecords_args args) throws org.apache.thrift.TException { addKeyValueRecords_result result = new addKeyValueRecords_result(); try { result.success = iface.addKeyValueRecords(args.key, args.value, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } return result; } } public static class auditRecord extends org.apache.thrift.ProcessFunction { public auditRecord() { super("auditRecord"); } public auditRecord_args getEmptyArgsInstance() { return new auditRecord_args(); } protected boolean isOneway() { return false; } public auditRecord_result getResult(I iface, auditRecord_args args) throws org.apache.thrift.TException { auditRecord_result result = new auditRecord_result(); try { result.success = iface.auditRecord(args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class auditRecordStart extends org.apache.thrift.ProcessFunction { public auditRecordStart() { super("auditRecordStart"); } public auditRecordStart_args getEmptyArgsInstance() { return new auditRecordStart_args(); } protected boolean isOneway() { return false; } public auditRecordStart_result getResult(I iface, auditRecordStart_args args) throws org.apache.thrift.TException { auditRecordStart_result result = new auditRecordStart_result(); try { result.success = iface.auditRecordStart(args.record, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class auditRecordStartstr extends org.apache.thrift.ProcessFunction { public auditRecordStartstr() { super("auditRecordStartstr"); } public auditRecordStartstr_args getEmptyArgsInstance() { return new auditRecordStartstr_args(); } protected boolean isOneway() { return false; } public auditRecordStartstr_result getResult(I iface, auditRecordStartstr_args args) throws org.apache.thrift.TException { auditRecordStartstr_result result = new auditRecordStartstr_result(); try { result.success = iface.auditRecordStartstr(args.record, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class auditRecordStartEnd extends org.apache.thrift.ProcessFunction { public auditRecordStartEnd() { super("auditRecordStartEnd"); } public auditRecordStartEnd_args getEmptyArgsInstance() { return new auditRecordStartEnd_args(); } protected boolean isOneway() { return false; } public auditRecordStartEnd_result getResult(I iface, auditRecordStartEnd_args args) throws org.apache.thrift.TException { auditRecordStartEnd_result result = new auditRecordStartEnd_result(); try { result.success = iface.auditRecordStartEnd(args.record, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class auditRecordStartstrEndstr extends org.apache.thrift.ProcessFunction { public auditRecordStartstrEndstr() { super("auditRecordStartstrEndstr"); } public auditRecordStartstrEndstr_args getEmptyArgsInstance() { return new auditRecordStartstrEndstr_args(); } protected boolean isOneway() { return false; } public auditRecordStartstrEndstr_result getResult(I iface, auditRecordStartstrEndstr_args args) throws org.apache.thrift.TException { auditRecordStartstrEndstr_result result = new auditRecordStartstrEndstr_result(); try { result.success = iface.auditRecordStartstrEndstr(args.record, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class auditKeyRecord extends org.apache.thrift.ProcessFunction { public auditKeyRecord() { super("auditKeyRecord"); } public auditKeyRecord_args getEmptyArgsInstance() { return new auditKeyRecord_args(); } protected boolean isOneway() { return false; } public auditKeyRecord_result getResult(I iface, auditKeyRecord_args args) throws org.apache.thrift.TException { auditKeyRecord_result result = new auditKeyRecord_result(); try { result.success = iface.auditKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class auditKeyRecordStart extends org.apache.thrift.ProcessFunction { public auditKeyRecordStart() { super("auditKeyRecordStart"); } public auditKeyRecordStart_args getEmptyArgsInstance() { return new auditKeyRecordStart_args(); } protected boolean isOneway() { return false; } public auditKeyRecordStart_result getResult(I iface, auditKeyRecordStart_args args) throws org.apache.thrift.TException { auditKeyRecordStart_result result = new auditKeyRecordStart_result(); try { result.success = iface.auditKeyRecordStart(args.key, args.record, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class auditKeyRecordStartstr extends org.apache.thrift.ProcessFunction { public auditKeyRecordStartstr() { super("auditKeyRecordStartstr"); } public auditKeyRecordStartstr_args getEmptyArgsInstance() { return new auditKeyRecordStartstr_args(); } protected boolean isOneway() { return false; } public auditKeyRecordStartstr_result getResult(I iface, auditKeyRecordStartstr_args args) throws org.apache.thrift.TException { auditKeyRecordStartstr_result result = new auditKeyRecordStartstr_result(); try { result.success = iface.auditKeyRecordStartstr(args.key, args.record, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class auditKeyRecordStartEnd extends org.apache.thrift.ProcessFunction { public auditKeyRecordStartEnd() { super("auditKeyRecordStartEnd"); } public auditKeyRecordStartEnd_args getEmptyArgsInstance() { return new auditKeyRecordStartEnd_args(); } protected boolean isOneway() { return false; } public auditKeyRecordStartEnd_result getResult(I iface, auditKeyRecordStartEnd_args args) throws org.apache.thrift.TException { auditKeyRecordStartEnd_result result = new auditKeyRecordStartEnd_result(); try { result.success = iface.auditKeyRecordStartEnd(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class auditKeyRecordStartstrEndstr extends org.apache.thrift.ProcessFunction { public auditKeyRecordStartstrEndstr() { super("auditKeyRecordStartstrEndstr"); } public auditKeyRecordStartstrEndstr_args getEmptyArgsInstance() { return new auditKeyRecordStartstrEndstr_args(); } protected boolean isOneway() { return false; } public auditKeyRecordStartstrEndstr_result getResult(I iface, auditKeyRecordStartstrEndstr_args args) throws org.apache.thrift.TException { auditKeyRecordStartstrEndstr_result result = new auditKeyRecordStartstrEndstr_result(); try { result.success = iface.auditKeyRecordStartstrEndstr(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class browseKey extends org.apache.thrift.ProcessFunction { public browseKey() { super("browseKey"); } public browseKey_args getEmptyArgsInstance() { return new browseKey_args(); } protected boolean isOneway() { return false; } public browseKey_result getResult(I iface, browseKey_args args) throws org.apache.thrift.TException { browseKey_result result = new browseKey_result(); try { result.success = iface.browseKey(args.key, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class browseKeys extends org.apache.thrift.ProcessFunction { public browseKeys() { super("browseKeys"); } public browseKeys_args getEmptyArgsInstance() { return new browseKeys_args(); } protected boolean isOneway() { return false; } public browseKeys_result getResult(I iface, browseKeys_args args) throws org.apache.thrift.TException { browseKeys_result result = new browseKeys_result(); try { result.success = iface.browseKeys(args.keys, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class browseKeyTime extends org.apache.thrift.ProcessFunction { public browseKeyTime() { super("browseKeyTime"); } public browseKeyTime_args getEmptyArgsInstance() { return new browseKeyTime_args(); } protected boolean isOneway() { return false; } public browseKeyTime_result getResult(I iface, browseKeyTime_args args) throws org.apache.thrift.TException { browseKeyTime_result result = new browseKeyTime_result(); try { result.success = iface.browseKeyTime(args.key, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class browseKeyTimestr extends org.apache.thrift.ProcessFunction { public browseKeyTimestr() { super("browseKeyTimestr"); } public browseKeyTimestr_args getEmptyArgsInstance() { return new browseKeyTimestr_args(); } protected boolean isOneway() { return false; } public browseKeyTimestr_result getResult(I iface, browseKeyTimestr_args args) throws org.apache.thrift.TException { browseKeyTimestr_result result = new browseKeyTimestr_result(); try { result.success = iface.browseKeyTimestr(args.key, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class browseKeysTime extends org.apache.thrift.ProcessFunction { public browseKeysTime() { super("browseKeysTime"); } public browseKeysTime_args getEmptyArgsInstance() { return new browseKeysTime_args(); } protected boolean isOneway() { return false; } public browseKeysTime_result getResult(I iface, browseKeysTime_args args) throws org.apache.thrift.TException { browseKeysTime_result result = new browseKeysTime_result(); try { result.success = iface.browseKeysTime(args.keys, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class browseKeysTimestr extends org.apache.thrift.ProcessFunction { public browseKeysTimestr() { super("browseKeysTimestr"); } public browseKeysTimestr_args getEmptyArgsInstance() { return new browseKeysTimestr_args(); } protected boolean isOneway() { return false; } public browseKeysTimestr_result getResult(I iface, browseKeysTimestr_args args) throws org.apache.thrift.TException { browseKeysTimestr_result result = new browseKeysTimestr_result(); try { result.success = iface.browseKeysTimestr(args.keys, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class chronologizeKeyRecord extends org.apache.thrift.ProcessFunction { public chronologizeKeyRecord() { super("chronologizeKeyRecord"); } public chronologizeKeyRecord_args getEmptyArgsInstance() { return new chronologizeKeyRecord_args(); } protected boolean isOneway() { return false; } public chronologizeKeyRecord_result getResult(I iface, chronologizeKeyRecord_args args) throws org.apache.thrift.TException { chronologizeKeyRecord_result result = new chronologizeKeyRecord_result(); try { result.success = iface.chronologizeKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class chronologizeKeyRecordStart extends org.apache.thrift.ProcessFunction { public chronologizeKeyRecordStart() { super("chronologizeKeyRecordStart"); } public chronologizeKeyRecordStart_args getEmptyArgsInstance() { return new chronologizeKeyRecordStart_args(); } protected boolean isOneway() { return false; } public chronologizeKeyRecordStart_result getResult(I iface, chronologizeKeyRecordStart_args args) throws org.apache.thrift.TException { chronologizeKeyRecordStart_result result = new chronologizeKeyRecordStart_result(); try { result.success = iface.chronologizeKeyRecordStart(args.key, args.record, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class chronologizeKeyRecordStartstr extends org.apache.thrift.ProcessFunction { public chronologizeKeyRecordStartstr() { super("chronologizeKeyRecordStartstr"); } public chronologizeKeyRecordStartstr_args getEmptyArgsInstance() { return new chronologizeKeyRecordStartstr_args(); } protected boolean isOneway() { return false; } public chronologizeKeyRecordStartstr_result getResult(I iface, chronologizeKeyRecordStartstr_args args) throws org.apache.thrift.TException { chronologizeKeyRecordStartstr_result result = new chronologizeKeyRecordStartstr_result(); try { result.success = iface.chronologizeKeyRecordStartstr(args.key, args.record, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class chronologizeKeyRecordStartEnd extends org.apache.thrift.ProcessFunction { public chronologizeKeyRecordStartEnd() { super("chronologizeKeyRecordStartEnd"); } public chronologizeKeyRecordStartEnd_args getEmptyArgsInstance() { return new chronologizeKeyRecordStartEnd_args(); } protected boolean isOneway() { return false; } public chronologizeKeyRecordStartEnd_result getResult(I iface, chronologizeKeyRecordStartEnd_args args) throws org.apache.thrift.TException { chronologizeKeyRecordStartEnd_result result = new chronologizeKeyRecordStartEnd_result(); try { result.success = iface.chronologizeKeyRecordStartEnd(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class chronologizeKeyRecordStartstrEndstr extends org.apache.thrift.ProcessFunction { public chronologizeKeyRecordStartstrEndstr() { super("chronologizeKeyRecordStartstrEndstr"); } public chronologizeKeyRecordStartstrEndstr_args getEmptyArgsInstance() { return new chronologizeKeyRecordStartstrEndstr_args(); } protected boolean isOneway() { return false; } public chronologizeKeyRecordStartstrEndstr_result getResult(I iface, chronologizeKeyRecordStartstrEndstr_args args) throws org.apache.thrift.TException { chronologizeKeyRecordStartstrEndstr_result result = new chronologizeKeyRecordStartstrEndstr_result(); try { result.success = iface.chronologizeKeyRecordStartstrEndstr(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class clearRecord extends org.apache.thrift.ProcessFunction { public clearRecord() { super("clearRecord"); } public clearRecord_args getEmptyArgsInstance() { return new clearRecord_args(); } protected boolean isOneway() { return false; } public clearRecord_result getResult(I iface, clearRecord_args args) throws org.apache.thrift.TException { clearRecord_result result = new clearRecord_result(); try { iface.clearRecord(args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class clearRecords extends org.apache.thrift.ProcessFunction { public clearRecords() { super("clearRecords"); } public clearRecords_args getEmptyArgsInstance() { return new clearRecords_args(); } protected boolean isOneway() { return false; } public clearRecords_result getResult(I iface, clearRecords_args args) throws org.apache.thrift.TException { clearRecords_result result = new clearRecords_result(); try { iface.clearRecords(args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class clearKeyRecord extends org.apache.thrift.ProcessFunction { public clearKeyRecord() { super("clearKeyRecord"); } public clearKeyRecord_args getEmptyArgsInstance() { return new clearKeyRecord_args(); } protected boolean isOneway() { return false; } public clearKeyRecord_result getResult(I iface, clearKeyRecord_args args) throws org.apache.thrift.TException { clearKeyRecord_result result = new clearKeyRecord_result(); try { iface.clearKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class clearKeysRecord extends org.apache.thrift.ProcessFunction { public clearKeysRecord() { super("clearKeysRecord"); } public clearKeysRecord_args getEmptyArgsInstance() { return new clearKeysRecord_args(); } protected boolean isOneway() { return false; } public clearKeysRecord_result getResult(I iface, clearKeysRecord_args args) throws org.apache.thrift.TException { clearKeysRecord_result result = new clearKeysRecord_result(); try { iface.clearKeysRecord(args.keys, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class clearKeyRecords extends org.apache.thrift.ProcessFunction { public clearKeyRecords() { super("clearKeyRecords"); } public clearKeyRecords_args getEmptyArgsInstance() { return new clearKeyRecords_args(); } protected boolean isOneway() { return false; } public clearKeyRecords_result getResult(I iface, clearKeyRecords_args args) throws org.apache.thrift.TException { clearKeyRecords_result result = new clearKeyRecords_result(); try { iface.clearKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class clearKeysRecords extends org.apache.thrift.ProcessFunction { public clearKeysRecords() { super("clearKeysRecords"); } public clearKeysRecords_args getEmptyArgsInstance() { return new clearKeysRecords_args(); } protected boolean isOneway() { return false; } public clearKeysRecords_result getResult(I iface, clearKeysRecords_args args) throws org.apache.thrift.TException { clearKeysRecords_result result = new clearKeysRecords_result(); try { iface.clearKeysRecords(args.keys, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class commit extends org.apache.thrift.ProcessFunction { public commit() { super("commit"); } public commit_args getEmptyArgsInstance() { return new commit_args(); } protected boolean isOneway() { return false; } public commit_result getResult(I iface, commit_args args) throws org.apache.thrift.TException { commit_result result = new commit_result(); try { result.success = iface.commit(args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class describe extends org.apache.thrift.ProcessFunction { public describe() { super("describe"); } public describe_args getEmptyArgsInstance() { return new describe_args(); } protected boolean isOneway() { return false; } public describe_result getResult(I iface, describe_args args) throws org.apache.thrift.TException { describe_result result = new describe_result(); try { result.success = iface.describe(args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class describeTime extends org.apache.thrift.ProcessFunction { public describeTime() { super("describeTime"); } public describeTime_args getEmptyArgsInstance() { return new describeTime_args(); } protected boolean isOneway() { return false; } public describeTime_result getResult(I iface, describeTime_args args) throws org.apache.thrift.TException { describeTime_result result = new describeTime_result(); try { result.success = iface.describeTime(args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class describeTimestr extends org.apache.thrift.ProcessFunction { public describeTimestr() { super("describeTimestr"); } public describeTimestr_args getEmptyArgsInstance() { return new describeTimestr_args(); } protected boolean isOneway() { return false; } public describeTimestr_result getResult(I iface, describeTimestr_args args) throws org.apache.thrift.TException { describeTimestr_result result = new describeTimestr_result(); try { result.success = iface.describeTimestr(args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class describeRecord extends org.apache.thrift.ProcessFunction { public describeRecord() { super("describeRecord"); } public describeRecord_args getEmptyArgsInstance() { return new describeRecord_args(); } protected boolean isOneway() { return false; } public describeRecord_result getResult(I iface, describeRecord_args args) throws org.apache.thrift.TException { describeRecord_result result = new describeRecord_result(); try { result.success = iface.describeRecord(args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class describeRecordTime extends org.apache.thrift.ProcessFunction { public describeRecordTime() { super("describeRecordTime"); } public describeRecordTime_args getEmptyArgsInstance() { return new describeRecordTime_args(); } protected boolean isOneway() { return false; } public describeRecordTime_result getResult(I iface, describeRecordTime_args args) throws org.apache.thrift.TException { describeRecordTime_result result = new describeRecordTime_result(); try { result.success = iface.describeRecordTime(args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class describeRecordTimestr extends org.apache.thrift.ProcessFunction { public describeRecordTimestr() { super("describeRecordTimestr"); } public describeRecordTimestr_args getEmptyArgsInstance() { return new describeRecordTimestr_args(); } protected boolean isOneway() { return false; } public describeRecordTimestr_result getResult(I iface, describeRecordTimestr_args args) throws org.apache.thrift.TException { describeRecordTimestr_result result = new describeRecordTimestr_result(); try { result.success = iface.describeRecordTimestr(args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class describeRecords extends org.apache.thrift.ProcessFunction { public describeRecords() { super("describeRecords"); } public describeRecords_args getEmptyArgsInstance() { return new describeRecords_args(); } protected boolean isOneway() { return false; } public describeRecords_result getResult(I iface, describeRecords_args args) throws org.apache.thrift.TException { describeRecords_result result = new describeRecords_result(); try { result.success = iface.describeRecords(args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class describeRecordsTime extends org.apache.thrift.ProcessFunction { public describeRecordsTime() { super("describeRecordsTime"); } public describeRecordsTime_args getEmptyArgsInstance() { return new describeRecordsTime_args(); } protected boolean isOneway() { return false; } public describeRecordsTime_result getResult(I iface, describeRecordsTime_args args) throws org.apache.thrift.TException { describeRecordsTime_result result = new describeRecordsTime_result(); try { result.success = iface.describeRecordsTime(args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class describeRecordsTimestr extends org.apache.thrift.ProcessFunction { public describeRecordsTimestr() { super("describeRecordsTimestr"); } public describeRecordsTimestr_args getEmptyArgsInstance() { return new describeRecordsTimestr_args(); } protected boolean isOneway() { return false; } public describeRecordsTimestr_result getResult(I iface, describeRecordsTimestr_args args) throws org.apache.thrift.TException { describeRecordsTimestr_result result = new describeRecordsTimestr_result(); try { result.success = iface.describeRecordsTimestr(args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class diffRecordStart extends org.apache.thrift.ProcessFunction { public diffRecordStart() { super("diffRecordStart"); } public diffRecordStart_args getEmptyArgsInstance() { return new diffRecordStart_args(); } protected boolean isOneway() { return false; } public diffRecordStart_result getResult(I iface, diffRecordStart_args args) throws org.apache.thrift.TException { diffRecordStart_result result = new diffRecordStart_result(); try { result.success = iface.diffRecordStart(args.record, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class diffRecordStartstr extends org.apache.thrift.ProcessFunction { public diffRecordStartstr() { super("diffRecordStartstr"); } public diffRecordStartstr_args getEmptyArgsInstance() { return new diffRecordStartstr_args(); } protected boolean isOneway() { return false; } public diffRecordStartstr_result getResult(I iface, diffRecordStartstr_args args) throws org.apache.thrift.TException { diffRecordStartstr_result result = new diffRecordStartstr_result(); try { result.success = iface.diffRecordStartstr(args.record, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class diffRecordStartEnd extends org.apache.thrift.ProcessFunction { public diffRecordStartEnd() { super("diffRecordStartEnd"); } public diffRecordStartEnd_args getEmptyArgsInstance() { return new diffRecordStartEnd_args(); } protected boolean isOneway() { return false; } public diffRecordStartEnd_result getResult(I iface, diffRecordStartEnd_args args) throws org.apache.thrift.TException { diffRecordStartEnd_result result = new diffRecordStartEnd_result(); try { result.success = iface.diffRecordStartEnd(args.record, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class diffRecordStartstrEndstr extends org.apache.thrift.ProcessFunction { public diffRecordStartstrEndstr() { super("diffRecordStartstrEndstr"); } public diffRecordStartstrEndstr_args getEmptyArgsInstance() { return new diffRecordStartstrEndstr_args(); } protected boolean isOneway() { return false; } public diffRecordStartstrEndstr_result getResult(I iface, diffRecordStartstrEndstr_args args) throws org.apache.thrift.TException { diffRecordStartstrEndstr_result result = new diffRecordStartstrEndstr_result(); try { result.success = iface.diffRecordStartstrEndstr(args.record, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class diffKeyRecordStart extends org.apache.thrift.ProcessFunction { public diffKeyRecordStart() { super("diffKeyRecordStart"); } public diffKeyRecordStart_args getEmptyArgsInstance() { return new diffKeyRecordStart_args(); } protected boolean isOneway() { return false; } public diffKeyRecordStart_result getResult(I iface, diffKeyRecordStart_args args) throws org.apache.thrift.TException { diffKeyRecordStart_result result = new diffKeyRecordStart_result(); try { result.success = iface.diffKeyRecordStart(args.key, args.record, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class diffKeyRecordStartstr extends org.apache.thrift.ProcessFunction { public diffKeyRecordStartstr() { super("diffKeyRecordStartstr"); } public diffKeyRecordStartstr_args getEmptyArgsInstance() { return new diffKeyRecordStartstr_args(); } protected boolean isOneway() { return false; } public diffKeyRecordStartstr_result getResult(I iface, diffKeyRecordStartstr_args args) throws org.apache.thrift.TException { diffKeyRecordStartstr_result result = new diffKeyRecordStartstr_result(); try { result.success = iface.diffKeyRecordStartstr(args.key, args.record, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class diffKeyRecordStartEnd extends org.apache.thrift.ProcessFunction { public diffKeyRecordStartEnd() { super("diffKeyRecordStartEnd"); } public diffKeyRecordStartEnd_args getEmptyArgsInstance() { return new diffKeyRecordStartEnd_args(); } protected boolean isOneway() { return false; } public diffKeyRecordStartEnd_result getResult(I iface, diffKeyRecordStartEnd_args args) throws org.apache.thrift.TException { diffKeyRecordStartEnd_result result = new diffKeyRecordStartEnd_result(); try { result.success = iface.diffKeyRecordStartEnd(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class diffKeyRecordStartstrEndstr extends org.apache.thrift.ProcessFunction { public diffKeyRecordStartstrEndstr() { super("diffKeyRecordStartstrEndstr"); } public diffKeyRecordStartstrEndstr_args getEmptyArgsInstance() { return new diffKeyRecordStartstrEndstr_args(); } protected boolean isOneway() { return false; } public diffKeyRecordStartstrEndstr_result getResult(I iface, diffKeyRecordStartstrEndstr_args args) throws org.apache.thrift.TException { diffKeyRecordStartstrEndstr_result result = new diffKeyRecordStartstrEndstr_result(); try { result.success = iface.diffKeyRecordStartstrEndstr(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class diffKeyStart extends org.apache.thrift.ProcessFunction { public diffKeyStart() { super("diffKeyStart"); } public diffKeyStart_args getEmptyArgsInstance() { return new diffKeyStart_args(); } protected boolean isOneway() { return false; } public diffKeyStart_result getResult(I iface, diffKeyStart_args args) throws org.apache.thrift.TException { diffKeyStart_result result = new diffKeyStart_result(); try { result.success = iface.diffKeyStart(args.key, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class diffKeyStartstr extends org.apache.thrift.ProcessFunction { public diffKeyStartstr() { super("diffKeyStartstr"); } public diffKeyStartstr_args getEmptyArgsInstance() { return new diffKeyStartstr_args(); } protected boolean isOneway() { return false; } public diffKeyStartstr_result getResult(I iface, diffKeyStartstr_args args) throws org.apache.thrift.TException { diffKeyStartstr_result result = new diffKeyStartstr_result(); try { result.success = iface.diffKeyStartstr(args.key, args.start, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class diffKeyStartEnd extends org.apache.thrift.ProcessFunction { public diffKeyStartEnd() { super("diffKeyStartEnd"); } public diffKeyStartEnd_args getEmptyArgsInstance() { return new diffKeyStartEnd_args(); } protected boolean isOneway() { return false; } public diffKeyStartEnd_result getResult(I iface, diffKeyStartEnd_args args) throws org.apache.thrift.TException { diffKeyStartEnd_result result = new diffKeyStartEnd_result(); try { result.success = iface.diffKeyStartEnd(args.key, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class diffKeyStartstrEndstr extends org.apache.thrift.ProcessFunction { public diffKeyStartstrEndstr() { super("diffKeyStartstrEndstr"); } public diffKeyStartstrEndstr_args getEmptyArgsInstance() { return new diffKeyStartstrEndstr_args(); } protected boolean isOneway() { return false; } public diffKeyStartstrEndstr_result getResult(I iface, diffKeyStartstrEndstr_args args) throws org.apache.thrift.TException { diffKeyStartstrEndstr_result result = new diffKeyStartstrEndstr_result(); try { result.success = iface.diffKeyStartstrEndstr(args.key, args.start, args.tend, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class invokePlugin extends org.apache.thrift.ProcessFunction { public invokePlugin() { super("invokePlugin"); } public invokePlugin_args getEmptyArgsInstance() { return new invokePlugin_args(); } protected boolean isOneway() { return false; } public invokePlugin_result getResult(I iface, invokePlugin_args args) throws org.apache.thrift.TException { invokePlugin_result result = new invokePlugin_result(); try { result.success = iface.invokePlugin(args.id, args.method, args.params, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } return result; } } public static class login extends org.apache.thrift.ProcessFunction { public login() { super("login"); } public login_args getEmptyArgsInstance() { return new login_args(); } protected boolean isOneway() { return false; } public login_result getResult(I iface, login_args args) throws org.apache.thrift.TException { login_result result = new login_result(); try { result.success = iface.login(args.username, args.password, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } return result; } } public static class logout extends org.apache.thrift.ProcessFunction { public logout() { super("logout"); } public logout_args getEmptyArgsInstance() { return new logout_args(); } protected boolean isOneway() { return false; } public logout_result getResult(I iface, logout_args args) throws org.apache.thrift.TException { logout_result result = new logout_result(); try { iface.logout(args.token, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } return result; } } public static class stage extends org.apache.thrift.ProcessFunction { public stage() { super("stage"); } public stage_args getEmptyArgsInstance() { return new stage_args(); } protected boolean isOneway() { return false; } public stage_result getResult(I iface, stage_args args) throws org.apache.thrift.TException { stage_result result = new stage_result(); try { result.success = iface.stage(args.token, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } return result; } } public static class insertJson extends org.apache.thrift.ProcessFunction { public insertJson() { super("insertJson"); } public insertJson_args getEmptyArgsInstance() { return new insertJson_args(); } protected boolean isOneway() { return false; } public insertJson_result getResult(I iface, insertJson_args args) throws org.apache.thrift.TException { insertJson_result result = new insertJson_result(); try { result.success = iface.insertJson(args.json, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class insertJsonRecord extends org.apache.thrift.ProcessFunction { public insertJsonRecord() { super("insertJsonRecord"); } public insertJsonRecord_args getEmptyArgsInstance() { return new insertJsonRecord_args(); } protected boolean isOneway() { return false; } public insertJsonRecord_result getResult(I iface, insertJsonRecord_args args) throws org.apache.thrift.TException { insertJsonRecord_result result = new insertJsonRecord_result(); try { result.success = iface.insertJsonRecord(args.json, args.record, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class insertJsonRecords extends org.apache.thrift.ProcessFunction { public insertJsonRecords() { super("insertJsonRecords"); } public insertJsonRecords_args getEmptyArgsInstance() { return new insertJsonRecords_args(); } protected boolean isOneway() { return false; } public insertJsonRecords_result getResult(I iface, insertJsonRecords_args args) throws org.apache.thrift.TException { insertJsonRecords_result result = new insertJsonRecords_result(); try { result.success = iface.insertJsonRecords(args.json, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class removeKeyValueRecord extends org.apache.thrift.ProcessFunction { public removeKeyValueRecord() { super("removeKeyValueRecord"); } public removeKeyValueRecord_args getEmptyArgsInstance() { return new removeKeyValueRecord_args(); } protected boolean isOneway() { return false; } public removeKeyValueRecord_result getResult(I iface, removeKeyValueRecord_args args) throws org.apache.thrift.TException { removeKeyValueRecord_result result = new removeKeyValueRecord_result(); try { result.success = iface.removeKeyValueRecord(args.key, args.value, args.record, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } return result; } } public static class removeKeyValueRecords extends org.apache.thrift.ProcessFunction { public removeKeyValueRecords() { super("removeKeyValueRecords"); } public removeKeyValueRecords_args getEmptyArgsInstance() { return new removeKeyValueRecords_args(); } protected boolean isOneway() { return false; } public removeKeyValueRecords_result getResult(I iface, removeKeyValueRecords_args args) throws org.apache.thrift.TException { removeKeyValueRecords_result result = new removeKeyValueRecords_result(); try { result.success = iface.removeKeyValueRecords(args.key, args.value, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } return result; } } public static class setKeyValueRecord extends org.apache.thrift.ProcessFunction { public setKeyValueRecord() { super("setKeyValueRecord"); } public setKeyValueRecord_args getEmptyArgsInstance() { return new setKeyValueRecord_args(); } protected boolean isOneway() { return false; } public setKeyValueRecord_result getResult(I iface, setKeyValueRecord_args args) throws org.apache.thrift.TException { setKeyValueRecord_result result = new setKeyValueRecord_result(); try { iface.setKeyValueRecord(args.key, args.value, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } return result; } } public static class setKeyValue extends org.apache.thrift.ProcessFunction { public setKeyValue() { super("setKeyValue"); } public setKeyValue_args getEmptyArgsInstance() { return new setKeyValue_args(); } protected boolean isOneway() { return false; } public setKeyValue_result getResult(I iface, setKeyValue_args args) throws org.apache.thrift.TException { setKeyValue_result result = new setKeyValue_result(); try { result.success = iface.setKeyValue(args.key, args.value, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } return result; } } public static class setKeyValueRecords extends org.apache.thrift.ProcessFunction { public setKeyValueRecords() { super("setKeyValueRecords"); } public setKeyValueRecords_args getEmptyArgsInstance() { return new setKeyValueRecords_args(); } protected boolean isOneway() { return false; } public setKeyValueRecords_result getResult(I iface, setKeyValueRecords_args args) throws org.apache.thrift.TException { setKeyValueRecords_result result = new setKeyValueRecords_result(); try { iface.setKeyValueRecords(args.key, args.value, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } return result; } } public static class reconcileKeyRecordValues extends org.apache.thrift.ProcessFunction { public reconcileKeyRecordValues() { super("reconcileKeyRecordValues"); } public reconcileKeyRecordValues_args getEmptyArgsInstance() { return new reconcileKeyRecordValues_args(); } protected boolean isOneway() { return false; } public reconcileKeyRecordValues_result getResult(I iface, reconcileKeyRecordValues_args args) throws org.apache.thrift.TException { reconcileKeyRecordValues_result result = new reconcileKeyRecordValues_result(); try { iface.reconcileKeyRecordValues(args.key, args.record, args.values, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } return result; } } public static class inventory extends org.apache.thrift.ProcessFunction { public inventory() { super("inventory"); } public inventory_args getEmptyArgsInstance() { return new inventory_args(); } protected boolean isOneway() { return false; } public inventory_result getResult(I iface, inventory_args args) throws org.apache.thrift.TException { inventory_result result = new inventory_result(); try { result.success = iface.inventory(args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class selectRecord extends org.apache.thrift.ProcessFunction { public selectRecord() { super("selectRecord"); } public selectRecord_args getEmptyArgsInstance() { return new selectRecord_args(); } protected boolean isOneway() { return false; } public selectRecord_result getResult(I iface, selectRecord_args args) throws org.apache.thrift.TException { selectRecord_result result = new selectRecord_result(); try { result.success = iface.selectRecord(args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class selectRecords extends org.apache.thrift.ProcessFunction { public selectRecords() { super("selectRecords"); } public selectRecords_args getEmptyArgsInstance() { return new selectRecords_args(); } protected boolean isOneway() { return false; } public selectRecords_result getResult(I iface, selectRecords_args args) throws org.apache.thrift.TException { selectRecords_result result = new selectRecords_result(); try { result.success = iface.selectRecords(args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class selectRecordTime extends org.apache.thrift.ProcessFunction { public selectRecordTime() { super("selectRecordTime"); } public selectRecordTime_args getEmptyArgsInstance() { return new selectRecordTime_args(); } protected boolean isOneway() { return false; } public selectRecordTime_result getResult(I iface, selectRecordTime_args args) throws org.apache.thrift.TException { selectRecordTime_result result = new selectRecordTime_result(); try { result.success = iface.selectRecordTime(args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class selectRecordTimestr extends org.apache.thrift.ProcessFunction { public selectRecordTimestr() { super("selectRecordTimestr"); } public selectRecordTimestr_args getEmptyArgsInstance() { return new selectRecordTimestr_args(); } protected boolean isOneway() { return false; } public selectRecordTimestr_result getResult(I iface, selectRecordTimestr_args args) throws org.apache.thrift.TException { selectRecordTimestr_result result = new selectRecordTimestr_result(); try { result.success = iface.selectRecordTimestr(args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class selectRecordsTime extends org.apache.thrift.ProcessFunction { public selectRecordsTime() { super("selectRecordsTime"); } public selectRecordsTime_args getEmptyArgsInstance() { return new selectRecordsTime_args(); } protected boolean isOneway() { return false; } public selectRecordsTime_result getResult(I iface, selectRecordsTime_args args) throws org.apache.thrift.TException { selectRecordsTime_result result = new selectRecordsTime_result(); try { result.success = iface.selectRecordsTime(args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class selectRecordsTimestr extends org.apache.thrift.ProcessFunction { public selectRecordsTimestr() { super("selectRecordsTimestr"); } public selectRecordsTimestr_args getEmptyArgsInstance() { return new selectRecordsTimestr_args(); } protected boolean isOneway() { return false; } public selectRecordsTimestr_result getResult(I iface, selectRecordsTimestr_args args) throws org.apache.thrift.TException { selectRecordsTimestr_result result = new selectRecordsTimestr_result(); try { result.success = iface.selectRecordsTimestr(args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeyRecord extends org.apache.thrift.ProcessFunction { public selectKeyRecord() { super("selectKeyRecord"); } public selectKeyRecord_args getEmptyArgsInstance() { return new selectKeyRecord_args(); } protected boolean isOneway() { return false; } public selectKeyRecord_result getResult(I iface, selectKeyRecord_args args) throws org.apache.thrift.TException { selectKeyRecord_result result = new selectKeyRecord_result(); try { result.success = iface.selectKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class selectKeyRecordTime extends org.apache.thrift.ProcessFunction { public selectKeyRecordTime() { super("selectKeyRecordTime"); } public selectKeyRecordTime_args getEmptyArgsInstance() { return new selectKeyRecordTime_args(); } protected boolean isOneway() { return false; } public selectKeyRecordTime_result getResult(I iface, selectKeyRecordTime_args args) throws org.apache.thrift.TException { selectKeyRecordTime_result result = new selectKeyRecordTime_result(); try { result.success = iface.selectKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class selectKeyRecordTimestr extends org.apache.thrift.ProcessFunction { public selectKeyRecordTimestr() { super("selectKeyRecordTimestr"); } public selectKeyRecordTimestr_args getEmptyArgsInstance() { return new selectKeyRecordTimestr_args(); } protected boolean isOneway() { return false; } public selectKeyRecordTimestr_result getResult(I iface, selectKeyRecordTimestr_args args) throws org.apache.thrift.TException { selectKeyRecordTimestr_result result = new selectKeyRecordTimestr_result(); try { result.success = iface.selectKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeysRecord extends org.apache.thrift.ProcessFunction { public selectKeysRecord() { super("selectKeysRecord"); } public selectKeysRecord_args getEmptyArgsInstance() { return new selectKeysRecord_args(); } protected boolean isOneway() { return false; } public selectKeysRecord_result getResult(I iface, selectKeysRecord_args args) throws org.apache.thrift.TException { selectKeysRecord_result result = new selectKeysRecord_result(); try { result.success = iface.selectKeysRecord(args.keys, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class selectKeysRecordTime extends org.apache.thrift.ProcessFunction { public selectKeysRecordTime() { super("selectKeysRecordTime"); } public selectKeysRecordTime_args getEmptyArgsInstance() { return new selectKeysRecordTime_args(); } protected boolean isOneway() { return false; } public selectKeysRecordTime_result getResult(I iface, selectKeysRecordTime_args args) throws org.apache.thrift.TException { selectKeysRecordTime_result result = new selectKeysRecordTime_result(); try { result.success = iface.selectKeysRecordTime(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class selectKeysRecordTimestr extends org.apache.thrift.ProcessFunction { public selectKeysRecordTimestr() { super("selectKeysRecordTimestr"); } public selectKeysRecordTimestr_args getEmptyArgsInstance() { return new selectKeysRecordTimestr_args(); } protected boolean isOneway() { return false; } public selectKeysRecordTimestr_result getResult(I iface, selectKeysRecordTimestr_args args) throws org.apache.thrift.TException { selectKeysRecordTimestr_result result = new selectKeysRecordTimestr_result(); try { result.success = iface.selectKeysRecordTimestr(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeysRecords extends org.apache.thrift.ProcessFunction { public selectKeysRecords() { super("selectKeysRecords"); } public selectKeysRecords_args getEmptyArgsInstance() { return new selectKeysRecords_args(); } protected boolean isOneway() { return false; } public selectKeysRecords_result getResult(I iface, selectKeysRecords_args args) throws org.apache.thrift.TException { selectKeysRecords_result result = new selectKeysRecords_result(); try { result.success = iface.selectKeysRecords(args.keys, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class selectKeyRecords extends org.apache.thrift.ProcessFunction { public selectKeyRecords() { super("selectKeyRecords"); } public selectKeyRecords_args getEmptyArgsInstance() { return new selectKeyRecords_args(); } protected boolean isOneway() { return false; } public selectKeyRecords_result getResult(I iface, selectKeyRecords_args args) throws org.apache.thrift.TException { selectKeyRecords_result result = new selectKeyRecords_result(); try { result.success = iface.selectKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class selectKeyRecordsTime extends org.apache.thrift.ProcessFunction { public selectKeyRecordsTime() { super("selectKeyRecordsTime"); } public selectKeyRecordsTime_args getEmptyArgsInstance() { return new selectKeyRecordsTime_args(); } protected boolean isOneway() { return false; } public selectKeyRecordsTime_result getResult(I iface, selectKeyRecordsTime_args args) throws org.apache.thrift.TException { selectKeyRecordsTime_result result = new selectKeyRecordsTime_result(); try { result.success = iface.selectKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class selectKeyRecordsTimestr extends org.apache.thrift.ProcessFunction { public selectKeyRecordsTimestr() { super("selectKeyRecordsTimestr"); } public selectKeyRecordsTimestr_args getEmptyArgsInstance() { return new selectKeyRecordsTimestr_args(); } protected boolean isOneway() { return false; } public selectKeyRecordsTimestr_result getResult(I iface, selectKeyRecordsTimestr_args args) throws org.apache.thrift.TException { selectKeyRecordsTimestr_result result = new selectKeyRecordsTimestr_result(); try { result.success = iface.selectKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeysRecordsTime extends org.apache.thrift.ProcessFunction { public selectKeysRecordsTime() { super("selectKeysRecordsTime"); } public selectKeysRecordsTime_args getEmptyArgsInstance() { return new selectKeysRecordsTime_args(); } protected boolean isOneway() { return false; } public selectKeysRecordsTime_result getResult(I iface, selectKeysRecordsTime_args args) throws org.apache.thrift.TException { selectKeysRecordsTime_result result = new selectKeysRecordsTime_result(); try { result.success = iface.selectKeysRecordsTime(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class selectKeysRecordsTimestr extends org.apache.thrift.ProcessFunction { public selectKeysRecordsTimestr() { super("selectKeysRecordsTimestr"); } public selectKeysRecordsTimestr_args getEmptyArgsInstance() { return new selectKeysRecordsTimestr_args(); } protected boolean isOneway() { return false; } public selectKeysRecordsTimestr_result getResult(I iface, selectKeysRecordsTimestr_args args) throws org.apache.thrift.TException { selectKeysRecordsTimestr_result result = new selectKeysRecordsTimestr_result(); try { result.success = iface.selectKeysRecordsTimestr(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class selectCriteria extends org.apache.thrift.ProcessFunction { public selectCriteria() { super("selectCriteria"); } public selectCriteria_args getEmptyArgsInstance() { return new selectCriteria_args(); } protected boolean isOneway() { return false; } public selectCriteria_result getResult(I iface, selectCriteria_args args) throws org.apache.thrift.TException { selectCriteria_result result = new selectCriteria_result(); try { result.success = iface.selectCriteria(args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class selectCcl extends org.apache.thrift.ProcessFunction { public selectCcl() { super("selectCcl"); } public selectCcl_args getEmptyArgsInstance() { return new selectCcl_args(); } protected boolean isOneway() { return false; } public selectCcl_result getResult(I iface, selectCcl_args args) throws org.apache.thrift.TException { selectCcl_result result = new selectCcl_result(); try { result.success = iface.selectCcl(args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class selectCriteriaTime extends org.apache.thrift.ProcessFunction { public selectCriteriaTime() { super("selectCriteriaTime"); } public selectCriteriaTime_args getEmptyArgsInstance() { return new selectCriteriaTime_args(); } protected boolean isOneway() { return false; } public selectCriteriaTime_result getResult(I iface, selectCriteriaTime_args args) throws org.apache.thrift.TException { selectCriteriaTime_result result = new selectCriteriaTime_result(); try { result.success = iface.selectCriteriaTime(args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class selectCriteriaTimestr extends org.apache.thrift.ProcessFunction { public selectCriteriaTimestr() { super("selectCriteriaTimestr"); } public selectCriteriaTimestr_args getEmptyArgsInstance() { return new selectCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public selectCriteriaTimestr_result getResult(I iface, selectCriteriaTimestr_args args) throws org.apache.thrift.TException { selectCriteriaTimestr_result result = new selectCriteriaTimestr_result(); try { result.success = iface.selectCriteriaTimestr(args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class selectCclTime extends org.apache.thrift.ProcessFunction { public selectCclTime() { super("selectCclTime"); } public selectCclTime_args getEmptyArgsInstance() { return new selectCclTime_args(); } protected boolean isOneway() { return false; } public selectCclTime_result getResult(I iface, selectCclTime_args args) throws org.apache.thrift.TException { selectCclTime_result result = new selectCclTime_result(); try { result.success = iface.selectCclTime(args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class selectCclTimestr extends org.apache.thrift.ProcessFunction { public selectCclTimestr() { super("selectCclTimestr"); } public selectCclTimestr_args getEmptyArgsInstance() { return new selectCclTimestr_args(); } protected boolean isOneway() { return false; } public selectCclTimestr_result getResult(I iface, selectCclTimestr_args args) throws org.apache.thrift.TException { selectCclTimestr_result result = new selectCclTimestr_result(); try { result.success = iface.selectCclTimestr(args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeyCriteria extends org.apache.thrift.ProcessFunction { public selectKeyCriteria() { super("selectKeyCriteria"); } public selectKeyCriteria_args getEmptyArgsInstance() { return new selectKeyCriteria_args(); } protected boolean isOneway() { return false; } public selectKeyCriteria_result getResult(I iface, selectKeyCriteria_args args) throws org.apache.thrift.TException { selectKeyCriteria_result result = new selectKeyCriteria_result(); try { result.success = iface.selectKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class selectKeyCcl extends org.apache.thrift.ProcessFunction { public selectKeyCcl() { super("selectKeyCcl"); } public selectKeyCcl_args getEmptyArgsInstance() { return new selectKeyCcl_args(); } protected boolean isOneway() { return false; } public selectKeyCcl_result getResult(I iface, selectKeyCcl_args args) throws org.apache.thrift.TException { selectKeyCcl_result result = new selectKeyCcl_result(); try { result.success = iface.selectKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeyCriteriaTime extends org.apache.thrift.ProcessFunction { public selectKeyCriteriaTime() { super("selectKeyCriteriaTime"); } public selectKeyCriteriaTime_args getEmptyArgsInstance() { return new selectKeyCriteriaTime_args(); } protected boolean isOneway() { return false; } public selectKeyCriteriaTime_result getResult(I iface, selectKeyCriteriaTime_args args) throws org.apache.thrift.TException { selectKeyCriteriaTime_result result = new selectKeyCriteriaTime_result(); try { result.success = iface.selectKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class selectKeyCriteriaTimestr extends org.apache.thrift.ProcessFunction { public selectKeyCriteriaTimestr() { super("selectKeyCriteriaTimestr"); } public selectKeyCriteriaTimestr_args getEmptyArgsInstance() { return new selectKeyCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public selectKeyCriteriaTimestr_result getResult(I iface, selectKeyCriteriaTimestr_args args) throws org.apache.thrift.TException { selectKeyCriteriaTimestr_result result = new selectKeyCriteriaTimestr_result(); try { result.success = iface.selectKeyCriteriaTimestr(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeyCclTime extends org.apache.thrift.ProcessFunction { public selectKeyCclTime() { super("selectKeyCclTime"); } public selectKeyCclTime_args getEmptyArgsInstance() { return new selectKeyCclTime_args(); } protected boolean isOneway() { return false; } public selectKeyCclTime_result getResult(I iface, selectKeyCclTime_args args) throws org.apache.thrift.TException { selectKeyCclTime_result result = new selectKeyCclTime_result(); try { result.success = iface.selectKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeyCclTimestr extends org.apache.thrift.ProcessFunction { public selectKeyCclTimestr() { super("selectKeyCclTimestr"); } public selectKeyCclTimestr_args getEmptyArgsInstance() { return new selectKeyCclTimestr_args(); } protected boolean isOneway() { return false; } public selectKeyCclTimestr_result getResult(I iface, selectKeyCclTimestr_args args) throws org.apache.thrift.TException { selectKeyCclTimestr_result result = new selectKeyCclTimestr_result(); try { result.success = iface.selectKeyCclTimestr(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeysCriteria extends org.apache.thrift.ProcessFunction { public selectKeysCriteria() { super("selectKeysCriteria"); } public selectKeysCriteria_args getEmptyArgsInstance() { return new selectKeysCriteria_args(); } protected boolean isOneway() { return false; } public selectKeysCriteria_result getResult(I iface, selectKeysCriteria_args args) throws org.apache.thrift.TException { selectKeysCriteria_result result = new selectKeysCriteria_result(); try { result.success = iface.selectKeysCriteria(args.keys, args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class selectKeysCcl extends org.apache.thrift.ProcessFunction { public selectKeysCcl() { super("selectKeysCcl"); } public selectKeysCcl_args getEmptyArgsInstance() { return new selectKeysCcl_args(); } protected boolean isOneway() { return false; } public selectKeysCcl_result getResult(I iface, selectKeysCcl_args args) throws org.apache.thrift.TException { selectKeysCcl_result result = new selectKeysCcl_result(); try { result.success = iface.selectKeysCcl(args.keys, args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeysCriteriaTime extends org.apache.thrift.ProcessFunction { public selectKeysCriteriaTime() { super("selectKeysCriteriaTime"); } public selectKeysCriteriaTime_args getEmptyArgsInstance() { return new selectKeysCriteriaTime_args(); } protected boolean isOneway() { return false; } public selectKeysCriteriaTime_result getResult(I iface, selectKeysCriteriaTime_args args) throws org.apache.thrift.TException { selectKeysCriteriaTime_result result = new selectKeysCriteriaTime_result(); try { result.success = iface.selectKeysCriteriaTime(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class selectKeysCriteriaTimestr extends org.apache.thrift.ProcessFunction { public selectKeysCriteriaTimestr() { super("selectKeysCriteriaTimestr"); } public selectKeysCriteriaTimestr_args getEmptyArgsInstance() { return new selectKeysCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public selectKeysCriteriaTimestr_result getResult(I iface, selectKeysCriteriaTimestr_args args) throws org.apache.thrift.TException { selectKeysCriteriaTimestr_result result = new selectKeysCriteriaTimestr_result(); try { result.success = iface.selectKeysCriteriaTimestr(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeysCclTime extends org.apache.thrift.ProcessFunction { public selectKeysCclTime() { super("selectKeysCclTime"); } public selectKeysCclTime_args getEmptyArgsInstance() { return new selectKeysCclTime_args(); } protected boolean isOneway() { return false; } public selectKeysCclTime_result getResult(I iface, selectKeysCclTime_args args) throws org.apache.thrift.TException { selectKeysCclTime_result result = new selectKeysCclTime_result(); try { result.success = iface.selectKeysCclTime(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class selectKeysCclTimestr extends org.apache.thrift.ProcessFunction { public selectKeysCclTimestr() { super("selectKeysCclTimestr"); } public selectKeysCclTimestr_args getEmptyArgsInstance() { return new selectKeysCclTimestr_args(); } protected boolean isOneway() { return false; } public selectKeysCclTimestr_result getResult(I iface, selectKeysCclTimestr_args args) throws org.apache.thrift.TException { selectKeysCclTimestr_result result = new selectKeysCclTimestr_result(); try { result.success = iface.selectKeysCclTimestr(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class getKeyRecord extends org.apache.thrift.ProcessFunction { public getKeyRecord() { super("getKeyRecord"); } public getKeyRecord_args getEmptyArgsInstance() { return new getKeyRecord_args(); } protected boolean isOneway() { return false; } public getKeyRecord_result getResult(I iface, getKeyRecord_args args) throws org.apache.thrift.TException { getKeyRecord_result result = new getKeyRecord_result(); try { result.success = iface.getKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class getKeyRecordTime extends org.apache.thrift.ProcessFunction { public getKeyRecordTime() { super("getKeyRecordTime"); } public getKeyRecordTime_args getEmptyArgsInstance() { return new getKeyRecordTime_args(); } protected boolean isOneway() { return false; } public getKeyRecordTime_result getResult(I iface, getKeyRecordTime_args args) throws org.apache.thrift.TException { getKeyRecordTime_result result = new getKeyRecordTime_result(); try { result.success = iface.getKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class getKeyRecordTimestr extends org.apache.thrift.ProcessFunction { public getKeyRecordTimestr() { super("getKeyRecordTimestr"); } public getKeyRecordTimestr_args getEmptyArgsInstance() { return new getKeyRecordTimestr_args(); } protected boolean isOneway() { return false; } public getKeyRecordTimestr_result getResult(I iface, getKeyRecordTimestr_args args) throws org.apache.thrift.TException { getKeyRecordTimestr_result result = new getKeyRecordTimestr_result(); try { result.success = iface.getKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class getKeysRecord extends org.apache.thrift.ProcessFunction { public getKeysRecord() { super("getKeysRecord"); } public getKeysRecord_args getEmptyArgsInstance() { return new getKeysRecord_args(); } protected boolean isOneway() { return false; } public getKeysRecord_result getResult(I iface, getKeysRecord_args args) throws org.apache.thrift.TException { getKeysRecord_result result = new getKeysRecord_result(); try { result.success = iface.getKeysRecord(args.keys, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class getKeysRecordTime extends org.apache.thrift.ProcessFunction { public getKeysRecordTime() { super("getKeysRecordTime"); } public getKeysRecordTime_args getEmptyArgsInstance() { return new getKeysRecordTime_args(); } protected boolean isOneway() { return false; } public getKeysRecordTime_result getResult(I iface, getKeysRecordTime_args args) throws org.apache.thrift.TException { getKeysRecordTime_result result = new getKeysRecordTime_result(); try { result.success = iface.getKeysRecordTime(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class getKeysRecordTimestr extends org.apache.thrift.ProcessFunction { public getKeysRecordTimestr() { super("getKeysRecordTimestr"); } public getKeysRecordTimestr_args getEmptyArgsInstance() { return new getKeysRecordTimestr_args(); } protected boolean isOneway() { return false; } public getKeysRecordTimestr_result getResult(I iface, getKeysRecordTimestr_args args) throws org.apache.thrift.TException { getKeysRecordTimestr_result result = new getKeysRecordTimestr_result(); try { result.success = iface.getKeysRecordTimestr(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class getKeysRecords extends org.apache.thrift.ProcessFunction { public getKeysRecords() { super("getKeysRecords"); } public getKeysRecords_args getEmptyArgsInstance() { return new getKeysRecords_args(); } protected boolean isOneway() { return false; } public getKeysRecords_result getResult(I iface, getKeysRecords_args args) throws org.apache.thrift.TException { getKeysRecords_result result = new getKeysRecords_result(); try { result.success = iface.getKeysRecords(args.keys, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class getKeyRecords extends org.apache.thrift.ProcessFunction { public getKeyRecords() { super("getKeyRecords"); } public getKeyRecords_args getEmptyArgsInstance() { return new getKeyRecords_args(); } protected boolean isOneway() { return false; } public getKeyRecords_result getResult(I iface, getKeyRecords_args args) throws org.apache.thrift.TException { getKeyRecords_result result = new getKeyRecords_result(); try { result.success = iface.getKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class getKeyRecordsTime extends org.apache.thrift.ProcessFunction { public getKeyRecordsTime() { super("getKeyRecordsTime"); } public getKeyRecordsTime_args getEmptyArgsInstance() { return new getKeyRecordsTime_args(); } protected boolean isOneway() { return false; } public getKeyRecordsTime_result getResult(I iface, getKeyRecordsTime_args args) throws org.apache.thrift.TException { getKeyRecordsTime_result result = new getKeyRecordsTime_result(); try { result.success = iface.getKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class getKeyRecordsTimestr extends org.apache.thrift.ProcessFunction { public getKeyRecordsTimestr() { super("getKeyRecordsTimestr"); } public getKeyRecordsTimestr_args getEmptyArgsInstance() { return new getKeyRecordsTimestr_args(); } protected boolean isOneway() { return false; } public getKeyRecordsTimestr_result getResult(I iface, getKeyRecordsTimestr_args args) throws org.apache.thrift.TException { getKeyRecordsTimestr_result result = new getKeyRecordsTimestr_result(); try { result.success = iface.getKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class getKeysRecordsTime extends org.apache.thrift.ProcessFunction { public getKeysRecordsTime() { super("getKeysRecordsTime"); } public getKeysRecordsTime_args getEmptyArgsInstance() { return new getKeysRecordsTime_args(); } protected boolean isOneway() { return false; } public getKeysRecordsTime_result getResult(I iface, getKeysRecordsTime_args args) throws org.apache.thrift.TException { getKeysRecordsTime_result result = new getKeysRecordsTime_result(); try { result.success = iface.getKeysRecordsTime(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class getKeysRecordsTimestr extends org.apache.thrift.ProcessFunction { public getKeysRecordsTimestr() { super("getKeysRecordsTimestr"); } public getKeysRecordsTimestr_args getEmptyArgsInstance() { return new getKeysRecordsTimestr_args(); } protected boolean isOneway() { return false; } public getKeysRecordsTimestr_result getResult(I iface, getKeysRecordsTimestr_args args) throws org.apache.thrift.TException { getKeysRecordsTimestr_result result = new getKeysRecordsTimestr_result(); try { result.success = iface.getKeysRecordsTimestr(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class getKeyCriteria extends org.apache.thrift.ProcessFunction { public getKeyCriteria() { super("getKeyCriteria"); } public getKeyCriteria_args getEmptyArgsInstance() { return new getKeyCriteria_args(); } protected boolean isOneway() { return false; } public getKeyCriteria_result getResult(I iface, getKeyCriteria_args args) throws org.apache.thrift.TException { getKeyCriteria_result result = new getKeyCriteria_result(); try { result.success = iface.getKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class getCriteria extends org.apache.thrift.ProcessFunction { public getCriteria() { super("getCriteria"); } public getCriteria_args getEmptyArgsInstance() { return new getCriteria_args(); } protected boolean isOneway() { return false; } public getCriteria_result getResult(I iface, getCriteria_args args) throws org.apache.thrift.TException { getCriteria_result result = new getCriteria_result(); try { result.success = iface.getCriteria(args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class getCcl extends org.apache.thrift.ProcessFunction { public getCcl() { super("getCcl"); } public getCcl_args getEmptyArgsInstance() { return new getCcl_args(); } protected boolean isOneway() { return false; } public getCcl_result getResult(I iface, getCcl_args args) throws org.apache.thrift.TException { getCcl_result result = new getCcl_result(); try { result.success = iface.getCcl(args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class getCriteriaTime extends org.apache.thrift.ProcessFunction { public getCriteriaTime() { super("getCriteriaTime"); } public getCriteriaTime_args getEmptyArgsInstance() { return new getCriteriaTime_args(); } protected boolean isOneway() { return false; } public getCriteriaTime_result getResult(I iface, getCriteriaTime_args args) throws org.apache.thrift.TException { getCriteriaTime_result result = new getCriteriaTime_result(); try { result.success = iface.getCriteriaTime(args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class getCriteriaTimestr extends org.apache.thrift.ProcessFunction { public getCriteriaTimestr() { super("getCriteriaTimestr"); } public getCriteriaTimestr_args getEmptyArgsInstance() { return new getCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public getCriteriaTimestr_result getResult(I iface, getCriteriaTimestr_args args) throws org.apache.thrift.TException { getCriteriaTimestr_result result = new getCriteriaTimestr_result(); try { result.success = iface.getCriteriaTimestr(args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class getCclTime extends org.apache.thrift.ProcessFunction { public getCclTime() { super("getCclTime"); } public getCclTime_args getEmptyArgsInstance() { return new getCclTime_args(); } protected boolean isOneway() { return false; } public getCclTime_result getResult(I iface, getCclTime_args args) throws org.apache.thrift.TException { getCclTime_result result = new getCclTime_result(); try { result.success = iface.getCclTime(args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class getCclTimestr extends org.apache.thrift.ProcessFunction { public getCclTimestr() { super("getCclTimestr"); } public getCclTimestr_args getEmptyArgsInstance() { return new getCclTimestr_args(); } protected boolean isOneway() { return false; } public getCclTimestr_result getResult(I iface, getCclTimestr_args args) throws org.apache.thrift.TException { getCclTimestr_result result = new getCclTimestr_result(); try { result.success = iface.getCclTimestr(args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class getKeyCcl extends org.apache.thrift.ProcessFunction { public getKeyCcl() { super("getKeyCcl"); } public getKeyCcl_args getEmptyArgsInstance() { return new getKeyCcl_args(); } protected boolean isOneway() { return false; } public getKeyCcl_result getResult(I iface, getKeyCcl_args args) throws org.apache.thrift.TException { getKeyCcl_result result = new getKeyCcl_result(); try { result.success = iface.getKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class getKeyCriteriaTime extends org.apache.thrift.ProcessFunction { public getKeyCriteriaTime() { super("getKeyCriteriaTime"); } public getKeyCriteriaTime_args getEmptyArgsInstance() { return new getKeyCriteriaTime_args(); } protected boolean isOneway() { return false; } public getKeyCriteriaTime_result getResult(I iface, getKeyCriteriaTime_args args) throws org.apache.thrift.TException { getKeyCriteriaTime_result result = new getKeyCriteriaTime_result(); try { result.success = iface.getKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class getKeyCriteriaTimestr extends org.apache.thrift.ProcessFunction { public getKeyCriteriaTimestr() { super("getKeyCriteriaTimestr"); } public getKeyCriteriaTimestr_args getEmptyArgsInstance() { return new getKeyCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public getKeyCriteriaTimestr_result getResult(I iface, getKeyCriteriaTimestr_args args) throws org.apache.thrift.TException { getKeyCriteriaTimestr_result result = new getKeyCriteriaTimestr_result(); try { result.success = iface.getKeyCriteriaTimestr(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class getKeyCclTime extends org.apache.thrift.ProcessFunction { public getKeyCclTime() { super("getKeyCclTime"); } public getKeyCclTime_args getEmptyArgsInstance() { return new getKeyCclTime_args(); } protected boolean isOneway() { return false; } public getKeyCclTime_result getResult(I iface, getKeyCclTime_args args) throws org.apache.thrift.TException { getKeyCclTime_result result = new getKeyCclTime_result(); try { result.success = iface.getKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class getKeyCclTimestr extends org.apache.thrift.ProcessFunction { public getKeyCclTimestr() { super("getKeyCclTimestr"); } public getKeyCclTimestr_args getEmptyArgsInstance() { return new getKeyCclTimestr_args(); } protected boolean isOneway() { return false; } public getKeyCclTimestr_result getResult(I iface, getKeyCclTimestr_args args) throws org.apache.thrift.TException { getKeyCclTimestr_result result = new getKeyCclTimestr_result(); try { result.success = iface.getKeyCclTimestr(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class getKeysCriteria extends org.apache.thrift.ProcessFunction { public getKeysCriteria() { super("getKeysCriteria"); } public getKeysCriteria_args getEmptyArgsInstance() { return new getKeysCriteria_args(); } protected boolean isOneway() { return false; } public getKeysCriteria_result getResult(I iface, getKeysCriteria_args args) throws org.apache.thrift.TException { getKeysCriteria_result result = new getKeysCriteria_result(); try { result.success = iface.getKeysCriteria(args.keys, args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class getKeysCcl extends org.apache.thrift.ProcessFunction { public getKeysCcl() { super("getKeysCcl"); } public getKeysCcl_args getEmptyArgsInstance() { return new getKeysCcl_args(); } protected boolean isOneway() { return false; } public getKeysCcl_result getResult(I iface, getKeysCcl_args args) throws org.apache.thrift.TException { getKeysCcl_result result = new getKeysCcl_result(); try { result.success = iface.getKeysCcl(args.keys, args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class getKeysCriteriaTime extends org.apache.thrift.ProcessFunction { public getKeysCriteriaTime() { super("getKeysCriteriaTime"); } public getKeysCriteriaTime_args getEmptyArgsInstance() { return new getKeysCriteriaTime_args(); } protected boolean isOneway() { return false; } public getKeysCriteriaTime_result getResult(I iface, getKeysCriteriaTime_args args) throws org.apache.thrift.TException { getKeysCriteriaTime_result result = new getKeysCriteriaTime_result(); try { result.success = iface.getKeysCriteriaTime(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class getKeysCriteriaTimestr extends org.apache.thrift.ProcessFunction { public getKeysCriteriaTimestr() { super("getKeysCriteriaTimestr"); } public getKeysCriteriaTimestr_args getEmptyArgsInstance() { return new getKeysCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public getKeysCriteriaTimestr_result getResult(I iface, getKeysCriteriaTimestr_args args) throws org.apache.thrift.TException { getKeysCriteriaTimestr_result result = new getKeysCriteriaTimestr_result(); try { result.success = iface.getKeysCriteriaTimestr(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class getKeysCclTime extends org.apache.thrift.ProcessFunction { public getKeysCclTime() { super("getKeysCclTime"); } public getKeysCclTime_args getEmptyArgsInstance() { return new getKeysCclTime_args(); } protected boolean isOneway() { return false; } public getKeysCclTime_result getResult(I iface, getKeysCclTime_args args) throws org.apache.thrift.TException { getKeysCclTime_result result = new getKeysCclTime_result(); try { result.success = iface.getKeysCclTime(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class getKeysCclTimestr extends org.apache.thrift.ProcessFunction { public getKeysCclTimestr() { super("getKeysCclTimestr"); } public getKeysCclTimestr_args getEmptyArgsInstance() { return new getKeysCclTimestr_args(); } protected boolean isOneway() { return false; } public getKeysCclTimestr_result getResult(I iface, getKeysCclTimestr_args args) throws org.apache.thrift.TException { getKeysCclTimestr_result result = new getKeysCclTimestr_result(); try { result.success = iface.getKeysCclTimestr(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class verifyKeyValueRecord extends org.apache.thrift.ProcessFunction { public verifyKeyValueRecord() { super("verifyKeyValueRecord"); } public verifyKeyValueRecord_args getEmptyArgsInstance() { return new verifyKeyValueRecord_args(); } protected boolean isOneway() { return false; } public verifyKeyValueRecord_result getResult(I iface, verifyKeyValueRecord_args args) throws org.apache.thrift.TException { verifyKeyValueRecord_result result = new verifyKeyValueRecord_result(); try { result.success = iface.verifyKeyValueRecord(args.key, args.value, args.record, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class verifyKeyValueRecordTime extends org.apache.thrift.ProcessFunction { public verifyKeyValueRecordTime() { super("verifyKeyValueRecordTime"); } public verifyKeyValueRecordTime_args getEmptyArgsInstance() { return new verifyKeyValueRecordTime_args(); } protected boolean isOneway() { return false; } public verifyKeyValueRecordTime_result getResult(I iface, verifyKeyValueRecordTime_args args) throws org.apache.thrift.TException { verifyKeyValueRecordTime_result result = new verifyKeyValueRecordTime_result(); try { result.success = iface.verifyKeyValueRecordTime(args.key, args.value, args.record, args.timestamp, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class verifyKeyValueRecordTimestr extends org.apache.thrift.ProcessFunction { public verifyKeyValueRecordTimestr() { super("verifyKeyValueRecordTimestr"); } public verifyKeyValueRecordTimestr_args getEmptyArgsInstance() { return new verifyKeyValueRecordTimestr_args(); } protected boolean isOneway() { return false; } public verifyKeyValueRecordTimestr_result getResult(I iface, verifyKeyValueRecordTimestr_args args) throws org.apache.thrift.TException { verifyKeyValueRecordTimestr_result result = new verifyKeyValueRecordTimestr_result(); try { result.success = iface.verifyKeyValueRecordTimestr(args.key, args.value, args.record, args.timestamp, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class jsonifyRecords extends org.apache.thrift.ProcessFunction { public jsonifyRecords() { super("jsonifyRecords"); } public jsonifyRecords_args getEmptyArgsInstance() { return new jsonifyRecords_args(); } protected boolean isOneway() { return false; } public jsonifyRecords_result getResult(I iface, jsonifyRecords_args args) throws org.apache.thrift.TException { jsonifyRecords_result result = new jsonifyRecords_result(); try { result.success = iface.jsonifyRecords(args.records, args.identifier, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class jsonifyRecordsTime extends org.apache.thrift.ProcessFunction { public jsonifyRecordsTime() { super("jsonifyRecordsTime"); } public jsonifyRecordsTime_args getEmptyArgsInstance() { return new jsonifyRecordsTime_args(); } protected boolean isOneway() { return false; } public jsonifyRecordsTime_result getResult(I iface, jsonifyRecordsTime_args args) throws org.apache.thrift.TException { jsonifyRecordsTime_result result = new jsonifyRecordsTime_result(); try { result.success = iface.jsonifyRecordsTime(args.records, args.timestamp, args.identifier, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class jsonifyRecordsTimestr extends org.apache.thrift.ProcessFunction { public jsonifyRecordsTimestr() { super("jsonifyRecordsTimestr"); } public jsonifyRecordsTimestr_args getEmptyArgsInstance() { return new jsonifyRecordsTimestr_args(); } protected boolean isOneway() { return false; } public jsonifyRecordsTimestr_result getResult(I iface, jsonifyRecordsTimestr_args args) throws org.apache.thrift.TException { jsonifyRecordsTimestr_result result = new jsonifyRecordsTimestr_result(); try { result.success = iface.jsonifyRecordsTimestr(args.records, args.timestamp, args.identifier, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class findCriteria extends org.apache.thrift.ProcessFunction { public findCriteria() { super("findCriteria"); } public findCriteria_args getEmptyArgsInstance() { return new findCriteria_args(); } protected boolean isOneway() { return false; } public findCriteria_result getResult(I iface, findCriteria_args args) throws org.apache.thrift.TException { findCriteria_result result = new findCriteria_result(); try { result.success = iface.findCriteria(args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class findCcl extends org.apache.thrift.ProcessFunction { public findCcl() { super("findCcl"); } public findCcl_args getEmptyArgsInstance() { return new findCcl_args(); } protected boolean isOneway() { return false; } public findCcl_result getResult(I iface, findCcl_args args) throws org.apache.thrift.TException { findCcl_result result = new findCcl_result(); try { result.success = iface.findCcl(args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class findKeyOperatorValues extends org.apache.thrift.ProcessFunction { public findKeyOperatorValues() { super("findKeyOperatorValues"); } public findKeyOperatorValues_args getEmptyArgsInstance() { return new findKeyOperatorValues_args(); } protected boolean isOneway() { return false; } public findKeyOperatorValues_result getResult(I iface, findKeyOperatorValues_args args) throws org.apache.thrift.TException { findKeyOperatorValues_result result = new findKeyOperatorValues_result(); try { result.success = iface.findKeyOperatorValues(args.key, args.operator, args.values, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class findKeyOperatorValuesTime extends org.apache.thrift.ProcessFunction { public findKeyOperatorValuesTime() { super("findKeyOperatorValuesTime"); } public findKeyOperatorValuesTime_args getEmptyArgsInstance() { return new findKeyOperatorValuesTime_args(); } protected boolean isOneway() { return false; } public findKeyOperatorValuesTime_result getResult(I iface, findKeyOperatorValuesTime_args args) throws org.apache.thrift.TException { findKeyOperatorValuesTime_result result = new findKeyOperatorValuesTime_result(); try { result.success = iface.findKeyOperatorValuesTime(args.key, args.operator, args.values, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class findKeyOperatorValuesTimestr extends org.apache.thrift.ProcessFunction { public findKeyOperatorValuesTimestr() { super("findKeyOperatorValuesTimestr"); } public findKeyOperatorValuesTimestr_args getEmptyArgsInstance() { return new findKeyOperatorValuesTimestr_args(); } protected boolean isOneway() { return false; } public findKeyOperatorValuesTimestr_result getResult(I iface, findKeyOperatorValuesTimestr_args args) throws org.apache.thrift.TException { findKeyOperatorValuesTimestr_result result = new findKeyOperatorValuesTimestr_result(); try { result.success = iface.findKeyOperatorValuesTimestr(args.key, args.operator, args.values, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class findKeyOperatorstrValues extends org.apache.thrift.ProcessFunction { public findKeyOperatorstrValues() { super("findKeyOperatorstrValues"); } public findKeyOperatorstrValues_args getEmptyArgsInstance() { return new findKeyOperatorstrValues_args(); } protected boolean isOneway() { return false; } public findKeyOperatorstrValues_result getResult(I iface, findKeyOperatorstrValues_args args) throws org.apache.thrift.TException { findKeyOperatorstrValues_result result = new findKeyOperatorstrValues_result(); try { result.success = iface.findKeyOperatorstrValues(args.key, args.operator, args.values, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class findKeyOperatorstrValuesTime extends org.apache.thrift.ProcessFunction { public findKeyOperatorstrValuesTime() { super("findKeyOperatorstrValuesTime"); } public findKeyOperatorstrValuesTime_args getEmptyArgsInstance() { return new findKeyOperatorstrValuesTime_args(); } protected boolean isOneway() { return false; } public findKeyOperatorstrValuesTime_result getResult(I iface, findKeyOperatorstrValuesTime_args args) throws org.apache.thrift.TException { findKeyOperatorstrValuesTime_result result = new findKeyOperatorstrValuesTime_result(); try { result.success = iface.findKeyOperatorstrValuesTime(args.key, args.operator, args.values, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class findKeyOperatorstrValuesTimestr extends org.apache.thrift.ProcessFunction { public findKeyOperatorstrValuesTimestr() { super("findKeyOperatorstrValuesTimestr"); } public findKeyOperatorstrValuesTimestr_args getEmptyArgsInstance() { return new findKeyOperatorstrValuesTimestr_args(); } protected boolean isOneway() { return false; } public findKeyOperatorstrValuesTimestr_result getResult(I iface, findKeyOperatorstrValuesTimestr_args args) throws org.apache.thrift.TException { findKeyOperatorstrValuesTimestr_result result = new findKeyOperatorstrValuesTimestr_result(); try { result.success = iface.findKeyOperatorstrValuesTimestr(args.key, args.operator, args.values, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class search extends org.apache.thrift.ProcessFunction { public search() { super("search"); } public search_args getEmptyArgsInstance() { return new search_args(); } protected boolean isOneway() { return false; } public search_result getResult(I iface, search_args args) throws org.apache.thrift.TException { search_result result = new search_result(); try { result.success = iface.search(args.key, args.query, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class revertKeysRecordsTime extends org.apache.thrift.ProcessFunction { public revertKeysRecordsTime() { super("revertKeysRecordsTime"); } public revertKeysRecordsTime_args getEmptyArgsInstance() { return new revertKeysRecordsTime_args(); } protected boolean isOneway() { return false; } public revertKeysRecordsTime_result getResult(I iface, revertKeysRecordsTime_args args) throws org.apache.thrift.TException { revertKeysRecordsTime_result result = new revertKeysRecordsTime_result(); try { iface.revertKeysRecordsTime(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class revertKeysRecordsTimestr extends org.apache.thrift.ProcessFunction { public revertKeysRecordsTimestr() { super("revertKeysRecordsTimestr"); } public revertKeysRecordsTimestr_args getEmptyArgsInstance() { return new revertKeysRecordsTimestr_args(); } protected boolean isOneway() { return false; } public revertKeysRecordsTimestr_result getResult(I iface, revertKeysRecordsTimestr_args args) throws org.apache.thrift.TException { revertKeysRecordsTimestr_result result = new revertKeysRecordsTimestr_result(); try { iface.revertKeysRecordsTimestr(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class revertKeysRecordTime extends org.apache.thrift.ProcessFunction { public revertKeysRecordTime() { super("revertKeysRecordTime"); } public revertKeysRecordTime_args getEmptyArgsInstance() { return new revertKeysRecordTime_args(); } protected boolean isOneway() { return false; } public revertKeysRecordTime_result getResult(I iface, revertKeysRecordTime_args args) throws org.apache.thrift.TException { revertKeysRecordTime_result result = new revertKeysRecordTime_result(); try { iface.revertKeysRecordTime(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class revertKeysRecordTimestr extends org.apache.thrift.ProcessFunction { public revertKeysRecordTimestr() { super("revertKeysRecordTimestr"); } public revertKeysRecordTimestr_args getEmptyArgsInstance() { return new revertKeysRecordTimestr_args(); } protected boolean isOneway() { return false; } public revertKeysRecordTimestr_result getResult(I iface, revertKeysRecordTimestr_args args) throws org.apache.thrift.TException { revertKeysRecordTimestr_result result = new revertKeysRecordTimestr_result(); try { iface.revertKeysRecordTimestr(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class revertKeyRecordsTime extends org.apache.thrift.ProcessFunction { public revertKeyRecordsTime() { super("revertKeyRecordsTime"); } public revertKeyRecordsTime_args getEmptyArgsInstance() { return new revertKeyRecordsTime_args(); } protected boolean isOneway() { return false; } public revertKeyRecordsTime_result getResult(I iface, revertKeyRecordsTime_args args) throws org.apache.thrift.TException { revertKeyRecordsTime_result result = new revertKeyRecordsTime_result(); try { iface.revertKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class revertKeyRecordsTimestr extends org.apache.thrift.ProcessFunction { public revertKeyRecordsTimestr() { super("revertKeyRecordsTimestr"); } public revertKeyRecordsTimestr_args getEmptyArgsInstance() { return new revertKeyRecordsTimestr_args(); } protected boolean isOneway() { return false; } public revertKeyRecordsTimestr_result getResult(I iface, revertKeyRecordsTimestr_args args) throws org.apache.thrift.TException { revertKeyRecordsTimestr_result result = new revertKeyRecordsTimestr_result(); try { iface.revertKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class revertKeyRecordTime extends org.apache.thrift.ProcessFunction { public revertKeyRecordTime() { super("revertKeyRecordTime"); } public revertKeyRecordTime_args getEmptyArgsInstance() { return new revertKeyRecordTime_args(); } protected boolean isOneway() { return false; } public revertKeyRecordTime_result getResult(I iface, revertKeyRecordTime_args args) throws org.apache.thrift.TException { revertKeyRecordTime_result result = new revertKeyRecordTime_result(); try { iface.revertKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class revertKeyRecordTimestr extends org.apache.thrift.ProcessFunction { public revertKeyRecordTimestr() { super("revertKeyRecordTimestr"); } public revertKeyRecordTimestr_args getEmptyArgsInstance() { return new revertKeyRecordTimestr_args(); } protected boolean isOneway() { return false; } public revertKeyRecordTimestr_result getResult(I iface, revertKeyRecordTimestr_args args) throws org.apache.thrift.TException { revertKeyRecordTimestr_result result = new revertKeyRecordTimestr_result(); try { iface.revertKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class pingRecords extends org.apache.thrift.ProcessFunction { public pingRecords() { super("pingRecords"); } public pingRecords_args getEmptyArgsInstance() { return new pingRecords_args(); } protected boolean isOneway() { return false; } public pingRecords_result getResult(I iface, pingRecords_args args) throws org.apache.thrift.TException { pingRecords_result result = new pingRecords_result(); try { result.success = iface.pingRecords(args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class pingRecord extends org.apache.thrift.ProcessFunction { public pingRecord() { super("pingRecord"); } public pingRecord_args getEmptyArgsInstance() { return new pingRecord_args(); } protected boolean isOneway() { return false; } public pingRecord_result getResult(I iface, pingRecord_args args) throws org.apache.thrift.TException { pingRecord_result result = new pingRecord_result(); try { result.success = iface.pingRecord(args.record, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class verifyAndSwap extends org.apache.thrift.ProcessFunction { public verifyAndSwap() { super("verifyAndSwap"); } public verifyAndSwap_args getEmptyArgsInstance() { return new verifyAndSwap_args(); } protected boolean isOneway() { return false; } public verifyAndSwap_result getResult(I iface, verifyAndSwap_args args) throws org.apache.thrift.TException { verifyAndSwap_result result = new verifyAndSwap_result(); try { result.success = iface.verifyAndSwap(args.key, args.expected, args.record, args.replacement, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class verifyOrSet extends org.apache.thrift.ProcessFunction { public verifyOrSet() { super("verifyOrSet"); } public verifyOrSet_args getEmptyArgsInstance() { return new verifyOrSet_args(); } protected boolean isOneway() { return false; } public verifyOrSet_result getResult(I iface, verifyOrSet_args args) throws org.apache.thrift.TException { verifyOrSet_result result = new verifyOrSet_result(); try { iface.verifyOrSet(args.key, args.value, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { result.ex3 = ex3; } return result; } } public static class findOrAddKeyValue extends org.apache.thrift.ProcessFunction { public findOrAddKeyValue() { super("findOrAddKeyValue"); } public findOrAddKeyValue_args getEmptyArgsInstance() { return new findOrAddKeyValue_args(); } protected boolean isOneway() { return false; } public findOrAddKeyValue_result getResult(I iface, findOrAddKeyValue_args args) throws org.apache.thrift.TException { findOrAddKeyValue_result result = new findOrAddKeyValue_result(); try { result.success = iface.findOrAddKeyValue(args.key, args.value, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.DuplicateEntryException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.InvalidArgumentException ex4) { result.ex4 = ex4; } return result; } } public static class findOrInsertCriteriaJson extends org.apache.thrift.ProcessFunction { public findOrInsertCriteriaJson() { super("findOrInsertCriteriaJson"); } public findOrInsertCriteriaJson_args getEmptyArgsInstance() { return new findOrInsertCriteriaJson_args(); } protected boolean isOneway() { return false; } public findOrInsertCriteriaJson_result getResult(I iface, findOrInsertCriteriaJson_args args) throws org.apache.thrift.TException { findOrInsertCriteriaJson_result result = new findOrInsertCriteriaJson_result(); try { result.success = iface.findOrInsertCriteriaJson(args.criteria, args.json, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.DuplicateEntryException ex3) { result.ex3 = ex3; } return result; } } public static class findOrInsertCclJson extends org.apache.thrift.ProcessFunction { public findOrInsertCclJson() { super("findOrInsertCclJson"); } public findOrInsertCclJson_args getEmptyArgsInstance() { return new findOrInsertCclJson_args(); } protected boolean isOneway() { return false; } public findOrInsertCclJson_result getResult(I iface, findOrInsertCclJson_args args) throws org.apache.thrift.TException { findOrInsertCclJson_result result = new findOrInsertCclJson_result(); try { result.success = iface.findOrInsertCclJson(args.ccl, args.json, args.creds, args.transaction, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } catch (com.cinchapi.concourse.thrift.DuplicateEntryException ex4) { result.ex4 = ex4; } return result; } } public static class sumKeyRecord extends org.apache.thrift.ProcessFunction { public sumKeyRecord() { super("sumKeyRecord"); } public sumKeyRecord_args getEmptyArgsInstance() { return new sumKeyRecord_args(); } protected boolean isOneway() { return false; } public sumKeyRecord_result getResult(I iface, sumKeyRecord_args args) throws org.apache.thrift.TException { sumKeyRecord_result result = new sumKeyRecord_result(); try { result.success = iface.sumKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class sumKey extends org.apache.thrift.ProcessFunction { public sumKey() { super("sumKey"); } public sumKey_args getEmptyArgsInstance() { return new sumKey_args(); } protected boolean isOneway() { return false; } public sumKey_result getResult(I iface, sumKey_args args) throws org.apache.thrift.TException { sumKey_result result = new sumKey_result(); try { result.success = iface.sumKey(args.key, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class sumKeyTime extends org.apache.thrift.ProcessFunction { public sumKeyTime() { super("sumKeyTime"); } public sumKeyTime_args getEmptyArgsInstance() { return new sumKeyTime_args(); } protected boolean isOneway() { return false; } public sumKeyTime_result getResult(I iface, sumKeyTime_args args) throws org.apache.thrift.TException { sumKeyTime_result result = new sumKeyTime_result(); try { result.success = iface.sumKeyTime(args.key, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class sumKeyRecordTime extends org.apache.thrift.ProcessFunction { public sumKeyRecordTime() { super("sumKeyRecordTime"); } public sumKeyRecordTime_args getEmptyArgsInstance() { return new sumKeyRecordTime_args(); } protected boolean isOneway() { return false; } public sumKeyRecordTime_result getResult(I iface, sumKeyRecordTime_args args) throws org.apache.thrift.TException { sumKeyRecordTime_result result = new sumKeyRecordTime_result(); try { result.success = iface.sumKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class sumKeyRecords extends org.apache.thrift.ProcessFunction { public sumKeyRecords() { super("sumKeyRecords"); } public sumKeyRecords_args getEmptyArgsInstance() { return new sumKeyRecords_args(); } protected boolean isOneway() { return false; } public sumKeyRecords_result getResult(I iface, sumKeyRecords_args args) throws org.apache.thrift.TException { sumKeyRecords_result result = new sumKeyRecords_result(); try { result.success = iface.sumKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class sumKeyRecordsTime extends org.apache.thrift.ProcessFunction { public sumKeyRecordsTime() { super("sumKeyRecordsTime"); } public sumKeyRecordsTime_args getEmptyArgsInstance() { return new sumKeyRecordsTime_args(); } protected boolean isOneway() { return false; } public sumKeyRecordsTime_result getResult(I iface, sumKeyRecordsTime_args args) throws org.apache.thrift.TException { sumKeyRecordsTime_result result = new sumKeyRecordsTime_result(); try { result.success = iface.sumKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class sumKeyCriteria extends org.apache.thrift.ProcessFunction { public sumKeyCriteria() { super("sumKeyCriteria"); } public sumKeyCriteria_args getEmptyArgsInstance() { return new sumKeyCriteria_args(); } protected boolean isOneway() { return false; } public sumKeyCriteria_result getResult(I iface, sumKeyCriteria_args args) throws org.apache.thrift.TException { sumKeyCriteria_result result = new sumKeyCriteria_result(); try { result.success = iface.sumKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class sumKeyCcl extends org.apache.thrift.ProcessFunction { public sumKeyCcl() { super("sumKeyCcl"); } public sumKeyCcl_args getEmptyArgsInstance() { return new sumKeyCcl_args(); } protected boolean isOneway() { return false; } public sumKeyCcl_result getResult(I iface, sumKeyCcl_args args) throws org.apache.thrift.TException { sumKeyCcl_result result = new sumKeyCcl_result(); try { result.success = iface.sumKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class sumKeyCriteriaTime extends org.apache.thrift.ProcessFunction { public sumKeyCriteriaTime() { super("sumKeyCriteriaTime"); } public sumKeyCriteriaTime_args getEmptyArgsInstance() { return new sumKeyCriteriaTime_args(); } protected boolean isOneway() { return false; } public sumKeyCriteriaTime_result getResult(I iface, sumKeyCriteriaTime_args args) throws org.apache.thrift.TException { sumKeyCriteriaTime_result result = new sumKeyCriteriaTime_result(); try { result.success = iface.sumKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class sumKeyCclTime extends org.apache.thrift.ProcessFunction { public sumKeyCclTime() { super("sumKeyCclTime"); } public sumKeyCclTime_args getEmptyArgsInstance() { return new sumKeyCclTime_args(); } protected boolean isOneway() { return false; } public sumKeyCclTime_result getResult(I iface, sumKeyCclTime_args args) throws org.apache.thrift.TException { sumKeyCclTime_result result = new sumKeyCclTime_result(); try { result.success = iface.sumKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class averageKeyRecord extends org.apache.thrift.ProcessFunction { public averageKeyRecord() { super("averageKeyRecord"); } public averageKeyRecord_args getEmptyArgsInstance() { return new averageKeyRecord_args(); } protected boolean isOneway() { return false; } public averageKeyRecord_result getResult(I iface, averageKeyRecord_args args) throws org.apache.thrift.TException { averageKeyRecord_result result = new averageKeyRecord_result(); try { result.success = iface.averageKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class averageKey extends org.apache.thrift.ProcessFunction { public averageKey() { super("averageKey"); } public averageKey_args getEmptyArgsInstance() { return new averageKey_args(); } protected boolean isOneway() { return false; } public averageKey_result getResult(I iface, averageKey_args args) throws org.apache.thrift.TException { averageKey_result result = new averageKey_result(); try { result.success = iface.averageKey(args.key, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class averageKeyTime extends org.apache.thrift.ProcessFunction { public averageKeyTime() { super("averageKeyTime"); } public averageKeyTime_args getEmptyArgsInstance() { return new averageKeyTime_args(); } protected boolean isOneway() { return false; } public averageKeyTime_result getResult(I iface, averageKeyTime_args args) throws org.apache.thrift.TException { averageKeyTime_result result = new averageKeyTime_result(); try { result.success = iface.averageKeyTime(args.key, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class averageKeyRecordTime extends org.apache.thrift.ProcessFunction { public averageKeyRecordTime() { super("averageKeyRecordTime"); } public averageKeyRecordTime_args getEmptyArgsInstance() { return new averageKeyRecordTime_args(); } protected boolean isOneway() { return false; } public averageKeyRecordTime_result getResult(I iface, averageKeyRecordTime_args args) throws org.apache.thrift.TException { averageKeyRecordTime_result result = new averageKeyRecordTime_result(); try { result.success = iface.averageKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class averageKeyRecords extends org.apache.thrift.ProcessFunction { public averageKeyRecords() { super("averageKeyRecords"); } public averageKeyRecords_args getEmptyArgsInstance() { return new averageKeyRecords_args(); } protected boolean isOneway() { return false; } public averageKeyRecords_result getResult(I iface, averageKeyRecords_args args) throws org.apache.thrift.TException { averageKeyRecords_result result = new averageKeyRecords_result(); try { result.success = iface.averageKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class averageKeyRecordsTime extends org.apache.thrift.ProcessFunction { public averageKeyRecordsTime() { super("averageKeyRecordsTime"); } public averageKeyRecordsTime_args getEmptyArgsInstance() { return new averageKeyRecordsTime_args(); } protected boolean isOneway() { return false; } public averageKeyRecordsTime_result getResult(I iface, averageKeyRecordsTime_args args) throws org.apache.thrift.TException { averageKeyRecordsTime_result result = new averageKeyRecordsTime_result(); try { result.success = iface.averageKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class averageKeyCriteria extends org.apache.thrift.ProcessFunction { public averageKeyCriteria() { super("averageKeyCriteria"); } public averageKeyCriteria_args getEmptyArgsInstance() { return new averageKeyCriteria_args(); } protected boolean isOneway() { return false; } public averageKeyCriteria_result getResult(I iface, averageKeyCriteria_args args) throws org.apache.thrift.TException { averageKeyCriteria_result result = new averageKeyCriteria_result(); try { result.success = iface.averageKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class averageKeyCcl extends org.apache.thrift.ProcessFunction { public averageKeyCcl() { super("averageKeyCcl"); } public averageKeyCcl_args getEmptyArgsInstance() { return new averageKeyCcl_args(); } protected boolean isOneway() { return false; } public averageKeyCcl_result getResult(I iface, averageKeyCcl_args args) throws org.apache.thrift.TException { averageKeyCcl_result result = new averageKeyCcl_result(); try { result.success = iface.averageKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class averageKeyCriteriaTime extends org.apache.thrift.ProcessFunction { public averageKeyCriteriaTime() { super("averageKeyCriteriaTime"); } public averageKeyCriteriaTime_args getEmptyArgsInstance() { return new averageKeyCriteriaTime_args(); } protected boolean isOneway() { return false; } public averageKeyCriteriaTime_result getResult(I iface, averageKeyCriteriaTime_args args) throws org.apache.thrift.TException { averageKeyCriteriaTime_result result = new averageKeyCriteriaTime_result(); try { result.success = iface.averageKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class averageKeyCclTime extends org.apache.thrift.ProcessFunction { public averageKeyCclTime() { super("averageKeyCclTime"); } public averageKeyCclTime_args getEmptyArgsInstance() { return new averageKeyCclTime_args(); } protected boolean isOneway() { return false; } public averageKeyCclTime_result getResult(I iface, averageKeyCclTime_args args) throws org.apache.thrift.TException { averageKeyCclTime_result result = new averageKeyCclTime_result(); try { result.success = iface.averageKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeyRecord extends org.apache.thrift.ProcessFunction { public navigateKeyRecord() { super("navigateKeyRecord"); } public navigateKeyRecord_args getEmptyArgsInstance() { return new navigateKeyRecord_args(); } protected boolean isOneway() { return false; } public navigateKeyRecord_result getResult(I iface, navigateKeyRecord_args args) throws org.apache.thrift.TException { navigateKeyRecord_result result = new navigateKeyRecord_result(); try { result.success = iface.navigateKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class navigateKeyRecordTime extends org.apache.thrift.ProcessFunction { public navigateKeyRecordTime() { super("navigateKeyRecordTime"); } public navigateKeyRecordTime_args getEmptyArgsInstance() { return new navigateKeyRecordTime_args(); } protected boolean isOneway() { return false; } public navigateKeyRecordTime_result getResult(I iface, navigateKeyRecordTime_args args) throws org.apache.thrift.TException { navigateKeyRecordTime_result result = new navigateKeyRecordTime_result(); try { result.success = iface.navigateKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class navigateKeyRecordTimestr extends org.apache.thrift.ProcessFunction { public navigateKeyRecordTimestr() { super("navigateKeyRecordTimestr"); } public navigateKeyRecordTimestr_args getEmptyArgsInstance() { return new navigateKeyRecordTimestr_args(); } protected boolean isOneway() { return false; } public navigateKeyRecordTimestr_result getResult(I iface, navigateKeyRecordTimestr_args args) throws org.apache.thrift.TException { navigateKeyRecordTimestr_result result = new navigateKeyRecordTimestr_result(); try { result.success = iface.navigateKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class navigateKeysRecord extends org.apache.thrift.ProcessFunction { public navigateKeysRecord() { super("navigateKeysRecord"); } public navigateKeysRecord_args getEmptyArgsInstance() { return new navigateKeysRecord_args(); } protected boolean isOneway() { return false; } public navigateKeysRecord_result getResult(I iface, navigateKeysRecord_args args) throws org.apache.thrift.TException { navigateKeysRecord_result result = new navigateKeysRecord_result(); try { result.success = iface.navigateKeysRecord(args.keys, args.record, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class navigateKeysRecordTime extends org.apache.thrift.ProcessFunction { public navigateKeysRecordTime() { super("navigateKeysRecordTime"); } public navigateKeysRecordTime_args getEmptyArgsInstance() { return new navigateKeysRecordTime_args(); } protected boolean isOneway() { return false; } public navigateKeysRecordTime_result getResult(I iface, navigateKeysRecordTime_args args) throws org.apache.thrift.TException { navigateKeysRecordTime_result result = new navigateKeysRecordTime_result(); try { result.success = iface.navigateKeysRecordTime(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class navigateKeysRecordTimestr extends org.apache.thrift.ProcessFunction { public navigateKeysRecordTimestr() { super("navigateKeysRecordTimestr"); } public navigateKeysRecordTimestr_args getEmptyArgsInstance() { return new navigateKeysRecordTimestr_args(); } protected boolean isOneway() { return false; } public navigateKeysRecordTimestr_result getResult(I iface, navigateKeysRecordTimestr_args args) throws org.apache.thrift.TException { navigateKeysRecordTimestr_result result = new navigateKeysRecordTimestr_result(); try { result.success = iface.navigateKeysRecordTimestr(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class navigateKeysRecords extends org.apache.thrift.ProcessFunction { public navigateKeysRecords() { super("navigateKeysRecords"); } public navigateKeysRecords_args getEmptyArgsInstance() { return new navigateKeysRecords_args(); } protected boolean isOneway() { return false; } public navigateKeysRecords_result getResult(I iface, navigateKeysRecords_args args) throws org.apache.thrift.TException { navigateKeysRecords_result result = new navigateKeysRecords_result(); try { result.success = iface.navigateKeysRecords(args.keys, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class navigateKeyRecords extends org.apache.thrift.ProcessFunction { public navigateKeyRecords() { super("navigateKeyRecords"); } public navigateKeyRecords_args getEmptyArgsInstance() { return new navigateKeyRecords_args(); } protected boolean isOneway() { return false; } public navigateKeyRecords_result getResult(I iface, navigateKeyRecords_args args) throws org.apache.thrift.TException { navigateKeyRecords_result result = new navigateKeyRecords_result(); try { result.success = iface.navigateKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class navigateKeyRecordsTime extends org.apache.thrift.ProcessFunction { public navigateKeyRecordsTime() { super("navigateKeyRecordsTime"); } public navigateKeyRecordsTime_args getEmptyArgsInstance() { return new navigateKeyRecordsTime_args(); } protected boolean isOneway() { return false; } public navigateKeyRecordsTime_result getResult(I iface, navigateKeyRecordsTime_args args) throws org.apache.thrift.TException { navigateKeyRecordsTime_result result = new navigateKeyRecordsTime_result(); try { result.success = iface.navigateKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class navigateKeyRecordsTimestr extends org.apache.thrift.ProcessFunction { public navigateKeyRecordsTimestr() { super("navigateKeyRecordsTimestr"); } public navigateKeyRecordsTimestr_args getEmptyArgsInstance() { return new navigateKeyRecordsTimestr_args(); } protected boolean isOneway() { return false; } public navigateKeyRecordsTimestr_result getResult(I iface, navigateKeyRecordsTimestr_args args) throws org.apache.thrift.TException { navigateKeyRecordsTimestr_result result = new navigateKeyRecordsTimestr_result(); try { result.success = iface.navigateKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class navigateKeysRecordsTime extends org.apache.thrift.ProcessFunction { public navigateKeysRecordsTime() { super("navigateKeysRecordsTime"); } public navigateKeysRecordsTime_args getEmptyArgsInstance() { return new navigateKeysRecordsTime_args(); } protected boolean isOneway() { return false; } public navigateKeysRecordsTime_result getResult(I iface, navigateKeysRecordsTime_args args) throws org.apache.thrift.TException { navigateKeysRecordsTime_result result = new navigateKeysRecordsTime_result(); try { result.success = iface.navigateKeysRecordsTime(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class navigateKeysRecordsTimestr extends org.apache.thrift.ProcessFunction { public navigateKeysRecordsTimestr() { super("navigateKeysRecordsTimestr"); } public navigateKeysRecordsTimestr_args getEmptyArgsInstance() { return new navigateKeysRecordsTimestr_args(); } protected boolean isOneway() { return false; } public navigateKeysRecordsTimestr_result getResult(I iface, navigateKeysRecordsTimestr_args args) throws org.apache.thrift.TException { navigateKeysRecordsTimestr_result result = new navigateKeysRecordsTimestr_result(); try { result.success = iface.navigateKeysRecordsTimestr(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class navigateKeyCcl extends org.apache.thrift.ProcessFunction { public navigateKeyCcl() { super("navigateKeyCcl"); } public navigateKeyCcl_args getEmptyArgsInstance() { return new navigateKeyCcl_args(); } protected boolean isOneway() { return false; } public navigateKeyCcl_result getResult(I iface, navigateKeyCcl_args args) throws org.apache.thrift.TException { navigateKeyCcl_result result = new navigateKeyCcl_result(); try { result.success = iface.navigateKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeyCclTime extends org.apache.thrift.ProcessFunction { public navigateKeyCclTime() { super("navigateKeyCclTime"); } public navigateKeyCclTime_args getEmptyArgsInstance() { return new navigateKeyCclTime_args(); } protected boolean isOneway() { return false; } public navigateKeyCclTime_result getResult(I iface, navigateKeyCclTime_args args) throws org.apache.thrift.TException { navigateKeyCclTime_result result = new navigateKeyCclTime_result(); try { result.success = iface.navigateKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeyCclTimestr extends org.apache.thrift.ProcessFunction { public navigateKeyCclTimestr() { super("navigateKeyCclTimestr"); } public navigateKeyCclTimestr_args getEmptyArgsInstance() { return new navigateKeyCclTimestr_args(); } protected boolean isOneway() { return false; } public navigateKeyCclTimestr_result getResult(I iface, navigateKeyCclTimestr_args args) throws org.apache.thrift.TException { navigateKeyCclTimestr_result result = new navigateKeyCclTimestr_result(); try { result.success = iface.navigateKeyCclTimestr(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeysCcl extends org.apache.thrift.ProcessFunction { public navigateKeysCcl() { super("navigateKeysCcl"); } public navigateKeysCcl_args getEmptyArgsInstance() { return new navigateKeysCcl_args(); } protected boolean isOneway() { return false; } public navigateKeysCcl_result getResult(I iface, navigateKeysCcl_args args) throws org.apache.thrift.TException { navigateKeysCcl_result result = new navigateKeysCcl_result(); try { result.success = iface.navigateKeysCcl(args.keys, args.ccl, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeysCclTime extends org.apache.thrift.ProcessFunction { public navigateKeysCclTime() { super("navigateKeysCclTime"); } public navigateKeysCclTime_args getEmptyArgsInstance() { return new navigateKeysCclTime_args(); } protected boolean isOneway() { return false; } public navigateKeysCclTime_result getResult(I iface, navigateKeysCclTime_args args) throws org.apache.thrift.TException { navigateKeysCclTime_result result = new navigateKeysCclTime_result(); try { result.success = iface.navigateKeysCclTime(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeysCclTimestr extends org.apache.thrift.ProcessFunction { public navigateKeysCclTimestr() { super("navigateKeysCclTimestr"); } public navigateKeysCclTimestr_args getEmptyArgsInstance() { return new navigateKeysCclTimestr_args(); } protected boolean isOneway() { return false; } public navigateKeysCclTimestr_result getResult(I iface, navigateKeysCclTimestr_args args) throws org.apache.thrift.TException { navigateKeysCclTimestr_result result = new navigateKeysCclTimestr_result(); try { result.success = iface.navigateKeysCclTimestr(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeyCriteria extends org.apache.thrift.ProcessFunction { public navigateKeyCriteria() { super("navigateKeyCriteria"); } public navigateKeyCriteria_args getEmptyArgsInstance() { return new navigateKeyCriteria_args(); } protected boolean isOneway() { return false; } public navigateKeyCriteria_result getResult(I iface, navigateKeyCriteria_args args) throws org.apache.thrift.TException { navigateKeyCriteria_result result = new navigateKeyCriteria_result(); try { result.success = iface.navigateKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeyCriteriaTime extends org.apache.thrift.ProcessFunction { public navigateKeyCriteriaTime() { super("navigateKeyCriteriaTime"); } public navigateKeyCriteriaTime_args getEmptyArgsInstance() { return new navigateKeyCriteriaTime_args(); } protected boolean isOneway() { return false; } public navigateKeyCriteriaTime_result getResult(I iface, navigateKeyCriteriaTime_args args) throws org.apache.thrift.TException { navigateKeyCriteriaTime_result result = new navigateKeyCriteriaTime_result(); try { result.success = iface.navigateKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeyCriteriaTimestr extends org.apache.thrift.ProcessFunction { public navigateKeyCriteriaTimestr() { super("navigateKeyCriteriaTimestr"); } public navigateKeyCriteriaTimestr_args getEmptyArgsInstance() { return new navigateKeyCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public navigateKeyCriteriaTimestr_result getResult(I iface, navigateKeyCriteriaTimestr_args args) throws org.apache.thrift.TException { navigateKeyCriteriaTimestr_result result = new navigateKeyCriteriaTimestr_result(); try { result.success = iface.navigateKeyCriteriaTimestr(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeysCriteria extends org.apache.thrift.ProcessFunction { public navigateKeysCriteria() { super("navigateKeysCriteria"); } public navigateKeysCriteria_args getEmptyArgsInstance() { return new navigateKeysCriteria_args(); } protected boolean isOneway() { return false; } public navigateKeysCriteria_result getResult(I iface, navigateKeysCriteria_args args) throws org.apache.thrift.TException { navigateKeysCriteria_result result = new navigateKeysCriteria_result(); try { result.success = iface.navigateKeysCriteria(args.keys, args.criteria, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeysCriteriaTime extends org.apache.thrift.ProcessFunction { public navigateKeysCriteriaTime() { super("navigateKeysCriteriaTime"); } public navigateKeysCriteriaTime_args getEmptyArgsInstance() { return new navigateKeysCriteriaTime_args(); } protected boolean isOneway() { return false; } public navigateKeysCriteriaTime_result getResult(I iface, navigateKeysCriteriaTime_args args) throws org.apache.thrift.TException { navigateKeysCriteriaTime_result result = new navigateKeysCriteriaTime_result(); try { result.success = iface.navigateKeysCriteriaTime(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class navigateKeysCriteriaTimestr extends org.apache.thrift.ProcessFunction { public navigateKeysCriteriaTimestr() { super("navigateKeysCriteriaTimestr"); } public navigateKeysCriteriaTimestr_args getEmptyArgsInstance() { return new navigateKeysCriteriaTimestr_args(); } protected boolean isOneway() { return false; } public navigateKeysCriteriaTimestr_result getResult(I iface, navigateKeysCriteriaTimestr_args args) throws org.apache.thrift.TException { navigateKeysCriteriaTimestr_result result = new navigateKeysCriteriaTimestr_result(); try { result.success = iface.navigateKeysCriteriaTimestr(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } return result; } } public static class getServerEnvironment extends org.apache.thrift.ProcessFunction { public getServerEnvironment() { super("getServerEnvironment"); } public getServerEnvironment_args getEmptyArgsInstance() { return new getServerEnvironment_args(); } protected boolean isOneway() { return false; } public getServerEnvironment_result getResult(I iface, getServerEnvironment_args args) throws org.apache.thrift.TException { getServerEnvironment_result result = new getServerEnvironment_result(); try { result.success = iface.getServerEnvironment(args.creds, args.token, args.environment); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class getServerVersion extends org.apache.thrift.ProcessFunction { public getServerVersion() { super("getServerVersion"); } public getServerVersion_args getEmptyArgsInstance() { return new getServerVersion_args(); } protected boolean isOneway() { return false; } public getServerVersion_result getResult(I iface, getServerVersion_args args) throws org.apache.thrift.TException { getServerVersion_result result = new getServerVersion_result(); try { result.success = iface.getServerVersion(); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class time extends org.apache.thrift.ProcessFunction { public time() { super("time"); } public time_args getEmptyArgsInstance() { return new time_args(); } protected boolean isOneway() { return false; } public time_result getResult(I iface, time_args args) throws org.apache.thrift.TException { time_result result = new time_result(); try { result.success = iface.time(args.creds, args.token, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } return result; } } public static class timePhrase extends org.apache.thrift.ProcessFunction { public timePhrase() { super("timePhrase"); } public timePhrase_args getEmptyArgsInstance() { return new timePhrase_args(); } protected boolean isOneway() { return false; } public timePhrase_result getResult(I iface, timePhrase_args args) throws org.apache.thrift.TException { timePhrase_result result = new timePhrase_result(); try { result.success = iface.timePhrase(args.phrase, args.creds, args.token, args.environment); result.setSuccessIsSet(true); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } catch (com.cinchapi.concourse.thrift.TransactionException ex2) { result.ex2 = ex2; } catch (com.cinchapi.concourse.thrift.ParseException ex3) { result.ex3 = ex3; } 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 LinkedHashMap>())); } protected AsyncProcessor(I iface, Map> processMap) { super(iface, getProcessMap(processMap)); } private static Map> getProcessMap(Map> processMap) { processMap.put("abort", new abort()); processMap.put("addKeyValue", new addKeyValue()); processMap.put("addKeyValueRecord", new addKeyValueRecord()); processMap.put("addKeyValueRecords", new addKeyValueRecords()); processMap.put("auditRecord", new auditRecord()); processMap.put("auditRecordStart", new auditRecordStart()); processMap.put("auditRecordStartstr", new auditRecordStartstr()); processMap.put("auditRecordStartEnd", new auditRecordStartEnd()); processMap.put("auditRecordStartstrEndstr", new auditRecordStartstrEndstr()); processMap.put("auditKeyRecord", new auditKeyRecord()); processMap.put("auditKeyRecordStart", new auditKeyRecordStart()); processMap.put("auditKeyRecordStartstr", new auditKeyRecordStartstr()); processMap.put("auditKeyRecordStartEnd", new auditKeyRecordStartEnd()); processMap.put("auditKeyRecordStartstrEndstr", new auditKeyRecordStartstrEndstr()); processMap.put("browseKey", new browseKey()); processMap.put("browseKeys", new browseKeys()); processMap.put("browseKeyTime", new browseKeyTime()); processMap.put("browseKeyTimestr", new browseKeyTimestr()); processMap.put("browseKeysTime", new browseKeysTime()); processMap.put("browseKeysTimestr", new browseKeysTimestr()); processMap.put("chronologizeKeyRecord", new chronologizeKeyRecord()); processMap.put("chronologizeKeyRecordStart", new chronologizeKeyRecordStart()); processMap.put("chronologizeKeyRecordStartstr", new chronologizeKeyRecordStartstr()); processMap.put("chronologizeKeyRecordStartEnd", new chronologizeKeyRecordStartEnd()); processMap.put("chronologizeKeyRecordStartstrEndstr", new chronologizeKeyRecordStartstrEndstr()); processMap.put("clearRecord", new clearRecord()); processMap.put("clearRecords", new clearRecords()); processMap.put("clearKeyRecord", new clearKeyRecord()); processMap.put("clearKeysRecord", new clearKeysRecord()); processMap.put("clearKeyRecords", new clearKeyRecords()); processMap.put("clearKeysRecords", new clearKeysRecords()); processMap.put("commit", new commit()); processMap.put("describe", new describe()); processMap.put("describeTime", new describeTime()); processMap.put("describeTimestr", new describeTimestr()); processMap.put("describeRecord", new describeRecord()); processMap.put("describeRecordTime", new describeRecordTime()); processMap.put("describeRecordTimestr", new describeRecordTimestr()); processMap.put("describeRecords", new describeRecords()); processMap.put("describeRecordsTime", new describeRecordsTime()); processMap.put("describeRecordsTimestr", new describeRecordsTimestr()); processMap.put("diffRecordStart", new diffRecordStart()); processMap.put("diffRecordStartstr", new diffRecordStartstr()); processMap.put("diffRecordStartEnd", new diffRecordStartEnd()); processMap.put("diffRecordStartstrEndstr", new diffRecordStartstrEndstr()); processMap.put("diffKeyRecordStart", new diffKeyRecordStart()); processMap.put("diffKeyRecordStartstr", new diffKeyRecordStartstr()); processMap.put("diffKeyRecordStartEnd", new diffKeyRecordStartEnd()); processMap.put("diffKeyRecordStartstrEndstr", new diffKeyRecordStartstrEndstr()); processMap.put("diffKeyStart", new diffKeyStart()); processMap.put("diffKeyStartstr", new diffKeyStartstr()); processMap.put("diffKeyStartEnd", new diffKeyStartEnd()); processMap.put("diffKeyStartstrEndstr", new diffKeyStartstrEndstr()); processMap.put("invokePlugin", new invokePlugin()); processMap.put("login", new login()); processMap.put("logout", new logout()); processMap.put("stage", new stage()); processMap.put("insertJson", new insertJson()); processMap.put("insertJsonRecord", new insertJsonRecord()); processMap.put("insertJsonRecords", new insertJsonRecords()); processMap.put("removeKeyValueRecord", new removeKeyValueRecord()); processMap.put("removeKeyValueRecords", new removeKeyValueRecords()); processMap.put("setKeyValueRecord", new setKeyValueRecord()); processMap.put("setKeyValue", new setKeyValue()); processMap.put("setKeyValueRecords", new setKeyValueRecords()); processMap.put("reconcileKeyRecordValues", new reconcileKeyRecordValues()); processMap.put("inventory", new inventory()); processMap.put("selectRecord", new selectRecord()); processMap.put("selectRecords", new selectRecords()); processMap.put("selectRecordTime", new selectRecordTime()); processMap.put("selectRecordTimestr", new selectRecordTimestr()); processMap.put("selectRecordsTime", new selectRecordsTime()); processMap.put("selectRecordsTimestr", new selectRecordsTimestr()); processMap.put("selectKeyRecord", new selectKeyRecord()); processMap.put("selectKeyRecordTime", new selectKeyRecordTime()); processMap.put("selectKeyRecordTimestr", new selectKeyRecordTimestr()); processMap.put("selectKeysRecord", new selectKeysRecord()); processMap.put("selectKeysRecordTime", new selectKeysRecordTime()); processMap.put("selectKeysRecordTimestr", new selectKeysRecordTimestr()); processMap.put("selectKeysRecords", new selectKeysRecords()); processMap.put("selectKeyRecords", new selectKeyRecords()); processMap.put("selectKeyRecordsTime", new selectKeyRecordsTime()); processMap.put("selectKeyRecordsTimestr", new selectKeyRecordsTimestr()); processMap.put("selectKeysRecordsTime", new selectKeysRecordsTime()); processMap.put("selectKeysRecordsTimestr", new selectKeysRecordsTimestr()); processMap.put("selectCriteria", new selectCriteria()); processMap.put("selectCcl", new selectCcl()); processMap.put("selectCriteriaTime", new selectCriteriaTime()); processMap.put("selectCriteriaTimestr", new selectCriteriaTimestr()); processMap.put("selectCclTime", new selectCclTime()); processMap.put("selectCclTimestr", new selectCclTimestr()); processMap.put("selectKeyCriteria", new selectKeyCriteria()); processMap.put("selectKeyCcl", new selectKeyCcl()); processMap.put("selectKeyCriteriaTime", new selectKeyCriteriaTime()); processMap.put("selectKeyCriteriaTimestr", new selectKeyCriteriaTimestr()); processMap.put("selectKeyCclTime", new selectKeyCclTime()); processMap.put("selectKeyCclTimestr", new selectKeyCclTimestr()); processMap.put("selectKeysCriteria", new selectKeysCriteria()); processMap.put("selectKeysCcl", new selectKeysCcl()); processMap.put("selectKeysCriteriaTime", new selectKeysCriteriaTime()); processMap.put("selectKeysCriteriaTimestr", new selectKeysCriteriaTimestr()); processMap.put("selectKeysCclTime", new selectKeysCclTime()); processMap.put("selectKeysCclTimestr", new selectKeysCclTimestr()); processMap.put("getKeyRecord", new getKeyRecord()); processMap.put("getKeyRecordTime", new getKeyRecordTime()); processMap.put("getKeyRecordTimestr", new getKeyRecordTimestr()); processMap.put("getKeysRecord", new getKeysRecord()); processMap.put("getKeysRecordTime", new getKeysRecordTime()); processMap.put("getKeysRecordTimestr", new getKeysRecordTimestr()); processMap.put("getKeysRecords", new getKeysRecords()); processMap.put("getKeyRecords", new getKeyRecords()); processMap.put("getKeyRecordsTime", new getKeyRecordsTime()); processMap.put("getKeyRecordsTimestr", new getKeyRecordsTimestr()); processMap.put("getKeysRecordsTime", new getKeysRecordsTime()); processMap.put("getKeysRecordsTimestr", new getKeysRecordsTimestr()); processMap.put("getKeyCriteria", new getKeyCriteria()); processMap.put("getCriteria", new getCriteria()); processMap.put("getCcl", new getCcl()); processMap.put("getCriteriaTime", new getCriteriaTime()); processMap.put("getCriteriaTimestr", new getCriteriaTimestr()); processMap.put("getCclTime", new getCclTime()); processMap.put("getCclTimestr", new getCclTimestr()); processMap.put("getKeyCcl", new getKeyCcl()); processMap.put("getKeyCriteriaTime", new getKeyCriteriaTime()); processMap.put("getKeyCriteriaTimestr", new getKeyCriteriaTimestr()); processMap.put("getKeyCclTime", new getKeyCclTime()); processMap.put("getKeyCclTimestr", new getKeyCclTimestr()); processMap.put("getKeysCriteria", new getKeysCriteria()); processMap.put("getKeysCcl", new getKeysCcl()); processMap.put("getKeysCriteriaTime", new getKeysCriteriaTime()); processMap.put("getKeysCriteriaTimestr", new getKeysCriteriaTimestr()); processMap.put("getKeysCclTime", new getKeysCclTime()); processMap.put("getKeysCclTimestr", new getKeysCclTimestr()); processMap.put("verifyKeyValueRecord", new verifyKeyValueRecord()); processMap.put("verifyKeyValueRecordTime", new verifyKeyValueRecordTime()); processMap.put("verifyKeyValueRecordTimestr", new verifyKeyValueRecordTimestr()); processMap.put("jsonifyRecords", new jsonifyRecords()); processMap.put("jsonifyRecordsTime", new jsonifyRecordsTime()); processMap.put("jsonifyRecordsTimestr", new jsonifyRecordsTimestr()); processMap.put("findCriteria", new findCriteria()); processMap.put("findCcl", new findCcl()); processMap.put("findKeyOperatorValues", new findKeyOperatorValues()); processMap.put("findKeyOperatorValuesTime", new findKeyOperatorValuesTime()); processMap.put("findKeyOperatorValuesTimestr", new findKeyOperatorValuesTimestr()); processMap.put("findKeyOperatorstrValues", new findKeyOperatorstrValues()); processMap.put("findKeyOperatorstrValuesTime", new findKeyOperatorstrValuesTime()); processMap.put("findKeyOperatorstrValuesTimestr", new findKeyOperatorstrValuesTimestr()); processMap.put("search", new search()); processMap.put("revertKeysRecordsTime", new revertKeysRecordsTime()); processMap.put("revertKeysRecordsTimestr", new revertKeysRecordsTimestr()); processMap.put("revertKeysRecordTime", new revertKeysRecordTime()); processMap.put("revertKeysRecordTimestr", new revertKeysRecordTimestr()); processMap.put("revertKeyRecordsTime", new revertKeyRecordsTime()); processMap.put("revertKeyRecordsTimestr", new revertKeyRecordsTimestr()); processMap.put("revertKeyRecordTime", new revertKeyRecordTime()); processMap.put("revertKeyRecordTimestr", new revertKeyRecordTimestr()); processMap.put("pingRecords", new pingRecords()); processMap.put("pingRecord", new pingRecord()); processMap.put("verifyAndSwap", new verifyAndSwap()); processMap.put("verifyOrSet", new verifyOrSet()); processMap.put("findOrAddKeyValue", new findOrAddKeyValue()); processMap.put("findOrInsertCriteriaJson", new findOrInsertCriteriaJson()); processMap.put("findOrInsertCclJson", new findOrInsertCclJson()); processMap.put("sumKeyRecord", new sumKeyRecord()); processMap.put("sumKey", new sumKey()); processMap.put("sumKeyTime", new sumKeyTime()); processMap.put("sumKeyRecordTime", new sumKeyRecordTime()); processMap.put("sumKeyRecords", new sumKeyRecords()); processMap.put("sumKeyRecordsTime", new sumKeyRecordsTime()); processMap.put("sumKeyCriteria", new sumKeyCriteria()); processMap.put("sumKeyCcl", new sumKeyCcl()); processMap.put("sumKeyCriteriaTime", new sumKeyCriteriaTime()); processMap.put("sumKeyCclTime", new sumKeyCclTime()); processMap.put("averageKeyRecord", new averageKeyRecord()); processMap.put("averageKey", new averageKey()); processMap.put("averageKeyTime", new averageKeyTime()); processMap.put("averageKeyRecordTime", new averageKeyRecordTime()); processMap.put("averageKeyRecords", new averageKeyRecords()); processMap.put("averageKeyRecordsTime", new averageKeyRecordsTime()); processMap.put("averageKeyCriteria", new averageKeyCriteria()); processMap.put("averageKeyCcl", new averageKeyCcl()); processMap.put("averageKeyCriteriaTime", new averageKeyCriteriaTime()); processMap.put("averageKeyCclTime", new averageKeyCclTime()); processMap.put("navigateKeyRecord", new navigateKeyRecord()); processMap.put("navigateKeyRecordTime", new navigateKeyRecordTime()); processMap.put("navigateKeyRecordTimestr", new navigateKeyRecordTimestr()); processMap.put("navigateKeysRecord", new navigateKeysRecord()); processMap.put("navigateKeysRecordTime", new navigateKeysRecordTime()); processMap.put("navigateKeysRecordTimestr", new navigateKeysRecordTimestr()); processMap.put("navigateKeysRecords", new navigateKeysRecords()); processMap.put("navigateKeyRecords", new navigateKeyRecords()); processMap.put("navigateKeyRecordsTime", new navigateKeyRecordsTime()); processMap.put("navigateKeyRecordsTimestr", new navigateKeyRecordsTimestr()); processMap.put("navigateKeysRecordsTime", new navigateKeysRecordsTime()); processMap.put("navigateKeysRecordsTimestr", new navigateKeysRecordsTimestr()); processMap.put("navigateKeyCcl", new navigateKeyCcl()); processMap.put("navigateKeyCclTime", new navigateKeyCclTime()); processMap.put("navigateKeyCclTimestr", new navigateKeyCclTimestr()); processMap.put("navigateKeysCcl", new navigateKeysCcl()); processMap.put("navigateKeysCclTime", new navigateKeysCclTime()); processMap.put("navigateKeysCclTimestr", new navigateKeysCclTimestr()); processMap.put("navigateKeyCriteria", new navigateKeyCriteria()); processMap.put("navigateKeyCriteriaTime", new navigateKeyCriteriaTime()); processMap.put("navigateKeyCriteriaTimestr", new navigateKeyCriteriaTimestr()); processMap.put("navigateKeysCriteria", new navigateKeysCriteria()); processMap.put("navigateKeysCriteriaTime", new navigateKeysCriteriaTime()); processMap.put("navigateKeysCriteriaTimestr", new navigateKeysCriteriaTimestr()); processMap.put("getServerEnvironment", new getServerEnvironment()); processMap.put("getServerVersion", new getServerVersion()); processMap.put("time", new time()); processMap.put("timePhrase", new timePhrase()); return processMap; } public static class abort extends org.apache.thrift.AsyncProcessFunction { public abort() { super("abort"); } public abort_args getEmptyArgsInstance() { return new abort_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) { abort_result result = new abort_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; abort_result result = new abort_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, abort_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.abort(args.creds, args.transaction, args.environment,resultHandler); } } public static class addKeyValue extends org.apache.thrift.AsyncProcessFunction { public addKeyValue() { super("addKeyValue"); } public addKeyValue_args getEmptyArgsInstance() { return new addKeyValue_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { addKeyValue_result result = new addKeyValue_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; addKeyValue_result result = new addKeyValue_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(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, addKeyValue_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.addKeyValue(args.key, args.value, args.creds, args.transaction, args.environment,resultHandler); } } public static class addKeyValueRecord extends org.apache.thrift.AsyncProcessFunction { public addKeyValueRecord() { super("addKeyValueRecord"); } public addKeyValueRecord_args getEmptyArgsInstance() { return new addKeyValueRecord_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { addKeyValueRecord_result result = new addKeyValueRecord_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; addKeyValueRecord_result result = new addKeyValueRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(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, addKeyValueRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.addKeyValueRecord(args.key, args.value, args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class addKeyValueRecords extends org.apache.thrift.AsyncProcessFunction> { public addKeyValueRecords() { super("addKeyValueRecords"); } public addKeyValueRecords_args getEmptyArgsInstance() { return new addKeyValueRecords_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { addKeyValueRecords_result result = new addKeyValueRecords_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; addKeyValueRecords_result result = new addKeyValueRecords_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(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, addKeyValueRecords_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.addKeyValueRecords(args.key, args.value, args.records, args.creds, args.transaction, args.environment,resultHandler); } } public static class auditRecord extends org.apache.thrift.AsyncProcessFunction> { public auditRecord() { super("auditRecord"); } public auditRecord_args getEmptyArgsInstance() { return new auditRecord_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { auditRecord_result result = new auditRecord_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; auditRecord_result result = new auditRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, auditRecord_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.auditRecord(args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class auditRecordStart extends org.apache.thrift.AsyncProcessFunction> { public auditRecordStart() { super("auditRecordStart"); } public auditRecordStart_args getEmptyArgsInstance() { return new auditRecordStart_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { auditRecordStart_result result = new auditRecordStart_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; auditRecordStart_result result = new auditRecordStart_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, auditRecordStart_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.auditRecordStart(args.record, args.start, args.creds, args.transaction, args.environment,resultHandler); } } public static class auditRecordStartstr extends org.apache.thrift.AsyncProcessFunction> { public auditRecordStartstr() { super("auditRecordStartstr"); } public auditRecordStartstr_args getEmptyArgsInstance() { return new auditRecordStartstr_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { auditRecordStartstr_result result = new auditRecordStartstr_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; auditRecordStartstr_result result = new auditRecordStartstr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, auditRecordStartstr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.auditRecordStartstr(args.record, args.start, args.creds, args.transaction, args.environment,resultHandler); } } public static class auditRecordStartEnd extends org.apache.thrift.AsyncProcessFunction> { public auditRecordStartEnd() { super("auditRecordStartEnd"); } public auditRecordStartEnd_args getEmptyArgsInstance() { return new auditRecordStartEnd_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { auditRecordStartEnd_result result = new auditRecordStartEnd_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; auditRecordStartEnd_result result = new auditRecordStartEnd_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, auditRecordStartEnd_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.auditRecordStartEnd(args.record, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler); } } public static class auditRecordStartstrEndstr extends org.apache.thrift.AsyncProcessFunction> { public auditRecordStartstrEndstr() { super("auditRecordStartstrEndstr"); } public auditRecordStartstrEndstr_args getEmptyArgsInstance() { return new auditRecordStartstrEndstr_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { auditRecordStartstrEndstr_result result = new auditRecordStartstrEndstr_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; auditRecordStartstrEndstr_result result = new auditRecordStartstrEndstr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, auditRecordStartstrEndstr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.auditRecordStartstrEndstr(args.record, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler); } } public static class auditKeyRecord extends org.apache.thrift.AsyncProcessFunction> { public auditKeyRecord() { super("auditKeyRecord"); } public auditKeyRecord_args getEmptyArgsInstance() { return new auditKeyRecord_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { auditKeyRecord_result result = new auditKeyRecord_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; auditKeyRecord_result result = new auditKeyRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, auditKeyRecord_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.auditKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class auditKeyRecordStart extends org.apache.thrift.AsyncProcessFunction> { public auditKeyRecordStart() { super("auditKeyRecordStart"); } public auditKeyRecordStart_args getEmptyArgsInstance() { return new auditKeyRecordStart_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { auditKeyRecordStart_result result = new auditKeyRecordStart_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; auditKeyRecordStart_result result = new auditKeyRecordStart_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, auditKeyRecordStart_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.auditKeyRecordStart(args.key, args.record, args.start, args.creds, args.transaction, args.environment,resultHandler); } } public static class auditKeyRecordStartstr extends org.apache.thrift.AsyncProcessFunction> { public auditKeyRecordStartstr() { super("auditKeyRecordStartstr"); } public auditKeyRecordStartstr_args getEmptyArgsInstance() { return new auditKeyRecordStartstr_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { auditKeyRecordStartstr_result result = new auditKeyRecordStartstr_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; auditKeyRecordStartstr_result result = new auditKeyRecordStartstr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, auditKeyRecordStartstr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.auditKeyRecordStartstr(args.key, args.record, args.start, args.creds, args.transaction, args.environment,resultHandler); } } public static class auditKeyRecordStartEnd extends org.apache.thrift.AsyncProcessFunction> { public auditKeyRecordStartEnd() { super("auditKeyRecordStartEnd"); } public auditKeyRecordStartEnd_args getEmptyArgsInstance() { return new auditKeyRecordStartEnd_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { auditKeyRecordStartEnd_result result = new auditKeyRecordStartEnd_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; auditKeyRecordStartEnd_result result = new auditKeyRecordStartEnd_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, auditKeyRecordStartEnd_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.auditKeyRecordStartEnd(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler); } } public static class auditKeyRecordStartstrEndstr extends org.apache.thrift.AsyncProcessFunction> { public auditKeyRecordStartstrEndstr() { super("auditKeyRecordStartstrEndstr"); } public auditKeyRecordStartstrEndstr_args getEmptyArgsInstance() { return new auditKeyRecordStartstrEndstr_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { auditKeyRecordStartstrEndstr_result result = new auditKeyRecordStartstrEndstr_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; auditKeyRecordStartstrEndstr_result result = new auditKeyRecordStartstrEndstr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, auditKeyRecordStartstrEndstr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.auditKeyRecordStartstrEndstr(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler); } } public static class browseKey extends org.apache.thrift.AsyncProcessFunction>> { public browseKey() { super("browseKey"); } public browseKey_args getEmptyArgsInstance() { return new browseKey_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { browseKey_result result = new browseKey_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; browseKey_result result = new browseKey_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, browseKey_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.browseKey(args.key, args.creds, args.transaction, args.environment,resultHandler); } } public static class browseKeys extends org.apache.thrift.AsyncProcessFunction>>> { public browseKeys() { super("browseKeys"); } public browseKeys_args getEmptyArgsInstance() { return new browseKeys_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { browseKeys_result result = new browseKeys_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; browseKeys_result result = new browseKeys_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, browseKeys_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.browseKeys(args.keys, args.creds, args.transaction, args.environment,resultHandler); } } public static class browseKeyTime extends org.apache.thrift.AsyncProcessFunction>> { public browseKeyTime() { super("browseKeyTime"); } public browseKeyTime_args getEmptyArgsInstance() { return new browseKeyTime_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { browseKeyTime_result result = new browseKeyTime_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; browseKeyTime_result result = new browseKeyTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, browseKeyTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.browseKeyTime(args.key, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class browseKeyTimestr extends org.apache.thrift.AsyncProcessFunction>> { public browseKeyTimestr() { super("browseKeyTimestr"); } public browseKeyTimestr_args getEmptyArgsInstance() { return new browseKeyTimestr_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { browseKeyTimestr_result result = new browseKeyTimestr_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; browseKeyTimestr_result result = new browseKeyTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, browseKeyTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.browseKeyTimestr(args.key, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class browseKeysTime extends org.apache.thrift.AsyncProcessFunction>>> { public browseKeysTime() { super("browseKeysTime"); } public browseKeysTime_args getEmptyArgsInstance() { return new browseKeysTime_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { browseKeysTime_result result = new browseKeysTime_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; browseKeysTime_result result = new browseKeysTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, browseKeysTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.browseKeysTime(args.keys, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class browseKeysTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public browseKeysTimestr() { super("browseKeysTimestr"); } public browseKeysTimestr_args getEmptyArgsInstance() { return new browseKeysTimestr_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { browseKeysTimestr_result result = new browseKeysTimestr_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; browseKeysTimestr_result result = new browseKeysTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, browseKeysTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.browseKeysTimestr(args.keys, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class chronologizeKeyRecord extends org.apache.thrift.AsyncProcessFunction>> { public chronologizeKeyRecord() { super("chronologizeKeyRecord"); } public chronologizeKeyRecord_args getEmptyArgsInstance() { return new chronologizeKeyRecord_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { chronologizeKeyRecord_result result = new chronologizeKeyRecord_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; chronologizeKeyRecord_result result = new chronologizeKeyRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, chronologizeKeyRecord_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.chronologizeKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class chronologizeKeyRecordStart extends org.apache.thrift.AsyncProcessFunction>> { public chronologizeKeyRecordStart() { super("chronologizeKeyRecordStart"); } public chronologizeKeyRecordStart_args getEmptyArgsInstance() { return new chronologizeKeyRecordStart_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { chronologizeKeyRecordStart_result result = new chronologizeKeyRecordStart_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; chronologizeKeyRecordStart_result result = new chronologizeKeyRecordStart_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, chronologizeKeyRecordStart_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.chronologizeKeyRecordStart(args.key, args.record, args.start, args.creds, args.transaction, args.environment,resultHandler); } } public static class chronologizeKeyRecordStartstr extends org.apache.thrift.AsyncProcessFunction>> { public chronologizeKeyRecordStartstr() { super("chronologizeKeyRecordStartstr"); } public chronologizeKeyRecordStartstr_args getEmptyArgsInstance() { return new chronologizeKeyRecordStartstr_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { chronologizeKeyRecordStartstr_result result = new chronologizeKeyRecordStartstr_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; chronologizeKeyRecordStartstr_result result = new chronologizeKeyRecordStartstr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, chronologizeKeyRecordStartstr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.chronologizeKeyRecordStartstr(args.key, args.record, args.start, args.creds, args.transaction, args.environment,resultHandler); } } public static class chronologizeKeyRecordStartEnd extends org.apache.thrift.AsyncProcessFunction>> { public chronologizeKeyRecordStartEnd() { super("chronologizeKeyRecordStartEnd"); } public chronologizeKeyRecordStartEnd_args getEmptyArgsInstance() { return new chronologizeKeyRecordStartEnd_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { chronologizeKeyRecordStartEnd_result result = new chronologizeKeyRecordStartEnd_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; chronologizeKeyRecordStartEnd_result result = new chronologizeKeyRecordStartEnd_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, chronologizeKeyRecordStartEnd_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.chronologizeKeyRecordStartEnd(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler); } } public static class chronologizeKeyRecordStartstrEndstr extends org.apache.thrift.AsyncProcessFunction>> { public chronologizeKeyRecordStartstrEndstr() { super("chronologizeKeyRecordStartstrEndstr"); } public chronologizeKeyRecordStartstrEndstr_args getEmptyArgsInstance() { return new chronologizeKeyRecordStartstrEndstr_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { chronologizeKeyRecordStartstrEndstr_result result = new chronologizeKeyRecordStartstrEndstr_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; chronologizeKeyRecordStartstrEndstr_result result = new chronologizeKeyRecordStartstrEndstr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, chronologizeKeyRecordStartstrEndstr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.chronologizeKeyRecordStartstrEndstr(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler); } } public static class clearRecord extends org.apache.thrift.AsyncProcessFunction { public clearRecord() { super("clearRecord"); } public clearRecord_args getEmptyArgsInstance() { return new clearRecord_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) { clearRecord_result result = new clearRecord_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; clearRecord_result result = new clearRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, clearRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.clearRecord(args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class clearRecords extends org.apache.thrift.AsyncProcessFunction { public clearRecords() { super("clearRecords"); } public clearRecords_args getEmptyArgsInstance() { return new clearRecords_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) { clearRecords_result result = new clearRecords_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; clearRecords_result result = new clearRecords_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, clearRecords_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.clearRecords(args.records, args.creds, args.transaction, args.environment,resultHandler); } } public static class clearKeyRecord extends org.apache.thrift.AsyncProcessFunction { public clearKeyRecord() { super("clearKeyRecord"); } public clearKeyRecord_args getEmptyArgsInstance() { return new clearKeyRecord_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) { clearKeyRecord_result result = new clearKeyRecord_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; clearKeyRecord_result result = new clearKeyRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, clearKeyRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.clearKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class clearKeysRecord extends org.apache.thrift.AsyncProcessFunction { public clearKeysRecord() { super("clearKeysRecord"); } public clearKeysRecord_args getEmptyArgsInstance() { return new clearKeysRecord_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) { clearKeysRecord_result result = new clearKeysRecord_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; clearKeysRecord_result result = new clearKeysRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, clearKeysRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.clearKeysRecord(args.keys, args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class clearKeyRecords extends org.apache.thrift.AsyncProcessFunction { public clearKeyRecords() { super("clearKeyRecords"); } public clearKeyRecords_args getEmptyArgsInstance() { return new clearKeyRecords_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) { clearKeyRecords_result result = new clearKeyRecords_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; clearKeyRecords_result result = new clearKeyRecords_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, clearKeyRecords_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.clearKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment,resultHandler); } } public static class clearKeysRecords extends org.apache.thrift.AsyncProcessFunction { public clearKeysRecords() { super("clearKeysRecords"); } public clearKeysRecords_args getEmptyArgsInstance() { return new clearKeysRecords_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) { clearKeysRecords_result result = new clearKeysRecords_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; clearKeysRecords_result result = new clearKeysRecords_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, clearKeysRecords_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.clearKeysRecords(args.keys, args.records, args.creds, args.transaction, args.environment,resultHandler); } } public static class commit extends org.apache.thrift.AsyncProcessFunction { public commit() { super("commit"); } public commit_args getEmptyArgsInstance() { return new commit_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { commit_result result = new commit_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; commit_result result = new commit_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, commit_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.commit(args.creds, args.transaction, args.environment,resultHandler); } } public static class describe extends org.apache.thrift.AsyncProcessFunction> { public describe() { super("describe"); } public describe_args getEmptyArgsInstance() { return new describe_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) { describe_result result = new describe_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; describe_result result = new describe_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, describe_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.describe(args.creds, args.transaction, args.environment,resultHandler); } } public static class describeTime extends org.apache.thrift.AsyncProcessFunction> { public describeTime() { super("describeTime"); } public describeTime_args getEmptyArgsInstance() { return new describeTime_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) { describeTime_result result = new describeTime_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; describeTime_result result = new describeTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, describeTime_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.describeTime(args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class describeTimestr extends org.apache.thrift.AsyncProcessFunction> { public describeTimestr() { super("describeTimestr"); } public describeTimestr_args getEmptyArgsInstance() { return new describeTimestr_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) { describeTimestr_result result = new describeTimestr_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; describeTimestr_result result = new describeTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, describeTimestr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.describeTimestr(args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class describeRecord extends org.apache.thrift.AsyncProcessFunction> { public describeRecord() { super("describeRecord"); } public describeRecord_args getEmptyArgsInstance() { return new describeRecord_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) { describeRecord_result result = new describeRecord_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; describeRecord_result result = new describeRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, describeRecord_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.describeRecord(args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class describeRecordTime extends org.apache.thrift.AsyncProcessFunction> { public describeRecordTime() { super("describeRecordTime"); } public describeRecordTime_args getEmptyArgsInstance() { return new describeRecordTime_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) { describeRecordTime_result result = new describeRecordTime_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; describeRecordTime_result result = new describeRecordTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, describeRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.describeRecordTime(args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class describeRecordTimestr extends org.apache.thrift.AsyncProcessFunction> { public describeRecordTimestr() { super("describeRecordTimestr"); } public describeRecordTimestr_args getEmptyArgsInstance() { return new describeRecordTimestr_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) { describeRecordTimestr_result result = new describeRecordTimestr_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; describeRecordTimestr_result result = new describeRecordTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, describeRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.describeRecordTimestr(args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class describeRecords extends org.apache.thrift.AsyncProcessFunction>> { public describeRecords() { super("describeRecords"); } public describeRecords_args getEmptyArgsInstance() { return new describeRecords_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { describeRecords_result result = new describeRecords_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; describeRecords_result result = new describeRecords_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, describeRecords_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.describeRecords(args.records, args.creds, args.transaction, args.environment,resultHandler); } } public static class describeRecordsTime extends org.apache.thrift.AsyncProcessFunction>> { public describeRecordsTime() { super("describeRecordsTime"); } public describeRecordsTime_args getEmptyArgsInstance() { return new describeRecordsTime_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { describeRecordsTime_result result = new describeRecordsTime_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; describeRecordsTime_result result = new describeRecordsTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, describeRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.describeRecordsTime(args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class describeRecordsTimestr extends org.apache.thrift.AsyncProcessFunction>> { public describeRecordsTimestr() { super("describeRecordsTimestr"); } public describeRecordsTimestr_args getEmptyArgsInstance() { return new describeRecordsTimestr_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { describeRecordsTimestr_result result = new describeRecordsTimestr_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; describeRecordsTimestr_result result = new describeRecordsTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, describeRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.describeRecordsTimestr(args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class diffRecordStart extends org.apache.thrift.AsyncProcessFunction>>> { public diffRecordStart() { super("diffRecordStart"); } public diffRecordStart_args getEmptyArgsInstance() { return new diffRecordStart_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { diffRecordStart_result result = new diffRecordStart_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; diffRecordStart_result result = new diffRecordStart_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, diffRecordStart_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.diffRecordStart(args.record, args.start, args.creds, args.transaction, args.environment,resultHandler); } } public static class diffRecordStartstr extends org.apache.thrift.AsyncProcessFunction>>> { public diffRecordStartstr() { super("diffRecordStartstr"); } public diffRecordStartstr_args getEmptyArgsInstance() { return new diffRecordStartstr_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { diffRecordStartstr_result result = new diffRecordStartstr_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; diffRecordStartstr_result result = new diffRecordStartstr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, diffRecordStartstr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.diffRecordStartstr(args.record, args.start, args.creds, args.transaction, args.environment,resultHandler); } } public static class diffRecordStartEnd extends org.apache.thrift.AsyncProcessFunction>>> { public diffRecordStartEnd() { super("diffRecordStartEnd"); } public diffRecordStartEnd_args getEmptyArgsInstance() { return new diffRecordStartEnd_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { diffRecordStartEnd_result result = new diffRecordStartEnd_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; diffRecordStartEnd_result result = new diffRecordStartEnd_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, diffRecordStartEnd_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.diffRecordStartEnd(args.record, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler); } } public static class diffRecordStartstrEndstr extends org.apache.thrift.AsyncProcessFunction>>> { public diffRecordStartstrEndstr() { super("diffRecordStartstrEndstr"); } public diffRecordStartstrEndstr_args getEmptyArgsInstance() { return new diffRecordStartstrEndstr_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { diffRecordStartstrEndstr_result result = new diffRecordStartstrEndstr_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; diffRecordStartstrEndstr_result result = new diffRecordStartstrEndstr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, diffRecordStartstrEndstr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.diffRecordStartstrEndstr(args.record, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler); } } public static class diffKeyRecordStart extends org.apache.thrift.AsyncProcessFunction>> { public diffKeyRecordStart() { super("diffKeyRecordStart"); } public diffKeyRecordStart_args getEmptyArgsInstance() { return new diffKeyRecordStart_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { diffKeyRecordStart_result result = new diffKeyRecordStart_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; diffKeyRecordStart_result result = new diffKeyRecordStart_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, diffKeyRecordStart_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.diffKeyRecordStart(args.key, args.record, args.start, args.creds, args.transaction, args.environment,resultHandler); } } public static class diffKeyRecordStartstr extends org.apache.thrift.AsyncProcessFunction>> { public diffKeyRecordStartstr() { super("diffKeyRecordStartstr"); } public diffKeyRecordStartstr_args getEmptyArgsInstance() { return new diffKeyRecordStartstr_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { diffKeyRecordStartstr_result result = new diffKeyRecordStartstr_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; diffKeyRecordStartstr_result result = new diffKeyRecordStartstr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, diffKeyRecordStartstr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.diffKeyRecordStartstr(args.key, args.record, args.start, args.creds, args.transaction, args.environment,resultHandler); } } public static class diffKeyRecordStartEnd extends org.apache.thrift.AsyncProcessFunction>> { public diffKeyRecordStartEnd() { super("diffKeyRecordStartEnd"); } public diffKeyRecordStartEnd_args getEmptyArgsInstance() { return new diffKeyRecordStartEnd_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { diffKeyRecordStartEnd_result result = new diffKeyRecordStartEnd_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; diffKeyRecordStartEnd_result result = new diffKeyRecordStartEnd_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, diffKeyRecordStartEnd_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.diffKeyRecordStartEnd(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler); } } public static class diffKeyRecordStartstrEndstr extends org.apache.thrift.AsyncProcessFunction>> { public diffKeyRecordStartstrEndstr() { super("diffKeyRecordStartstrEndstr"); } public diffKeyRecordStartstrEndstr_args getEmptyArgsInstance() { return new diffKeyRecordStartstrEndstr_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { diffKeyRecordStartstrEndstr_result result = new diffKeyRecordStartstrEndstr_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; diffKeyRecordStartstrEndstr_result result = new diffKeyRecordStartstrEndstr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, diffKeyRecordStartstrEndstr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.diffKeyRecordStartstrEndstr(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler); } } public static class diffKeyStart extends org.apache.thrift.AsyncProcessFunction>>> { public diffKeyStart() { super("diffKeyStart"); } public diffKeyStart_args getEmptyArgsInstance() { return new diffKeyStart_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { diffKeyStart_result result = new diffKeyStart_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; diffKeyStart_result result = new diffKeyStart_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, diffKeyStart_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.diffKeyStart(args.key, args.start, args.creds, args.transaction, args.environment,resultHandler); } } public static class diffKeyStartstr extends org.apache.thrift.AsyncProcessFunction>>> { public diffKeyStartstr() { super("diffKeyStartstr"); } public diffKeyStartstr_args getEmptyArgsInstance() { return new diffKeyStartstr_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { diffKeyStartstr_result result = new diffKeyStartstr_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; diffKeyStartstr_result result = new diffKeyStartstr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, diffKeyStartstr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.diffKeyStartstr(args.key, args.start, args.creds, args.transaction, args.environment,resultHandler); } } public static class diffKeyStartEnd extends org.apache.thrift.AsyncProcessFunction>>> { public diffKeyStartEnd() { super("diffKeyStartEnd"); } public diffKeyStartEnd_args getEmptyArgsInstance() { return new diffKeyStartEnd_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { diffKeyStartEnd_result result = new diffKeyStartEnd_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; diffKeyStartEnd_result result = new diffKeyStartEnd_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, diffKeyStartEnd_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.diffKeyStartEnd(args.key, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler); } } public static class diffKeyStartstrEndstr extends org.apache.thrift.AsyncProcessFunction>>> { public diffKeyStartstrEndstr() { super("diffKeyStartstrEndstr"); } public diffKeyStartstrEndstr_args getEmptyArgsInstance() { return new diffKeyStartstrEndstr_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { diffKeyStartstrEndstr_result result = new diffKeyStartstrEndstr_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; diffKeyStartstrEndstr_result result = new diffKeyStartstrEndstr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, diffKeyStartstrEndstr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.diffKeyStartstrEndstr(args.key, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler); } } public static class invokePlugin extends org.apache.thrift.AsyncProcessFunction { public invokePlugin() { super("invokePlugin"); } public invokePlugin_args getEmptyArgsInstance() { return new invokePlugin_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.ComplexTObject o) { invokePlugin_result result = new invokePlugin_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; invokePlugin_result result = new invokePlugin_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(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, invokePlugin_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.invokePlugin(args.id, args.method, args.params, args.creds, args.transaction, args.environment,resultHandler); } } public static class login extends org.apache.thrift.AsyncProcessFunction { public login() { super("login"); } public login_args getEmptyArgsInstance() { return new login_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.AccessToken o) { login_result result = new login_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; login_result result = new login_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, login_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.login(args.username, args.password, args.environment,resultHandler); } } public static class logout extends org.apache.thrift.AsyncProcessFunction { public logout() { super("logout"); } public logout_args getEmptyArgsInstance() { return new logout_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) { logout_result result = new logout_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; logout_result result = new logout_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, logout_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.logout(args.token, args.environment,resultHandler); } } public static class stage extends org.apache.thrift.AsyncProcessFunction { public stage() { super("stage"); } public stage_args getEmptyArgsInstance() { return new stage_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TransactionToken o) { stage_result result = new stage_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; stage_result result = new stage_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, stage_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.stage(args.token, args.environment,resultHandler); } } public static class insertJson extends org.apache.thrift.AsyncProcessFunction> { public insertJson() { super("insertJson"); } public insertJson_args getEmptyArgsInstance() { return new insertJson_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) { insertJson_result result = new insertJson_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; insertJson_result result = new insertJson_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, insertJson_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.insertJson(args.json, args.creds, args.transaction, args.environment,resultHandler); } } public static class insertJsonRecord extends org.apache.thrift.AsyncProcessFunction { public insertJsonRecord() { super("insertJsonRecord"); } public insertJsonRecord_args getEmptyArgsInstance() { return new insertJsonRecord_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { insertJsonRecord_result result = new insertJsonRecord_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; insertJsonRecord_result result = new insertJsonRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, insertJsonRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.insertJsonRecord(args.json, args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class insertJsonRecords extends org.apache.thrift.AsyncProcessFunction> { public insertJsonRecords() { super("insertJsonRecords"); } public insertJsonRecords_args getEmptyArgsInstance() { return new insertJsonRecords_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { insertJsonRecords_result result = new insertJsonRecords_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; insertJsonRecords_result result = new insertJsonRecords_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, insertJsonRecords_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.insertJsonRecords(args.json, args.records, args.creds, args.transaction, args.environment,resultHandler); } } public static class removeKeyValueRecord extends org.apache.thrift.AsyncProcessFunction { public removeKeyValueRecord() { super("removeKeyValueRecord"); } public removeKeyValueRecord_args getEmptyArgsInstance() { return new removeKeyValueRecord_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { removeKeyValueRecord_result result = new removeKeyValueRecord_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; removeKeyValueRecord_result result = new removeKeyValueRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(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, removeKeyValueRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.removeKeyValueRecord(args.key, args.value, args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class removeKeyValueRecords extends org.apache.thrift.AsyncProcessFunction> { public removeKeyValueRecords() { super("removeKeyValueRecords"); } public removeKeyValueRecords_args getEmptyArgsInstance() { return new removeKeyValueRecords_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { removeKeyValueRecords_result result = new removeKeyValueRecords_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; removeKeyValueRecords_result result = new removeKeyValueRecords_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(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, removeKeyValueRecords_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.removeKeyValueRecords(args.key, args.value, args.records, args.creds, args.transaction, args.environment,resultHandler); } } public static class setKeyValueRecord extends org.apache.thrift.AsyncProcessFunction { public setKeyValueRecord() { super("setKeyValueRecord"); } public setKeyValueRecord_args getEmptyArgsInstance() { return new setKeyValueRecord_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) { setKeyValueRecord_result result = new setKeyValueRecord_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; setKeyValueRecord_result result = new setKeyValueRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(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, setKeyValueRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.setKeyValueRecord(args.key, args.value, args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class setKeyValue extends org.apache.thrift.AsyncProcessFunction { public setKeyValue() { super("setKeyValue"); } public setKeyValue_args getEmptyArgsInstance() { return new setKeyValue_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { setKeyValue_result result = new setKeyValue_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; setKeyValue_result result = new setKeyValue_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(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, setKeyValue_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.setKeyValue(args.key, args.value, args.creds, args.transaction, args.environment,resultHandler); } } public static class setKeyValueRecords extends org.apache.thrift.AsyncProcessFunction { public setKeyValueRecords() { super("setKeyValueRecords"); } public setKeyValueRecords_args getEmptyArgsInstance() { return new setKeyValueRecords_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) { setKeyValueRecords_result result = new setKeyValueRecords_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; setKeyValueRecords_result result = new setKeyValueRecords_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(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, setKeyValueRecords_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.setKeyValueRecords(args.key, args.value, args.records, args.creds, args.transaction, args.environment,resultHandler); } } public static class reconcileKeyRecordValues extends org.apache.thrift.AsyncProcessFunction { public reconcileKeyRecordValues() { super("reconcileKeyRecordValues"); } public reconcileKeyRecordValues_args getEmptyArgsInstance() { return new reconcileKeyRecordValues_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) { reconcileKeyRecordValues_result result = new reconcileKeyRecordValues_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; reconcileKeyRecordValues_result result = new reconcileKeyRecordValues_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(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, reconcileKeyRecordValues_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.reconcileKeyRecordValues(args.key, args.record, args.values, args.creds, args.transaction, args.environment,resultHandler); } } public static class inventory extends org.apache.thrift.AsyncProcessFunction> { public inventory() { super("inventory"); } public inventory_args getEmptyArgsInstance() { return new inventory_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) { inventory_result result = new inventory_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; inventory_result result = new inventory_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, inventory_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.inventory(args.creds, args.transaction, args.environment,resultHandler); } } public static class selectRecord extends org.apache.thrift.AsyncProcessFunction>> { public selectRecord() { super("selectRecord"); } public selectRecord_args getEmptyArgsInstance() { return new selectRecord_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { selectRecord_result result = new selectRecord_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; selectRecord_result result = new selectRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, selectRecord_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectRecord(args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectRecords extends org.apache.thrift.AsyncProcessFunction>>> { public selectRecords() { super("selectRecords"); } public selectRecords_args getEmptyArgsInstance() { return new selectRecords_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { selectRecords_result result = new selectRecords_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; selectRecords_result result = new selectRecords_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, selectRecords_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectRecords(args.records, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectRecordTime extends org.apache.thrift.AsyncProcessFunction>> { public selectRecordTime() { super("selectRecordTime"); } public selectRecordTime_args getEmptyArgsInstance() { return new selectRecordTime_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { selectRecordTime_result result = new selectRecordTime_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; selectRecordTime_result result = new selectRecordTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, selectRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectRecordTime(args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectRecordTimestr extends org.apache.thrift.AsyncProcessFunction>> { public selectRecordTimestr() { super("selectRecordTimestr"); } public selectRecordTimestr_args getEmptyArgsInstance() { return new selectRecordTimestr_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { selectRecordTimestr_result result = new selectRecordTimestr_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; selectRecordTimestr_result result = new selectRecordTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, selectRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectRecordTimestr(args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectRecordsTime extends org.apache.thrift.AsyncProcessFunction>>> { public selectRecordsTime() { super("selectRecordsTime"); } public selectRecordsTime_args getEmptyArgsInstance() { return new selectRecordsTime_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { selectRecordsTime_result result = new selectRecordsTime_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; selectRecordsTime_result result = new selectRecordsTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, selectRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectRecordsTime(args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectRecordsTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public selectRecordsTimestr() { super("selectRecordsTimestr"); } public selectRecordsTimestr_args getEmptyArgsInstance() { return new selectRecordsTimestr_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { selectRecordsTimestr_result result = new selectRecordsTimestr_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; selectRecordsTimestr_result result = new selectRecordsTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, selectRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectRecordsTimestr(args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeyRecord extends org.apache.thrift.AsyncProcessFunction> { public selectKeyRecord() { super("selectKeyRecord"); } public selectKeyRecord_args getEmptyArgsInstance() { return new selectKeyRecord_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) { selectKeyRecord_result result = new selectKeyRecord_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; selectKeyRecord_result result = new selectKeyRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, selectKeyRecord_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.selectKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeyRecordTime extends org.apache.thrift.AsyncProcessFunction> { public selectKeyRecordTime() { super("selectKeyRecordTime"); } public selectKeyRecordTime_args getEmptyArgsInstance() { return new selectKeyRecordTime_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) { selectKeyRecordTime_result result = new selectKeyRecordTime_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; selectKeyRecordTime_result result = new selectKeyRecordTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, selectKeyRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.selectKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeyRecordTimestr extends org.apache.thrift.AsyncProcessFunction> { public selectKeyRecordTimestr() { super("selectKeyRecordTimestr"); } public selectKeyRecordTimestr_args getEmptyArgsInstance() { return new selectKeyRecordTimestr_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) { selectKeyRecordTimestr_result result = new selectKeyRecordTimestr_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; selectKeyRecordTimestr_result result = new selectKeyRecordTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, selectKeyRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.selectKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeysRecord extends org.apache.thrift.AsyncProcessFunction>> { public selectKeysRecord() { super("selectKeysRecord"); } public selectKeysRecord_args getEmptyArgsInstance() { return new selectKeysRecord_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { selectKeysRecord_result result = new selectKeysRecord_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; selectKeysRecord_result result = new selectKeysRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, selectKeysRecord_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeysRecord(args.keys, args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeysRecordTime extends org.apache.thrift.AsyncProcessFunction>> { public selectKeysRecordTime() { super("selectKeysRecordTime"); } public selectKeysRecordTime_args getEmptyArgsInstance() { return new selectKeysRecordTime_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { selectKeysRecordTime_result result = new selectKeysRecordTime_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; selectKeysRecordTime_result result = new selectKeysRecordTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, selectKeysRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeysRecordTime(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeysRecordTimestr extends org.apache.thrift.AsyncProcessFunction>> { public selectKeysRecordTimestr() { super("selectKeysRecordTimestr"); } public selectKeysRecordTimestr_args getEmptyArgsInstance() { return new selectKeysRecordTimestr_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { selectKeysRecordTimestr_result result = new selectKeysRecordTimestr_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; selectKeysRecordTimestr_result result = new selectKeysRecordTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, selectKeysRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeysRecordTimestr(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeysRecords extends org.apache.thrift.AsyncProcessFunction>>> { public selectKeysRecords() { super("selectKeysRecords"); } public selectKeysRecords_args getEmptyArgsInstance() { return new selectKeysRecords_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { selectKeysRecords_result result = new selectKeysRecords_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; selectKeysRecords_result result = new selectKeysRecords_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, selectKeysRecords_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectKeysRecords(args.keys, args.records, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeyRecords extends org.apache.thrift.AsyncProcessFunction>> { public selectKeyRecords() { super("selectKeyRecords"); } public selectKeyRecords_args getEmptyArgsInstance() { return new selectKeyRecords_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { selectKeyRecords_result result = new selectKeyRecords_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; selectKeyRecords_result result = new selectKeyRecords_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, selectKeyRecords_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeyRecordsTime extends org.apache.thrift.AsyncProcessFunction>> { public selectKeyRecordsTime() { super("selectKeyRecordsTime"); } public selectKeyRecordsTime_args getEmptyArgsInstance() { return new selectKeyRecordsTime_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { selectKeyRecordsTime_result result = new selectKeyRecordsTime_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; selectKeyRecordsTime_result result = new selectKeyRecordsTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, selectKeyRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeyRecordsTimestr extends org.apache.thrift.AsyncProcessFunction>> { public selectKeyRecordsTimestr() { super("selectKeyRecordsTimestr"); } public selectKeyRecordsTimestr_args getEmptyArgsInstance() { return new selectKeyRecordsTimestr_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { selectKeyRecordsTimestr_result result = new selectKeyRecordsTimestr_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; selectKeyRecordsTimestr_result result = new selectKeyRecordsTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, selectKeyRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeysRecordsTime extends org.apache.thrift.AsyncProcessFunction>>> { public selectKeysRecordsTime() { super("selectKeysRecordsTime"); } public selectKeysRecordsTime_args getEmptyArgsInstance() { return new selectKeysRecordsTime_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { selectKeysRecordsTime_result result = new selectKeysRecordsTime_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; selectKeysRecordsTime_result result = new selectKeysRecordsTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, selectKeysRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectKeysRecordsTime(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeysRecordsTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public selectKeysRecordsTimestr() { super("selectKeysRecordsTimestr"); } public selectKeysRecordsTimestr_args getEmptyArgsInstance() { return new selectKeysRecordsTimestr_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { selectKeysRecordsTimestr_result result = new selectKeysRecordsTimestr_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; selectKeysRecordsTimestr_result result = new selectKeysRecordsTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, selectKeysRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectKeysRecordsTimestr(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectCriteria extends org.apache.thrift.AsyncProcessFunction>>> { public selectCriteria() { super("selectCriteria"); } public selectCriteria_args getEmptyArgsInstance() { return new selectCriteria_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { selectCriteria_result result = new selectCriteria_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; selectCriteria_result result = new selectCriteria_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, selectCriteria_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectCriteria(args.criteria, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectCcl extends org.apache.thrift.AsyncProcessFunction>>> { public selectCcl() { super("selectCcl"); } public selectCcl_args getEmptyArgsInstance() { return new selectCcl_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { selectCcl_result result = new selectCcl_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; selectCcl_result result = new selectCcl_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, selectCcl_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectCcl(args.ccl, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectCriteriaTime extends org.apache.thrift.AsyncProcessFunction>>> { public selectCriteriaTime() { super("selectCriteriaTime"); } public selectCriteriaTime_args getEmptyArgsInstance() { return new selectCriteriaTime_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { selectCriteriaTime_result result = new selectCriteriaTime_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; selectCriteriaTime_result result = new selectCriteriaTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, selectCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectCriteriaTime(args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public selectCriteriaTimestr() { super("selectCriteriaTimestr"); } public selectCriteriaTimestr_args getEmptyArgsInstance() { return new selectCriteriaTimestr_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { selectCriteriaTimestr_result result = new selectCriteriaTimestr_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; selectCriteriaTimestr_result result = new selectCriteriaTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, selectCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectCriteriaTimestr(args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectCclTime extends org.apache.thrift.AsyncProcessFunction>>> { public selectCclTime() { super("selectCclTime"); } public selectCclTime_args getEmptyArgsInstance() { return new selectCclTime_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { selectCclTime_result result = new selectCclTime_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; selectCclTime_result result = new selectCclTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, selectCclTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectCclTime(args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectCclTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public selectCclTimestr() { super("selectCclTimestr"); } public selectCclTimestr_args getEmptyArgsInstance() { return new selectCclTimestr_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { selectCclTimestr_result result = new selectCclTimestr_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; selectCclTimestr_result result = new selectCclTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, selectCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectCclTimestr(args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeyCriteria extends org.apache.thrift.AsyncProcessFunction>> { public selectKeyCriteria() { super("selectKeyCriteria"); } public selectKeyCriteria_args getEmptyArgsInstance() { return new selectKeyCriteria_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { selectKeyCriteria_result result = new selectKeyCriteria_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; selectKeyCriteria_result result = new selectKeyCriteria_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, selectKeyCriteria_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeyCcl extends org.apache.thrift.AsyncProcessFunction>> { public selectKeyCcl() { super("selectKeyCcl"); } public selectKeyCcl_args getEmptyArgsInstance() { return new selectKeyCcl_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { selectKeyCcl_result result = new selectKeyCcl_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; selectKeyCcl_result result = new selectKeyCcl_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, selectKeyCcl_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeyCriteriaTime extends org.apache.thrift.AsyncProcessFunction>> { public selectKeyCriteriaTime() { super("selectKeyCriteriaTime"); } public selectKeyCriteriaTime_args getEmptyArgsInstance() { return new selectKeyCriteriaTime_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { selectKeyCriteriaTime_result result = new selectKeyCriteriaTime_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; selectKeyCriteriaTime_result result = new selectKeyCriteriaTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, selectKeyCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeyCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction>> { public selectKeyCriteriaTimestr() { super("selectKeyCriteriaTimestr"); } public selectKeyCriteriaTimestr_args getEmptyArgsInstance() { return new selectKeyCriteriaTimestr_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { selectKeyCriteriaTimestr_result result = new selectKeyCriteriaTimestr_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; selectKeyCriteriaTimestr_result result = new selectKeyCriteriaTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, selectKeyCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeyCriteriaTimestr(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeyCclTime extends org.apache.thrift.AsyncProcessFunction>> { public selectKeyCclTime() { super("selectKeyCclTime"); } public selectKeyCclTime_args getEmptyArgsInstance() { return new selectKeyCclTime_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { selectKeyCclTime_result result = new selectKeyCclTime_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; selectKeyCclTime_result result = new selectKeyCclTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, selectKeyCclTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeyCclTimestr extends org.apache.thrift.AsyncProcessFunction>> { public selectKeyCclTimestr() { super("selectKeyCclTimestr"); } public selectKeyCclTimestr_args getEmptyArgsInstance() { return new selectKeyCclTimestr_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { selectKeyCclTimestr_result result = new selectKeyCclTimestr_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; selectKeyCclTimestr_result result = new selectKeyCclTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, selectKeyCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.selectKeyCclTimestr(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeysCriteria extends org.apache.thrift.AsyncProcessFunction>>> { public selectKeysCriteria() { super("selectKeysCriteria"); } public selectKeysCriteria_args getEmptyArgsInstance() { return new selectKeysCriteria_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { selectKeysCriteria_result result = new selectKeysCriteria_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; selectKeysCriteria_result result = new selectKeysCriteria_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, selectKeysCriteria_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectKeysCriteria(args.keys, args.criteria, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeysCcl extends org.apache.thrift.AsyncProcessFunction>>> { public selectKeysCcl() { super("selectKeysCcl"); } public selectKeysCcl_args getEmptyArgsInstance() { return new selectKeysCcl_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { selectKeysCcl_result result = new selectKeysCcl_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; selectKeysCcl_result result = new selectKeysCcl_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, selectKeysCcl_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectKeysCcl(args.keys, args.ccl, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeysCriteriaTime extends org.apache.thrift.AsyncProcessFunction>>> { public selectKeysCriteriaTime() { super("selectKeysCriteriaTime"); } public selectKeysCriteriaTime_args getEmptyArgsInstance() { return new selectKeysCriteriaTime_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { selectKeysCriteriaTime_result result = new selectKeysCriteriaTime_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; selectKeysCriteriaTime_result result = new selectKeysCriteriaTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, selectKeysCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectKeysCriteriaTime(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeysCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public selectKeysCriteriaTimestr() { super("selectKeysCriteriaTimestr"); } public selectKeysCriteriaTimestr_args getEmptyArgsInstance() { return new selectKeysCriteriaTimestr_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { selectKeysCriteriaTimestr_result result = new selectKeysCriteriaTimestr_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; selectKeysCriteriaTimestr_result result = new selectKeysCriteriaTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, selectKeysCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectKeysCriteriaTimestr(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeysCclTime extends org.apache.thrift.AsyncProcessFunction>>> { public selectKeysCclTime() { super("selectKeysCclTime"); } public selectKeysCclTime_args getEmptyArgsInstance() { return new selectKeysCclTime_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { selectKeysCclTime_result result = new selectKeysCclTime_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; selectKeysCclTime_result result = new selectKeysCclTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, selectKeysCclTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectKeysCclTime(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class selectKeysCclTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public selectKeysCclTimestr() { super("selectKeysCclTimestr"); } public selectKeysCclTimestr_args getEmptyArgsInstance() { return new selectKeysCclTimestr_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { selectKeysCclTimestr_result result = new selectKeysCclTimestr_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; selectKeysCclTimestr_result result = new selectKeysCclTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, selectKeysCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.selectKeysCclTimestr(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeyRecord extends org.apache.thrift.AsyncProcessFunction { public getKeyRecord() { super("getKeyRecord"); } public getKeyRecord_args getEmptyArgsInstance() { return new getKeyRecord_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { getKeyRecord_result result = new getKeyRecord_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; getKeyRecord_result result = new getKeyRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, getKeyRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.getKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeyRecordTime extends org.apache.thrift.AsyncProcessFunction { public getKeyRecordTime() { super("getKeyRecordTime"); } public getKeyRecordTime_args getEmptyArgsInstance() { return new getKeyRecordTime_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { getKeyRecordTime_result result = new getKeyRecordTime_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; getKeyRecordTime_result result = new getKeyRecordTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, getKeyRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.getKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeyRecordTimestr extends org.apache.thrift.AsyncProcessFunction { public getKeyRecordTimestr() { super("getKeyRecordTimestr"); } public getKeyRecordTimestr_args getEmptyArgsInstance() { return new getKeyRecordTimestr_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { getKeyRecordTimestr_result result = new getKeyRecordTimestr_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; getKeyRecordTimestr_result result = new getKeyRecordTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, getKeyRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.getKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeysRecord extends org.apache.thrift.AsyncProcessFunction> { public getKeysRecord() { super("getKeysRecord"); } public getKeysRecord_args getEmptyArgsInstance() { return new getKeysRecord_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { getKeysRecord_result result = new getKeysRecord_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; getKeysRecord_result result = new getKeysRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, getKeysRecord_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeysRecord(args.keys, args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeysRecordTime extends org.apache.thrift.AsyncProcessFunction> { public getKeysRecordTime() { super("getKeysRecordTime"); } public getKeysRecordTime_args getEmptyArgsInstance() { return new getKeysRecordTime_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { getKeysRecordTime_result result = new getKeysRecordTime_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; getKeysRecordTime_result result = new getKeysRecordTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, getKeysRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeysRecordTime(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeysRecordTimestr extends org.apache.thrift.AsyncProcessFunction> { public getKeysRecordTimestr() { super("getKeysRecordTimestr"); } public getKeysRecordTimestr_args getEmptyArgsInstance() { return new getKeysRecordTimestr_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { getKeysRecordTimestr_result result = new getKeysRecordTimestr_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; getKeysRecordTimestr_result result = new getKeysRecordTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, getKeysRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeysRecordTimestr(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeysRecords extends org.apache.thrift.AsyncProcessFunction>> { public getKeysRecords() { super("getKeysRecords"); } public getKeysRecords_args getEmptyArgsInstance() { return new getKeysRecords_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { getKeysRecords_result result = new getKeysRecords_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; getKeysRecords_result result = new getKeysRecords_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, getKeysRecords_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getKeysRecords(args.keys, args.records, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeyRecords extends org.apache.thrift.AsyncProcessFunction> { public getKeyRecords() { super("getKeyRecords"); } public getKeyRecords_args getEmptyArgsInstance() { return new getKeyRecords_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { getKeyRecords_result result = new getKeyRecords_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; getKeyRecords_result result = new getKeyRecords_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, getKeyRecords_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeyRecordsTime extends org.apache.thrift.AsyncProcessFunction> { public getKeyRecordsTime() { super("getKeyRecordsTime"); } public getKeyRecordsTime_args getEmptyArgsInstance() { return new getKeyRecordsTime_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { getKeyRecordsTime_result result = new getKeyRecordsTime_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; getKeyRecordsTime_result result = new getKeyRecordsTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, getKeyRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeyRecordsTimestr extends org.apache.thrift.AsyncProcessFunction> { public getKeyRecordsTimestr() { super("getKeyRecordsTimestr"); } public getKeyRecordsTimestr_args getEmptyArgsInstance() { return new getKeyRecordsTimestr_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { getKeyRecordsTimestr_result result = new getKeyRecordsTimestr_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; getKeyRecordsTimestr_result result = new getKeyRecordsTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, getKeyRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeysRecordsTime extends org.apache.thrift.AsyncProcessFunction>> { public getKeysRecordsTime() { super("getKeysRecordsTime"); } public getKeysRecordsTime_args getEmptyArgsInstance() { return new getKeysRecordsTime_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { getKeysRecordsTime_result result = new getKeysRecordsTime_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; getKeysRecordsTime_result result = new getKeysRecordsTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, getKeysRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getKeysRecordsTime(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeysRecordsTimestr extends org.apache.thrift.AsyncProcessFunction>> { public getKeysRecordsTimestr() { super("getKeysRecordsTimestr"); } public getKeysRecordsTimestr_args getEmptyArgsInstance() { return new getKeysRecordsTimestr_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { getKeysRecordsTimestr_result result = new getKeysRecordsTimestr_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; getKeysRecordsTimestr_result result = new getKeysRecordsTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, getKeysRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getKeysRecordsTimestr(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeyCriteria extends org.apache.thrift.AsyncProcessFunction> { public getKeyCriteria() { super("getKeyCriteria"); } public getKeyCriteria_args getEmptyArgsInstance() { return new getKeyCriteria_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { getKeyCriteria_result result = new getKeyCriteria_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; getKeyCriteria_result result = new getKeyCriteria_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, getKeyCriteria_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment,resultHandler); } } public static class getCriteria extends org.apache.thrift.AsyncProcessFunction>> { public getCriteria() { super("getCriteria"); } public getCriteria_args getEmptyArgsInstance() { return new getCriteria_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { getCriteria_result result = new getCriteria_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; getCriteria_result result = new getCriteria_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, getCriteria_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getCriteria(args.criteria, args.creds, args.transaction, args.environment,resultHandler); } } public static class getCcl extends org.apache.thrift.AsyncProcessFunction>> { public getCcl() { super("getCcl"); } public getCcl_args getEmptyArgsInstance() { return new getCcl_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { getCcl_result result = new getCcl_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; getCcl_result result = new getCcl_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, getCcl_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getCcl(args.ccl, args.creds, args.transaction, args.environment,resultHandler); } } public static class getCriteriaTime extends org.apache.thrift.AsyncProcessFunction>> { public getCriteriaTime() { super("getCriteriaTime"); } public getCriteriaTime_args getEmptyArgsInstance() { return new getCriteriaTime_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { getCriteriaTime_result result = new getCriteriaTime_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; getCriteriaTime_result result = new getCriteriaTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, getCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getCriteriaTime(args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction>> { public getCriteriaTimestr() { super("getCriteriaTimestr"); } public getCriteriaTimestr_args getEmptyArgsInstance() { return new getCriteriaTimestr_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { getCriteriaTimestr_result result = new getCriteriaTimestr_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; getCriteriaTimestr_result result = new getCriteriaTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, getCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getCriteriaTimestr(args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getCclTime extends org.apache.thrift.AsyncProcessFunction>> { public getCclTime() { super("getCclTime"); } public getCclTime_args getEmptyArgsInstance() { return new getCclTime_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { getCclTime_result result = new getCclTime_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; getCclTime_result result = new getCclTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, getCclTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getCclTime(args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getCclTimestr extends org.apache.thrift.AsyncProcessFunction>> { public getCclTimestr() { super("getCclTimestr"); } public getCclTimestr_args getEmptyArgsInstance() { return new getCclTimestr_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { getCclTimestr_result result = new getCclTimestr_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; getCclTimestr_result result = new getCclTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, getCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getCclTimestr(args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeyCcl extends org.apache.thrift.AsyncProcessFunction> { public getKeyCcl() { super("getKeyCcl"); } public getKeyCcl_args getEmptyArgsInstance() { return new getKeyCcl_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { getKeyCcl_result result = new getKeyCcl_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; getKeyCcl_result result = new getKeyCcl_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, getKeyCcl_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeyCriteriaTime extends org.apache.thrift.AsyncProcessFunction> { public getKeyCriteriaTime() { super("getKeyCriteriaTime"); } public getKeyCriteriaTime_args getEmptyArgsInstance() { return new getKeyCriteriaTime_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { getKeyCriteriaTime_result result = new getKeyCriteriaTime_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; getKeyCriteriaTime_result result = new getKeyCriteriaTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, getKeyCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeyCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction> { public getKeyCriteriaTimestr() { super("getKeyCriteriaTimestr"); } public getKeyCriteriaTimestr_args getEmptyArgsInstance() { return new getKeyCriteriaTimestr_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { getKeyCriteriaTimestr_result result = new getKeyCriteriaTimestr_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; getKeyCriteriaTimestr_result result = new getKeyCriteriaTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, getKeyCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeyCriteriaTimestr(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeyCclTime extends org.apache.thrift.AsyncProcessFunction> { public getKeyCclTime() { super("getKeyCclTime"); } public getKeyCclTime_args getEmptyArgsInstance() { return new getKeyCclTime_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { getKeyCclTime_result result = new getKeyCclTime_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; getKeyCclTime_result result = new getKeyCclTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, getKeyCclTime_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeyCclTimestr extends org.apache.thrift.AsyncProcessFunction> { public getKeyCclTimestr() { super("getKeyCclTimestr"); } public getKeyCclTimestr_args getEmptyArgsInstance() { return new getKeyCclTimestr_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { getKeyCclTimestr_result result = new getKeyCclTimestr_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; getKeyCclTimestr_result result = new getKeyCclTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, getKeyCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getKeyCclTimestr(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeysCriteria extends org.apache.thrift.AsyncProcessFunction>> { public getKeysCriteria() { super("getKeysCriteria"); } public getKeysCriteria_args getEmptyArgsInstance() { return new getKeysCriteria_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { getKeysCriteria_result result = new getKeysCriteria_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; getKeysCriteria_result result = new getKeysCriteria_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, getKeysCriteria_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getKeysCriteria(args.keys, args.criteria, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeysCcl extends org.apache.thrift.AsyncProcessFunction>> { public getKeysCcl() { super("getKeysCcl"); } public getKeysCcl_args getEmptyArgsInstance() { return new getKeysCcl_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { getKeysCcl_result result = new getKeysCcl_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; getKeysCcl_result result = new getKeysCcl_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, getKeysCcl_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getKeysCcl(args.keys, args.ccl, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeysCriteriaTime extends org.apache.thrift.AsyncProcessFunction>> { public getKeysCriteriaTime() { super("getKeysCriteriaTime"); } public getKeysCriteriaTime_args getEmptyArgsInstance() { return new getKeysCriteriaTime_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { getKeysCriteriaTime_result result = new getKeysCriteriaTime_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; getKeysCriteriaTime_result result = new getKeysCriteriaTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, getKeysCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getKeysCriteriaTime(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeysCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction>> { public getKeysCriteriaTimestr() { super("getKeysCriteriaTimestr"); } public getKeysCriteriaTimestr_args getEmptyArgsInstance() { return new getKeysCriteriaTimestr_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { getKeysCriteriaTimestr_result result = new getKeysCriteriaTimestr_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; getKeysCriteriaTimestr_result result = new getKeysCriteriaTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, getKeysCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getKeysCriteriaTimestr(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeysCclTime extends org.apache.thrift.AsyncProcessFunction>> { public getKeysCclTime() { super("getKeysCclTime"); } public getKeysCclTime_args getEmptyArgsInstance() { return new getKeysCclTime_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { getKeysCclTime_result result = new getKeysCclTime_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; getKeysCclTime_result result = new getKeysCclTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, getKeysCclTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getKeysCclTime(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getKeysCclTimestr extends org.apache.thrift.AsyncProcessFunction>> { public getKeysCclTimestr() { super("getKeysCclTimestr"); } public getKeysCclTimestr_args getEmptyArgsInstance() { return new getKeysCclTimestr_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { getKeysCclTimestr_result result = new getKeysCclTimestr_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; getKeysCclTimestr_result result = new getKeysCclTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, getKeysCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.getKeysCclTimestr(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class verifyKeyValueRecord extends org.apache.thrift.AsyncProcessFunction { public verifyKeyValueRecord() { super("verifyKeyValueRecord"); } public verifyKeyValueRecord_args getEmptyArgsInstance() { return new verifyKeyValueRecord_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { verifyKeyValueRecord_result result = new verifyKeyValueRecord_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; verifyKeyValueRecord_result result = new verifyKeyValueRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, verifyKeyValueRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.verifyKeyValueRecord(args.key, args.value, args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class verifyKeyValueRecordTime extends org.apache.thrift.AsyncProcessFunction { public verifyKeyValueRecordTime() { super("verifyKeyValueRecordTime"); } public verifyKeyValueRecordTime_args getEmptyArgsInstance() { return new verifyKeyValueRecordTime_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { verifyKeyValueRecordTime_result result = new verifyKeyValueRecordTime_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; verifyKeyValueRecordTime_result result = new verifyKeyValueRecordTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, verifyKeyValueRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.verifyKeyValueRecordTime(args.key, args.value, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class verifyKeyValueRecordTimestr extends org.apache.thrift.AsyncProcessFunction { public verifyKeyValueRecordTimestr() { super("verifyKeyValueRecordTimestr"); } public verifyKeyValueRecordTimestr_args getEmptyArgsInstance() { return new verifyKeyValueRecordTimestr_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { verifyKeyValueRecordTimestr_result result = new verifyKeyValueRecordTimestr_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; verifyKeyValueRecordTimestr_result result = new verifyKeyValueRecordTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, verifyKeyValueRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.verifyKeyValueRecordTimestr(args.key, args.value, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class jsonifyRecords extends org.apache.thrift.AsyncProcessFunction { public jsonifyRecords() { super("jsonifyRecords"); } public jsonifyRecords_args getEmptyArgsInstance() { return new jsonifyRecords_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) { jsonifyRecords_result result = new jsonifyRecords_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; jsonifyRecords_result result = new jsonifyRecords_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, jsonifyRecords_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.jsonifyRecords(args.records, args.identifier, args.creds, args.transaction, args.environment,resultHandler); } } public static class jsonifyRecordsTime extends org.apache.thrift.AsyncProcessFunction { public jsonifyRecordsTime() { super("jsonifyRecordsTime"); } public jsonifyRecordsTime_args getEmptyArgsInstance() { return new jsonifyRecordsTime_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) { jsonifyRecordsTime_result result = new jsonifyRecordsTime_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; jsonifyRecordsTime_result result = new jsonifyRecordsTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, jsonifyRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.jsonifyRecordsTime(args.records, args.timestamp, args.identifier, args.creds, args.transaction, args.environment,resultHandler); } } public static class jsonifyRecordsTimestr extends org.apache.thrift.AsyncProcessFunction { public jsonifyRecordsTimestr() { super("jsonifyRecordsTimestr"); } public jsonifyRecordsTimestr_args getEmptyArgsInstance() { return new jsonifyRecordsTimestr_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) { jsonifyRecordsTimestr_result result = new jsonifyRecordsTimestr_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; jsonifyRecordsTimestr_result result = new jsonifyRecordsTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, jsonifyRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.jsonifyRecordsTimestr(args.records, args.timestamp, args.identifier, args.creds, args.transaction, args.environment,resultHandler); } } public static class findCriteria extends org.apache.thrift.AsyncProcessFunction> { public findCriteria() { super("findCriteria"); } public findCriteria_args getEmptyArgsInstance() { return new findCriteria_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) { findCriteria_result result = new findCriteria_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; findCriteria_result result = new findCriteria_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, findCriteria_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.findCriteria(args.criteria, args.creds, args.transaction, args.environment,resultHandler); } } public static class findCcl extends org.apache.thrift.AsyncProcessFunction> { public findCcl() { super("findCcl"); } public findCcl_args getEmptyArgsInstance() { return new findCcl_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) { findCcl_result result = new findCcl_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; findCcl_result result = new findCcl_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, findCcl_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.findCcl(args.ccl, args.creds, args.transaction, args.environment,resultHandler); } } public static class findKeyOperatorValues extends org.apache.thrift.AsyncProcessFunction> { public findKeyOperatorValues() { super("findKeyOperatorValues"); } public findKeyOperatorValues_args getEmptyArgsInstance() { return new findKeyOperatorValues_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) { findKeyOperatorValues_result result = new findKeyOperatorValues_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; findKeyOperatorValues_result result = new findKeyOperatorValues_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, findKeyOperatorValues_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.findKeyOperatorValues(args.key, args.operator, args.values, args.creds, args.transaction, args.environment,resultHandler); } } public static class findKeyOperatorValuesTime extends org.apache.thrift.AsyncProcessFunction> { public findKeyOperatorValuesTime() { super("findKeyOperatorValuesTime"); } public findKeyOperatorValuesTime_args getEmptyArgsInstance() { return new findKeyOperatorValuesTime_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) { findKeyOperatorValuesTime_result result = new findKeyOperatorValuesTime_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; findKeyOperatorValuesTime_result result = new findKeyOperatorValuesTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, findKeyOperatorValuesTime_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.findKeyOperatorValuesTime(args.key, args.operator, args.values, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class findKeyOperatorValuesTimestr extends org.apache.thrift.AsyncProcessFunction> { public findKeyOperatorValuesTimestr() { super("findKeyOperatorValuesTimestr"); } public findKeyOperatorValuesTimestr_args getEmptyArgsInstance() { return new findKeyOperatorValuesTimestr_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) { findKeyOperatorValuesTimestr_result result = new findKeyOperatorValuesTimestr_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; findKeyOperatorValuesTimestr_result result = new findKeyOperatorValuesTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, findKeyOperatorValuesTimestr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.findKeyOperatorValuesTimestr(args.key, args.operator, args.values, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class findKeyOperatorstrValues extends org.apache.thrift.AsyncProcessFunction> { public findKeyOperatorstrValues() { super("findKeyOperatorstrValues"); } public findKeyOperatorstrValues_args getEmptyArgsInstance() { return new findKeyOperatorstrValues_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) { findKeyOperatorstrValues_result result = new findKeyOperatorstrValues_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; findKeyOperatorstrValues_result result = new findKeyOperatorstrValues_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, findKeyOperatorstrValues_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.findKeyOperatorstrValues(args.key, args.operator, args.values, args.creds, args.transaction, args.environment,resultHandler); } } public static class findKeyOperatorstrValuesTime extends org.apache.thrift.AsyncProcessFunction> { public findKeyOperatorstrValuesTime() { super("findKeyOperatorstrValuesTime"); } public findKeyOperatorstrValuesTime_args getEmptyArgsInstance() { return new findKeyOperatorstrValuesTime_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) { findKeyOperatorstrValuesTime_result result = new findKeyOperatorstrValuesTime_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; findKeyOperatorstrValuesTime_result result = new findKeyOperatorstrValuesTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, findKeyOperatorstrValuesTime_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.findKeyOperatorstrValuesTime(args.key, args.operator, args.values, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class findKeyOperatorstrValuesTimestr extends org.apache.thrift.AsyncProcessFunction> { public findKeyOperatorstrValuesTimestr() { super("findKeyOperatorstrValuesTimestr"); } public findKeyOperatorstrValuesTimestr_args getEmptyArgsInstance() { return new findKeyOperatorstrValuesTimestr_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) { findKeyOperatorstrValuesTimestr_result result = new findKeyOperatorstrValuesTimestr_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; findKeyOperatorstrValuesTimestr_result result = new findKeyOperatorstrValuesTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, findKeyOperatorstrValuesTimestr_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.findKeyOperatorstrValuesTimestr(args.key, args.operator, args.values, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class search extends org.apache.thrift.AsyncProcessFunction> { public search() { super("search"); } public search_args getEmptyArgsInstance() { return new search_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) { search_result result = new search_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; search_result result = new search_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, search_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.search(args.key, args.query, args.creds, args.transaction, args.environment,resultHandler); } } public static class revertKeysRecordsTime extends org.apache.thrift.AsyncProcessFunction { public revertKeysRecordsTime() { super("revertKeysRecordsTime"); } public revertKeysRecordsTime_args getEmptyArgsInstance() { return new revertKeysRecordsTime_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) { revertKeysRecordsTime_result result = new revertKeysRecordsTime_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; revertKeysRecordsTime_result result = new revertKeysRecordsTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, revertKeysRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.revertKeysRecordsTime(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class revertKeysRecordsTimestr extends org.apache.thrift.AsyncProcessFunction { public revertKeysRecordsTimestr() { super("revertKeysRecordsTimestr"); } public revertKeysRecordsTimestr_args getEmptyArgsInstance() { return new revertKeysRecordsTimestr_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) { revertKeysRecordsTimestr_result result = new revertKeysRecordsTimestr_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; revertKeysRecordsTimestr_result result = new revertKeysRecordsTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, revertKeysRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.revertKeysRecordsTimestr(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class revertKeysRecordTime extends org.apache.thrift.AsyncProcessFunction { public revertKeysRecordTime() { super("revertKeysRecordTime"); } public revertKeysRecordTime_args getEmptyArgsInstance() { return new revertKeysRecordTime_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) { revertKeysRecordTime_result result = new revertKeysRecordTime_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; revertKeysRecordTime_result result = new revertKeysRecordTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, revertKeysRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.revertKeysRecordTime(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class revertKeysRecordTimestr extends org.apache.thrift.AsyncProcessFunction { public revertKeysRecordTimestr() { super("revertKeysRecordTimestr"); } public revertKeysRecordTimestr_args getEmptyArgsInstance() { return new revertKeysRecordTimestr_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) { revertKeysRecordTimestr_result result = new revertKeysRecordTimestr_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; revertKeysRecordTimestr_result result = new revertKeysRecordTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, revertKeysRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.revertKeysRecordTimestr(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class revertKeyRecordsTime extends org.apache.thrift.AsyncProcessFunction { public revertKeyRecordsTime() { super("revertKeyRecordsTime"); } public revertKeyRecordsTime_args getEmptyArgsInstance() { return new revertKeyRecordsTime_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) { revertKeyRecordsTime_result result = new revertKeyRecordsTime_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; revertKeyRecordsTime_result result = new revertKeyRecordsTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, revertKeyRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.revertKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class revertKeyRecordsTimestr extends org.apache.thrift.AsyncProcessFunction { public revertKeyRecordsTimestr() { super("revertKeyRecordsTimestr"); } public revertKeyRecordsTimestr_args getEmptyArgsInstance() { return new revertKeyRecordsTimestr_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) { revertKeyRecordsTimestr_result result = new revertKeyRecordsTimestr_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; revertKeyRecordsTimestr_result result = new revertKeyRecordsTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, revertKeyRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.revertKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class revertKeyRecordTime extends org.apache.thrift.AsyncProcessFunction { public revertKeyRecordTime() { super("revertKeyRecordTime"); } public revertKeyRecordTime_args getEmptyArgsInstance() { return new revertKeyRecordTime_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) { revertKeyRecordTime_result result = new revertKeyRecordTime_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; revertKeyRecordTime_result result = new revertKeyRecordTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, revertKeyRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.revertKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class revertKeyRecordTimestr extends org.apache.thrift.AsyncProcessFunction { public revertKeyRecordTimestr() { super("revertKeyRecordTimestr"); } public revertKeyRecordTimestr_args getEmptyArgsInstance() { return new revertKeyRecordTimestr_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) { revertKeyRecordTimestr_result result = new revertKeyRecordTimestr_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; revertKeyRecordTimestr_result result = new revertKeyRecordTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, revertKeyRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.revertKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class pingRecords extends org.apache.thrift.AsyncProcessFunction> { public pingRecords() { super("pingRecords"); } public pingRecords_args getEmptyArgsInstance() { return new pingRecords_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Map o) { pingRecords_result result = new pingRecords_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; pingRecords_result result = new pingRecords_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, pingRecords_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.pingRecords(args.records, args.creds, args.transaction, args.environment,resultHandler); } } public static class pingRecord extends org.apache.thrift.AsyncProcessFunction { public pingRecord() { super("pingRecord"); } public pingRecord_args getEmptyArgsInstance() { return new pingRecord_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { pingRecord_result result = new pingRecord_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; pingRecord_result result = new pingRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, pingRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.pingRecord(args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class verifyAndSwap extends org.apache.thrift.AsyncProcessFunction { public verifyAndSwap() { super("verifyAndSwap"); } public verifyAndSwap_args getEmptyArgsInstance() { return new verifyAndSwap_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { verifyAndSwap_result result = new verifyAndSwap_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; verifyAndSwap_result result = new verifyAndSwap_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, verifyAndSwap_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.verifyAndSwap(args.key, args.expected, args.record, args.replacement, args.creds, args.transaction, args.environment,resultHandler); } } public static class verifyOrSet extends org.apache.thrift.AsyncProcessFunction { public verifyOrSet() { super("verifyOrSet"); } public verifyOrSet_args getEmptyArgsInstance() { return new verifyOrSet_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) { verifyOrSet_result result = new verifyOrSet_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; verifyOrSet_result result = new verifyOrSet_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex3 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx3IsSet(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, verifyOrSet_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.verifyOrSet(args.key, args.value, args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class findOrAddKeyValue extends org.apache.thrift.AsyncProcessFunction { public findOrAddKeyValue() { super("findOrAddKeyValue"); } public findOrAddKeyValue_args getEmptyArgsInstance() { return new findOrAddKeyValue_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { findOrAddKeyValue_result result = new findOrAddKeyValue_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; findOrAddKeyValue_result result = new findOrAddKeyValue_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.DuplicateEntryException) { result.ex3 = (com.cinchapi.concourse.thrift.DuplicateEntryException) e; result.setEx3IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.InvalidArgumentException) { result.ex4 = (com.cinchapi.concourse.thrift.InvalidArgumentException) e; result.setEx4IsSet(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, findOrAddKeyValue_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.findOrAddKeyValue(args.key, args.value, args.creds, args.transaction, args.environment,resultHandler); } } public static class findOrInsertCriteriaJson extends org.apache.thrift.AsyncProcessFunction { public findOrInsertCriteriaJson() { super("findOrInsertCriteriaJson"); } public findOrInsertCriteriaJson_args getEmptyArgsInstance() { return new findOrInsertCriteriaJson_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { findOrInsertCriteriaJson_result result = new findOrInsertCriteriaJson_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; findOrInsertCriteriaJson_result result = new findOrInsertCriteriaJson_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.DuplicateEntryException) { result.ex3 = (com.cinchapi.concourse.thrift.DuplicateEntryException) e; result.setEx3IsSet(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, findOrInsertCriteriaJson_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.findOrInsertCriteriaJson(args.criteria, args.json, args.creds, args.transaction, args.environment,resultHandler); } } public static class findOrInsertCclJson extends org.apache.thrift.AsyncProcessFunction { public findOrInsertCclJson() { super("findOrInsertCclJson"); } public findOrInsertCclJson_args getEmptyArgsInstance() { return new findOrInsertCclJson_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { findOrInsertCclJson_result result = new findOrInsertCclJson_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; findOrInsertCclJson_result result = new findOrInsertCclJson_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.DuplicateEntryException) { result.ex4 = (com.cinchapi.concourse.thrift.DuplicateEntryException) e; result.setEx4IsSet(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, findOrInsertCclJson_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.findOrInsertCclJson(args.ccl, args.json, args.creds, args.transaction, args.environment,resultHandler); } } public static class sumKeyRecord extends org.apache.thrift.AsyncProcessFunction { public sumKeyRecord() { super("sumKeyRecord"); } public sumKeyRecord_args getEmptyArgsInstance() { return new sumKeyRecord_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { sumKeyRecord_result result = new sumKeyRecord_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; sumKeyRecord_result result = new sumKeyRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, sumKeyRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class sumKey extends org.apache.thrift.AsyncProcessFunction { public sumKey() { super("sumKey"); } public sumKey_args getEmptyArgsInstance() { return new sumKey_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { sumKey_result result = new sumKey_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; sumKey_result result = new sumKey_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, sumKey_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKey(args.key, args.creds, args.transaction, args.environment,resultHandler); } } public static class sumKeyTime extends org.apache.thrift.AsyncProcessFunction { public sumKeyTime() { super("sumKeyTime"); } public sumKeyTime_args getEmptyArgsInstance() { return new sumKeyTime_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { sumKeyTime_result result = new sumKeyTime_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; sumKeyTime_result result = new sumKeyTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, sumKeyTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyTime(args.key, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class sumKeyRecordTime extends org.apache.thrift.AsyncProcessFunction { public sumKeyRecordTime() { super("sumKeyRecordTime"); } public sumKeyRecordTime_args getEmptyArgsInstance() { return new sumKeyRecordTime_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { sumKeyRecordTime_result result = new sumKeyRecordTime_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; sumKeyRecordTime_result result = new sumKeyRecordTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, sumKeyRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class sumKeyRecords extends org.apache.thrift.AsyncProcessFunction { public sumKeyRecords() { super("sumKeyRecords"); } public sumKeyRecords_args getEmptyArgsInstance() { return new sumKeyRecords_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { sumKeyRecords_result result = new sumKeyRecords_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; sumKeyRecords_result result = new sumKeyRecords_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, sumKeyRecords_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment,resultHandler); } } public static class sumKeyRecordsTime extends org.apache.thrift.AsyncProcessFunction { public sumKeyRecordsTime() { super("sumKeyRecordsTime"); } public sumKeyRecordsTime_args getEmptyArgsInstance() { return new sumKeyRecordsTime_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { sumKeyRecordsTime_result result = new sumKeyRecordsTime_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; sumKeyRecordsTime_result result = new sumKeyRecordsTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, sumKeyRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class sumKeyCriteria extends org.apache.thrift.AsyncProcessFunction { public sumKeyCriteria() { super("sumKeyCriteria"); } public sumKeyCriteria_args getEmptyArgsInstance() { return new sumKeyCriteria_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { sumKeyCriteria_result result = new sumKeyCriteria_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; sumKeyCriteria_result result = new sumKeyCriteria_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, sumKeyCriteria_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment,resultHandler); } } public static class sumKeyCcl extends org.apache.thrift.AsyncProcessFunction { public sumKeyCcl() { super("sumKeyCcl"); } public sumKeyCcl_args getEmptyArgsInstance() { return new sumKeyCcl_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { sumKeyCcl_result result = new sumKeyCcl_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; sumKeyCcl_result result = new sumKeyCcl_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, sumKeyCcl_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment,resultHandler); } } public static class sumKeyCriteriaTime extends org.apache.thrift.AsyncProcessFunction { public sumKeyCriteriaTime() { super("sumKeyCriteriaTime"); } public sumKeyCriteriaTime_args getEmptyArgsInstance() { return new sumKeyCriteriaTime_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { sumKeyCriteriaTime_result result = new sumKeyCriteriaTime_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; sumKeyCriteriaTime_result result = new sumKeyCriteriaTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, sumKeyCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class sumKeyCclTime extends org.apache.thrift.AsyncProcessFunction { public sumKeyCclTime() { super("sumKeyCclTime"); } public sumKeyCclTime_args getEmptyArgsInstance() { return new sumKeyCclTime_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { sumKeyCclTime_result result = new sumKeyCclTime_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; sumKeyCclTime_result result = new sumKeyCclTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, sumKeyCclTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.sumKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class averageKeyRecord extends org.apache.thrift.AsyncProcessFunction { public averageKeyRecord() { super("averageKeyRecord"); } public averageKeyRecord_args getEmptyArgsInstance() { return new averageKeyRecord_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { averageKeyRecord_result result = new averageKeyRecord_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; averageKeyRecord_result result = new averageKeyRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, averageKeyRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class averageKey extends org.apache.thrift.AsyncProcessFunction { public averageKey() { super("averageKey"); } public averageKey_args getEmptyArgsInstance() { return new averageKey_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { averageKey_result result = new averageKey_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; averageKey_result result = new averageKey_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, averageKey_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKey(args.key, args.creds, args.transaction, args.environment,resultHandler); } } public static class averageKeyTime extends org.apache.thrift.AsyncProcessFunction { public averageKeyTime() { super("averageKeyTime"); } public averageKeyTime_args getEmptyArgsInstance() { return new averageKeyTime_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { averageKeyTime_result result = new averageKeyTime_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; averageKeyTime_result result = new averageKeyTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, averageKeyTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyTime(args.key, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class averageKeyRecordTime extends org.apache.thrift.AsyncProcessFunction { public averageKeyRecordTime() { super("averageKeyRecordTime"); } public averageKeyRecordTime_args getEmptyArgsInstance() { return new averageKeyRecordTime_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { averageKeyRecordTime_result result = new averageKeyRecordTime_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; averageKeyRecordTime_result result = new averageKeyRecordTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, averageKeyRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class averageKeyRecords extends org.apache.thrift.AsyncProcessFunction { public averageKeyRecords() { super("averageKeyRecords"); } public averageKeyRecords_args getEmptyArgsInstance() { return new averageKeyRecords_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { averageKeyRecords_result result = new averageKeyRecords_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; averageKeyRecords_result result = new averageKeyRecords_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, averageKeyRecords_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment,resultHandler); } } public static class averageKeyRecordsTime extends org.apache.thrift.AsyncProcessFunction { public averageKeyRecordsTime() { super("averageKeyRecordsTime"); } public averageKeyRecordsTime_args getEmptyArgsInstance() { return new averageKeyRecordsTime_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { averageKeyRecordsTime_result result = new averageKeyRecordsTime_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; averageKeyRecordsTime_result result = new averageKeyRecordsTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, averageKeyRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class averageKeyCriteria extends org.apache.thrift.AsyncProcessFunction { public averageKeyCriteria() { super("averageKeyCriteria"); } public averageKeyCriteria_args getEmptyArgsInstance() { return new averageKeyCriteria_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { averageKeyCriteria_result result = new averageKeyCriteria_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; averageKeyCriteria_result result = new averageKeyCriteria_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, averageKeyCriteria_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment,resultHandler); } } public static class averageKeyCcl extends org.apache.thrift.AsyncProcessFunction { public averageKeyCcl() { super("averageKeyCcl"); } public averageKeyCcl_args getEmptyArgsInstance() { return new averageKeyCcl_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { averageKeyCcl_result result = new averageKeyCcl_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; averageKeyCcl_result result = new averageKeyCcl_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, averageKeyCcl_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment,resultHandler); } } public static class averageKeyCriteriaTime extends org.apache.thrift.AsyncProcessFunction { public averageKeyCriteriaTime() { super("averageKeyCriteriaTime"); } public averageKeyCriteriaTime_args getEmptyArgsInstance() { return new averageKeyCriteriaTime_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { averageKeyCriteriaTime_result result = new averageKeyCriteriaTime_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; averageKeyCriteriaTime_result result = new averageKeyCriteriaTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, averageKeyCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class averageKeyCclTime extends org.apache.thrift.AsyncProcessFunction { public averageKeyCclTime() { super("averageKeyCclTime"); } public averageKeyCclTime_args getEmptyArgsInstance() { return new averageKeyCclTime_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(com.cinchapi.concourse.thrift.TObject o) { averageKeyCclTime_result result = new averageKeyCclTime_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; averageKeyCclTime_result result = new averageKeyCclTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, averageKeyCclTime_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.averageKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeyRecord extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyRecord() { super("navigateKeyRecord"); } public navigateKeyRecord_args getEmptyArgsInstance() { return new navigateKeyRecord_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { navigateKeyRecord_result result = new navigateKeyRecord_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; navigateKeyRecord_result result = new navigateKeyRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, navigateKeyRecord_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeyRecordTime extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyRecordTime() { super("navigateKeyRecordTime"); } public navigateKeyRecordTime_args getEmptyArgsInstance() { return new navigateKeyRecordTime_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { navigateKeyRecordTime_result result = new navigateKeyRecordTime_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; navigateKeyRecordTime_result result = new navigateKeyRecordTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, navigateKeyRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeyRecordTimestr extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyRecordTimestr() { super("navigateKeyRecordTimestr"); } public navigateKeyRecordTimestr_args getEmptyArgsInstance() { return new navigateKeyRecordTimestr_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { navigateKeyRecordTimestr_result result = new navigateKeyRecordTimestr_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; navigateKeyRecordTimestr_result result = new navigateKeyRecordTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, navigateKeyRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeysRecord extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysRecord() { super("navigateKeysRecord"); } public navigateKeysRecord_args getEmptyArgsInstance() { return new navigateKeysRecord_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { navigateKeysRecord_result result = new navigateKeysRecord_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; navigateKeysRecord_result result = new navigateKeysRecord_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, navigateKeysRecord_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysRecord(args.keys, args.record, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeysRecordTime extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysRecordTime() { super("navigateKeysRecordTime"); } public navigateKeysRecordTime_args getEmptyArgsInstance() { return new navigateKeysRecordTime_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { navigateKeysRecordTime_result result = new navigateKeysRecordTime_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; navigateKeysRecordTime_result result = new navigateKeysRecordTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, navigateKeysRecordTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysRecordTime(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeysRecordTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysRecordTimestr() { super("navigateKeysRecordTimestr"); } public navigateKeysRecordTimestr_args getEmptyArgsInstance() { return new navigateKeysRecordTimestr_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { navigateKeysRecordTimestr_result result = new navigateKeysRecordTimestr_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; navigateKeysRecordTimestr_result result = new navigateKeysRecordTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, navigateKeysRecordTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysRecordTimestr(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeysRecords extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysRecords() { super("navigateKeysRecords"); } public navigateKeysRecords_args getEmptyArgsInstance() { return new navigateKeysRecords_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { navigateKeysRecords_result result = new navigateKeysRecords_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; navigateKeysRecords_result result = new navigateKeysRecords_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, navigateKeysRecords_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysRecords(args.keys, args.records, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeyRecords extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyRecords() { super("navigateKeyRecords"); } public navigateKeyRecords_args getEmptyArgsInstance() { return new navigateKeyRecords_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { navigateKeyRecords_result result = new navigateKeyRecords_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; navigateKeyRecords_result result = new navigateKeyRecords_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, navigateKeyRecords_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeyRecordsTime extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyRecordsTime() { super("navigateKeyRecordsTime"); } public navigateKeyRecordsTime_args getEmptyArgsInstance() { return new navigateKeyRecordsTime_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { navigateKeyRecordsTime_result result = new navigateKeyRecordsTime_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; navigateKeyRecordsTime_result result = new navigateKeyRecordsTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, navigateKeyRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeyRecordsTimestr extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyRecordsTimestr() { super("navigateKeyRecordsTimestr"); } public navigateKeyRecordsTimestr_args getEmptyArgsInstance() { return new navigateKeyRecordsTimestr_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { navigateKeyRecordsTimestr_result result = new navigateKeyRecordsTimestr_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; navigateKeyRecordsTimestr_result result = new navigateKeyRecordsTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, navigateKeyRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeysRecordsTime extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysRecordsTime() { super("navigateKeysRecordsTime"); } public navigateKeysRecordsTime_args getEmptyArgsInstance() { return new navigateKeysRecordsTime_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { navigateKeysRecordsTime_result result = new navigateKeysRecordsTime_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; navigateKeysRecordsTime_result result = new navigateKeysRecordsTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, navigateKeysRecordsTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysRecordsTime(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeysRecordsTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysRecordsTimestr() { super("navigateKeysRecordsTimestr"); } public navigateKeysRecordsTimestr_args getEmptyArgsInstance() { return new navigateKeysRecordsTimestr_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { navigateKeysRecordsTimestr_result result = new navigateKeysRecordsTimestr_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; navigateKeysRecordsTimestr_result result = new navigateKeysRecordsTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, navigateKeysRecordsTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysRecordsTimestr(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeyCcl extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyCcl() { super("navigateKeyCcl"); } public navigateKeyCcl_args getEmptyArgsInstance() { return new navigateKeyCcl_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { navigateKeyCcl_result result = new navigateKeyCcl_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; navigateKeyCcl_result result = new navigateKeyCcl_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, navigateKeyCcl_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeyCclTime extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyCclTime() { super("navigateKeyCclTime"); } public navigateKeyCclTime_args getEmptyArgsInstance() { return new navigateKeyCclTime_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { navigateKeyCclTime_result result = new navigateKeyCclTime_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; navigateKeyCclTime_result result = new navigateKeyCclTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, navigateKeyCclTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeyCclTimestr extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyCclTimestr() { super("navigateKeyCclTimestr"); } public navigateKeyCclTimestr_args getEmptyArgsInstance() { return new navigateKeyCclTimestr_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { navigateKeyCclTimestr_result result = new navigateKeyCclTimestr_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; navigateKeyCclTimestr_result result = new navigateKeyCclTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, navigateKeyCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyCclTimestr(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeysCcl extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysCcl() { super("navigateKeysCcl"); } public navigateKeysCcl_args getEmptyArgsInstance() { return new navigateKeysCcl_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { navigateKeysCcl_result result = new navigateKeysCcl_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; navigateKeysCcl_result result = new navigateKeysCcl_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, navigateKeysCcl_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysCcl(args.keys, args.ccl, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeysCclTime extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysCclTime() { super("navigateKeysCclTime"); } public navigateKeysCclTime_args getEmptyArgsInstance() { return new navigateKeysCclTime_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { navigateKeysCclTime_result result = new navigateKeysCclTime_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; navigateKeysCclTime_result result = new navigateKeysCclTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, navigateKeysCclTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysCclTime(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeysCclTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysCclTimestr() { super("navigateKeysCclTimestr"); } public navigateKeysCclTimestr_args getEmptyArgsInstance() { return new navigateKeysCclTimestr_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { navigateKeysCclTimestr_result result = new navigateKeysCclTimestr_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; navigateKeysCclTimestr_result result = new navigateKeysCclTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, navigateKeysCclTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysCclTimestr(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeyCriteria extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyCriteria() { super("navigateKeyCriteria"); } public navigateKeyCriteria_args getEmptyArgsInstance() { return new navigateKeyCriteria_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { navigateKeyCriteria_result result = new navigateKeyCriteria_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; navigateKeyCriteria_result result = new navigateKeyCriteria_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, navigateKeyCriteria_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeyCriteriaTime extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyCriteriaTime() { super("navigateKeyCriteriaTime"); } public navigateKeyCriteriaTime_args getEmptyArgsInstance() { return new navigateKeyCriteriaTime_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { navigateKeyCriteriaTime_result result = new navigateKeyCriteriaTime_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; navigateKeyCriteriaTime_result result = new navigateKeyCriteriaTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, navigateKeyCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeyCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction>> { public navigateKeyCriteriaTimestr() { super("navigateKeyCriteriaTimestr"); } public navigateKeyCriteriaTimestr_args getEmptyArgsInstance() { return new navigateKeyCriteriaTimestr_args(); } public AsyncMethodCallback>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>() { public void onComplete(Map> o) { navigateKeyCriteriaTimestr_result result = new navigateKeyCriteriaTimestr_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; navigateKeyCriteriaTimestr_result result = new navigateKeyCriteriaTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, navigateKeyCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>> resultHandler) throws TException { iface.navigateKeyCriteriaTimestr(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeysCriteria extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysCriteria() { super("navigateKeysCriteria"); } public navigateKeysCriteria_args getEmptyArgsInstance() { return new navigateKeysCriteria_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { navigateKeysCriteria_result result = new navigateKeysCriteria_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; navigateKeysCriteria_result result = new navigateKeysCriteria_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, navigateKeysCriteria_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysCriteria(args.keys, args.criteria, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeysCriteriaTime extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysCriteriaTime() { super("navigateKeysCriteriaTime"); } public navigateKeysCriteriaTime_args getEmptyArgsInstance() { return new navigateKeysCriteriaTime_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { navigateKeysCriteriaTime_result result = new navigateKeysCriteriaTime_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; navigateKeysCriteriaTime_result result = new navigateKeysCriteriaTime_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, navigateKeysCriteriaTime_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysCriteriaTime(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class navigateKeysCriteriaTimestr extends org.apache.thrift.AsyncProcessFunction>>> { public navigateKeysCriteriaTimestr() { super("navigateKeysCriteriaTimestr"); } public navigateKeysCriteriaTimestr_args getEmptyArgsInstance() { return new navigateKeysCriteriaTimestr_args(); } public AsyncMethodCallback>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>>>() { public void onComplete(Map>> o) { navigateKeysCriteriaTimestr_result result = new navigateKeysCriteriaTimestr_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; navigateKeysCriteriaTimestr_result result = new navigateKeysCriteriaTimestr_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, navigateKeysCriteriaTimestr_args args, org.apache.thrift.async.AsyncMethodCallback>>> resultHandler) throws TException { iface.navigateKeysCriteriaTimestr(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler); } } public static class getServerEnvironment extends org.apache.thrift.AsyncProcessFunction { public getServerEnvironment() { super("getServerEnvironment"); } public getServerEnvironment_args getEmptyArgsInstance() { return new getServerEnvironment_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) { getServerEnvironment_result result = new getServerEnvironment_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; getServerEnvironment_result result = new getServerEnvironment_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, getServerEnvironment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.getServerEnvironment(args.creds, args.token, args.environment,resultHandler); } } public static class getServerVersion extends org.apache.thrift.AsyncProcessFunction { public getServerVersion() { super("getServerVersion"); } public getServerVersion_args getEmptyArgsInstance() { return new getServerVersion_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) { getServerVersion_result result = new getServerVersion_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; getServerVersion_result result = new getServerVersion_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, getServerVersion_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.getServerVersion(resultHandler); } } public static class time extends org.apache.thrift.AsyncProcessFunction { public time() { super("time"); } public time_args getEmptyArgsInstance() { return new time_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { time_result result = new time_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; time_result result = new time_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(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, time_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.time(args.creds, args.token, args.environment,resultHandler); } } public static class timePhrase extends org.apache.thrift.AsyncProcessFunction { public timePhrase() { super("timePhrase"); } public timePhrase_args getEmptyArgsInstance() { return new timePhrase_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Long o) { timePhrase_result result = new timePhrase_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; timePhrase_result result = new timePhrase_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.TransactionException) { result.ex2 = (com.cinchapi.concourse.thrift.TransactionException) e; result.setEx2IsSet(true); msg = result; } else if (e instanceof com.cinchapi.concourse.thrift.ParseException) { result.ex3 = (com.cinchapi.concourse.thrift.ParseException) e; result.setEx3IsSet(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, timePhrase_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.timePhrase(args.phrase, args.creds, args.token, args.environment,resultHandler); } } } public static class abort_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("abort_args"); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new abort_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new abort_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CREDS((short)1, "creds"), TRANSACTION((short)2, "transaction"), ENVIRONMENT((short)3, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // CREDS return CREDS; case 2: // TRANSACTION return TRANSACTION; case 3: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(abort_args.class, metaDataMap); } public abort_args() { } public abort_args( com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public abort_args(abort_args other) { if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public abort_args deepCopy() { return new abort_args(this); } @Override public void clear() { this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public abort_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public abort_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public abort_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof abort_args) return this.equals((abort_args)that); return false; } public boolean equals(abort_args that) { if (that == null) return false; boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(abort_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("abort_args("); boolean first = true; sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 abort_argsStandardSchemeFactory implements SchemeFactory { public abort_argsStandardScheme getScheme() { return new abort_argsStandardScheme(); } } private static class abort_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, abort_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, abort_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class abort_argsTupleSchemeFactory implements SchemeFactory { public abort_argsTupleScheme getScheme() { return new abort_argsTupleScheme(); } } private static class abort_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, abort_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCreds()) { optionals.set(0); } if (struct.isSetTransaction()) { optionals.set(1); } if (struct.isSetEnvironment()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, abort_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(1)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(2)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class abort_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("abort_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new abort_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new abort_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(abort_result.class, metaDataMap); } public abort_result() { } public abort_result( com.cinchapi.concourse.thrift.SecurityException ex) { this(); this.ex = ex; } /** * Performs a deep copy on other. */ public abort_result(abort_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } } public abort_result deepCopy() { return new abort_result(this); } @Override public void clear() { this.ex = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public abort_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof abort_result) return this.equals((abort_result)that); return false; } public boolean equals(abort_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); return list.hashCode(); } @Override public int compareTo(abort_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("abort_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class abort_resultStandardSchemeFactory implements SchemeFactory { public abort_resultStandardScheme getScheme() { return new abort_resultStandardScheme(); } } private static class abort_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, abort_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, abort_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class abort_resultTupleSchemeFactory implements SchemeFactory { public abort_resultTupleScheme getScheme() { return new abort_resultTupleScheme(); } } private static class abort_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, abort_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetEx()) { struct.ex.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, abort_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } } } } public static class addKeyValue_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("addKeyValue_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new addKeyValue_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new addKeyValue_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), VALUE((short)2, "value"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addKeyValue_args.class, metaDataMap); } public addKeyValue_args() { } public addKeyValue_args( String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public addKeyValue_args(addKeyValue_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject(other.value); } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public addKeyValue_args deepCopy() { return new addKeyValue_args(this); } @Override public void clear() { this.key = null; this.value = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public addKeyValue_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public addKeyValue_args setValue(com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** Returns true if field value is set (has been assigned a value) and false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if (!value) { this.value = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public addKeyValue_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public addKeyValue_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public addKeyValue_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case VALUE: if (value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case VALUE: return isSetValue(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof addKeyValue_args) return this.equals((addKeyValue_args)that); return false; } public boolean equals(addKeyValue_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (!this.value.equals(that.value)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if (present_value) list.add(value); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(addKeyValue_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("addKeyValue_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("value:"); if (this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (value != null) { value.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 addKeyValue_argsStandardSchemeFactory implements SchemeFactory { public addKeyValue_argsStandardScheme getScheme() { return new addKeyValue_argsStandardScheme(); } } private static class addKeyValue_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, addKeyValue_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, addKeyValue_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class addKeyValue_argsTupleSchemeFactory implements SchemeFactory { public addKeyValue_argsTupleScheme getScheme() { return new addKeyValue_argsTupleScheme(); } } private static class addKeyValue_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, addKeyValue_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { struct.value.write(oprot); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, addKeyValue_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class addKeyValue_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("addKeyValue_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new addKeyValue_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new addKeyValue_resultTupleSchemeFactory()); } public long success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.InvalidArgumentException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(addKeyValue_result.class, metaDataMap); } public addKeyValue_result() { } public addKeyValue_result( long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public addKeyValue_result(addKeyValue_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(other.ex3); } } public addKeyValue_result deepCopy() { return new addKeyValue_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = 0; this.ex = null; this.ex2 = null; this.ex3 = null; } public long getSuccess() { return this.success; } public addKeyValue_result setSuccess(long success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public addKeyValue_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public addKeyValue_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.InvalidArgumentException getEx3() { return this.ex3; } public addKeyValue_result setEx3(com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Long)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.InvalidArgumentException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof addKeyValue_result) return this.equals((addKeyValue_result)that); return false; } public boolean equals(addKeyValue_result that) { if (that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if (present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(addKeyValue_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("addKeyValue_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class addKeyValue_resultStandardSchemeFactory implements SchemeFactory { public addKeyValue_resultStandardScheme getScheme() { return new addKeyValue_resultStandardScheme(); } } private static class addKeyValue_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, addKeyValue_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.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, addKeyValue_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeI64(struct.success); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class addKeyValue_resultTupleSchemeFactory implements SchemeFactory { public addKeyValue_resultTupleScheme getScheme() { return new addKeyValue_resultTupleScheme(); } } private static class addKeyValue_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, addKeyValue_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { oprot.writeI64(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, addKeyValue_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class addKeyValueRecord_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("addKeyValueRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new addKeyValueRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new addKeyValueRecord_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), VALUE((short)2, "value"), RECORD((short)3, "record"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // RECORD return RECORD; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addKeyValueRecord_args.class, metaDataMap); } public addKeyValueRecord_args() { } public addKeyValueRecord_args( String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public addKeyValueRecord_args(addKeyValueRecord_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject(other.value); } this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public addKeyValueRecord_args deepCopy() { return new addKeyValueRecord_args(this); } @Override public void clear() { this.key = null; this.value = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public addKeyValueRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public addKeyValueRecord_args setValue(com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** Returns true if field value is set (has been assigned a value) and false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if (!value) { this.value = null; } } public long getRecord() { return this.record; } public addKeyValueRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public addKeyValueRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public addKeyValueRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public addKeyValueRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case VALUE: if (value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case VALUE: return isSetValue(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof addKeyValueRecord_args) return this.equals((addKeyValueRecord_args)that); return false; } public boolean equals(addKeyValueRecord_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (!this.value.equals(that.value)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if (present_value) list.add(value); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(addKeyValueRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("addKeyValueRecord_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("value:"); if (this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (value != null) { value.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 addKeyValueRecord_argsStandardSchemeFactory implements SchemeFactory { public addKeyValueRecord_argsStandardScheme getScheme() { return new addKeyValueRecord_argsStandardScheme(); } } private static class addKeyValueRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, addKeyValueRecord_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, addKeyValueRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class addKeyValueRecord_argsTupleSchemeFactory implements SchemeFactory { public addKeyValueRecord_argsTupleScheme getScheme() { return new addKeyValueRecord_argsTupleScheme(); } } private static class addKeyValueRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, addKeyValueRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetRecord()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { struct.value.write(oprot); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, addKeyValueRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if (incoming.get(2)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class addKeyValueRecord_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("addKeyValueRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new addKeyValueRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new addKeyValueRecord_resultTupleSchemeFactory()); } public boolean success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.InvalidArgumentException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(addKeyValueRecord_result.class, metaDataMap); } public addKeyValueRecord_result() { } public addKeyValueRecord_result( boolean success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public addKeyValueRecord_result(addKeyValueRecord_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(other.ex3); } } public addKeyValueRecord_result deepCopy() { return new addKeyValueRecord_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = false; this.ex = null; this.ex2 = null; this.ex3 = null; } public boolean isSuccess() { return this.success; } public addKeyValueRecord_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public addKeyValueRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public addKeyValueRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.InvalidArgumentException getEx3() { return this.ex3; } public addKeyValueRecord_result setEx3(com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Boolean)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.InvalidArgumentException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof addKeyValueRecord_result) return this.equals((addKeyValueRecord_result)that); return false; } public boolean equals(addKeyValueRecord_result that) { if (that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if (present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(addKeyValueRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("addKeyValueRecord_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class addKeyValueRecord_resultStandardSchemeFactory implements SchemeFactory { public addKeyValueRecord_resultStandardScheme getScheme() { return new addKeyValueRecord_resultStandardScheme(); } } private static class addKeyValueRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, addKeyValueRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, addKeyValueRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class addKeyValueRecord_resultTupleSchemeFactory implements SchemeFactory { public addKeyValueRecord_resultTupleScheme getScheme() { return new addKeyValueRecord_resultTupleScheme(); } } private static class addKeyValueRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, addKeyValueRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { oprot.writeBool(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, addKeyValueRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class addKeyValueRecords_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("addKeyValueRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new addKeyValueRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new addKeyValueRecords_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), VALUE((short)2, "value"), RECORDS((short)3, "records"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // RECORDS return RECORDS; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addKeyValueRecords_args.class, metaDataMap); } public addKeyValueRecords_args() { } public addKeyValueRecords_args( String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public addKeyValueRecords_args(addKeyValueRecords_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject(other.value); } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public addKeyValueRecords_args deepCopy() { return new addKeyValueRecords_args(this); } @Override public void clear() { this.key = null; this.value = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public addKeyValueRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public addKeyValueRecords_args setValue(com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** Returns true if field value is set (has been assigned a value) and false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if (!value) { this.value = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public addKeyValueRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public addKeyValueRecords_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public addKeyValueRecords_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public addKeyValueRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case VALUE: if (value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case VALUE: return isSetValue(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof addKeyValueRecords_args) return this.equals((addKeyValueRecords_args)that); return false; } public boolean equals(addKeyValueRecords_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (!this.value.equals(that.value)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if (present_value) list.add(value); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(addKeyValueRecords_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("addKeyValueRecords_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("value:"); if (this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (value != null) { value.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 addKeyValueRecords_argsStandardSchemeFactory implements SchemeFactory { public addKeyValueRecords_argsStandardScheme getScheme() { return new addKeyValueRecords_argsStandardScheme(); } } private static class addKeyValueRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, addKeyValueRecords_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); struct.records = new ArrayList(_list0.size); long _elem1; for (int _i2 = 0; _i2 < _list0.size; ++_i2) { _elem1 = iprot.readI64(); struct.records.add(_elem1); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, addKeyValueRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter3 : struct.records) { oprot.writeI64(_iter3); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class addKeyValueRecords_argsTupleSchemeFactory implements SchemeFactory { public addKeyValueRecords_argsTupleScheme getScheme() { return new addKeyValueRecords_argsTupleScheme(); } } private static class addKeyValueRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, addKeyValueRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetRecords()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { struct.value.write(oprot); } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter4 : struct.records) { oprot.writeI64(_iter4); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, addKeyValueRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if (incoming.get(2)) { { org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list5.size); long _elem6; for (int _i7 = 0; _i7 < _list5.size; ++_i7) { _elem6 = iprot.readI64(); struct.records.add(_elem6); } } struct.setRecordsIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class addKeyValueRecords_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("addKeyValueRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new addKeyValueRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new addKeyValueRecords_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.InvalidArgumentException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(addKeyValueRecords_result.class, metaDataMap); } public addKeyValueRecords_result() { } public addKeyValueRecords_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public addKeyValueRecords_result(addKeyValueRecords_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(other.ex3); } } public addKeyValueRecords_result deepCopy() { return new addKeyValueRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, boolean val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public addKeyValueRecords_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public addKeyValueRecords_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public addKeyValueRecords_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.InvalidArgumentException getEx3() { return this.ex3; } public addKeyValueRecords_result setEx3(com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.InvalidArgumentException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof addKeyValueRecords_result) return this.equals((addKeyValueRecords_result)that); return false; } public boolean equals(addKeyValueRecords_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(addKeyValueRecords_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("addKeyValueRecords_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 addKeyValueRecords_resultStandardSchemeFactory implements SchemeFactory { public addKeyValueRecords_resultStandardScheme getScheme() { return new addKeyValueRecords_resultStandardScheme(); } } private static class addKeyValueRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, addKeyValueRecords_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.MAP) { { org.apache.thrift.protocol.TMap _map8 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map8.size); long _key9; boolean _val10; for (int _i11 = 0; _i11 < _map8.size; ++_i11) { _key9 = iprot.readI64(); _val10 = iprot.readBool(); struct.success.put(_key9, _val10); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, addKeyValueRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, struct.success.size())); for (Map.Entry _iter12 : struct.success.entrySet()) { oprot.writeI64(_iter12.getKey()); oprot.writeBool(_iter12.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class addKeyValueRecords_resultTupleSchemeFactory implements SchemeFactory { public addKeyValueRecords_resultTupleScheme getScheme() { return new addKeyValueRecords_resultTupleScheme(); } } private static class addKeyValueRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, addKeyValueRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter13 : struct.success.entrySet()) { oprot.writeI64(_iter13.getKey()); oprot.writeBool(_iter13.getValue()); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, addKeyValueRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map14 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, iprot.readI32()); struct.success = new LinkedHashMap(2*_map14.size); long _key15; boolean _val16; for (int _i17 = 0; _i17 < _map14.size; ++_i17) { _key15 = iprot.readI64(); _val16 = iprot.readBool(); struct.success.put(_key15, _val16); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class auditRecord_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("auditRecord_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditRecord_argsTupleSchemeFactory()); } public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short)1, "record"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORD return RECORD; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(auditRecord_args.class, metaDataMap); } public auditRecord_args() { } public auditRecord_args( long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public auditRecord_args(auditRecord_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public auditRecord_args deepCopy() { return new auditRecord_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public auditRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public auditRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public auditRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public auditRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof auditRecord_args) return this.equals((auditRecord_args)that); return false; } public boolean equals(auditRecord_args that) { if (that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(auditRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("auditRecord_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 auditRecord_argsStandardSchemeFactory implements SchemeFactory { public auditRecord_argsStandardScheme getScheme() { return new auditRecord_argsStandardScheme(); } } private static class auditRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditRecord_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: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, auditRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditRecord_argsTupleSchemeFactory implements SchemeFactory { public auditRecord_argsTupleScheme getScheme() { return new auditRecord_argsTupleScheme(); } } private static class auditRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecord()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class auditRecord_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("auditRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditRecord_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(auditRecord_result.class, metaDataMap); } public auditRecord_result() { } public auditRecord_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public auditRecord_result(auditRecord_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public auditRecord_result deepCopy() { return new auditRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, String val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public auditRecord_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public auditRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public auditRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof auditRecord_result) return this.equals((auditRecord_result)that); return false; } public boolean equals(auditRecord_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(auditRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("auditRecord_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 auditRecord_resultStandardSchemeFactory implements SchemeFactory { public auditRecord_resultStandardScheme getScheme() { return new auditRecord_resultStandardScheme(); } } private static class auditRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditRecord_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.MAP) { { org.apache.thrift.protocol.TMap _map18 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map18.size); long _key19; String _val20; for (int _i21 = 0; _i21 < _map18.size; ++_i21) { _key19 = iprot.readI64(); _val20 = iprot.readString(); struct.success.put(_key19, _val20); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, auditRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (Map.Entry _iter22 : struct.success.entrySet()) { oprot.writeI64(_iter22.getKey()); oprot.writeString(_iter22.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditRecord_resultTupleSchemeFactory implements SchemeFactory { public auditRecord_resultTupleScheme getScheme() { return new auditRecord_resultTupleScheme(); } } private static class auditRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter23 : struct.success.entrySet()) { oprot.writeI64(_iter23.getKey()); oprot.writeString(_iter23.getValue()); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map24 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashMap(2*_map24.size); long _key25; String _val26; for (int _i27 = 0; _i27 < _map24.size; ++_i27) { _key25 = iprot.readI64(); _val26 = iprot.readString(); struct.success.put(_key25, _val26); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class auditRecordStart_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("auditRecordStart_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditRecordStart_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditRecordStart_argsTupleSchemeFactory()); } public long record; // required public long start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short)1, "record"), START((short)2, "start"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORD return RECORD; case 2: // START return START; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __START_ISSET_ID = 1; 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.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(auditRecordStart_args.class, metaDataMap); } public auditRecordStart_args() { } public auditRecordStart_args( long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.start = start; setStartIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public auditRecordStart_args(auditRecordStart_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; this.start = other.start; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public auditRecordStart_args deepCopy() { return new auditRecordStart_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; setStartIsSet(false); this.start = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public auditRecordStart_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getStart() { return this.start; } public auditRecordStart_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public auditRecordStart_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public auditRecordStart_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public auditRecordStart_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORD: return isSetRecord(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof auditRecordStart_args) return this.equals((auditRecordStart_args)that); return false; } public boolean equals(auditRecordStart_args that) { if (that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_start = true; boolean that_present_start = true; if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (this.start != that.start) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_start = true; list.add(present_start); if (present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(auditRecordStart_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("auditRecordStart_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 auditRecordStart_argsStandardSchemeFactory implements SchemeFactory { public auditRecordStart_argsStandardScheme getScheme() { return new auditRecordStart_argsStandardScheme(); } } private static class auditRecordStart_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditRecordStart_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: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, auditRecordStart_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditRecordStart_argsTupleSchemeFactory implements SchemeFactory { public auditRecordStart_argsTupleScheme getScheme() { return new auditRecordStart_argsTupleScheme(); } } private static class auditRecordStart_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditRecordStart_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecord()) { optionals.set(0); } if (struct.isSetStart()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetStart()) { oprot.writeI64(struct.start); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditRecordStart_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(1)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class auditRecordStart_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("auditRecordStart_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditRecordStart_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditRecordStart_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(auditRecordStart_result.class, metaDataMap); } public auditRecordStart_result() { } public auditRecordStart_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public auditRecordStart_result(auditRecordStart_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public auditRecordStart_result deepCopy() { return new auditRecordStart_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, String val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public auditRecordStart_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public auditRecordStart_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public auditRecordStart_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof auditRecordStart_result) return this.equals((auditRecordStart_result)that); return false; } public boolean equals(auditRecordStart_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(auditRecordStart_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("auditRecordStart_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 auditRecordStart_resultStandardSchemeFactory implements SchemeFactory { public auditRecordStart_resultStandardScheme getScheme() { return new auditRecordStart_resultStandardScheme(); } } private static class auditRecordStart_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditRecordStart_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.MAP) { { org.apache.thrift.protocol.TMap _map28 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map28.size); long _key29; String _val30; for (int _i31 = 0; _i31 < _map28.size; ++_i31) { _key29 = iprot.readI64(); _val30 = iprot.readString(); struct.success.put(_key29, _val30); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, auditRecordStart_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (Map.Entry _iter32 : struct.success.entrySet()) { oprot.writeI64(_iter32.getKey()); oprot.writeString(_iter32.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditRecordStart_resultTupleSchemeFactory implements SchemeFactory { public auditRecordStart_resultTupleScheme getScheme() { return new auditRecordStart_resultTupleScheme(); } } private static class auditRecordStart_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditRecordStart_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter33 : struct.success.entrySet()) { oprot.writeI64(_iter33.getKey()); oprot.writeString(_iter33.getValue()); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditRecordStart_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map34 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashMap(2*_map34.size); long _key35; String _val36; for (int _i37 = 0; _i37 < _map34.size; ++_i37) { _key35 = iprot.readI64(); _val36 = iprot.readString(); struct.success.put(_key35, _val36); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class auditRecordStartstr_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("auditRecordStartstr_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditRecordStartstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditRecordStartstr_argsTupleSchemeFactory()); } public long record; // required public String start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short)1, "record"), START((short)2, "start"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORD return RECORD; case 2: // START return START; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(auditRecordStartstr_args.class, metaDataMap); } public auditRecordStartstr_args() { } public auditRecordStartstr_args( long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public auditRecordStartstr_args(auditRecordStartstr_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if (other.isSetStart()) { this.start = other.start; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public auditRecordStartstr_args deepCopy() { return new auditRecordStartstr_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.start = null; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public auditRecordStartstr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getStart() { return this.start; } public auditRecordStartstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if (!value) { this.start = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public auditRecordStartstr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public auditRecordStartstr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public auditRecordStartstr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORD: return isSetRecord(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof auditRecordStartstr_args) return this.equals((auditRecordStartstr_args)that); return false; } public boolean equals(auditRecordStartstr_args that) { if (that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (!this.start.equals(that.start)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_start = true && (isSetStart()); list.add(present_start); if (present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(auditRecordStartstr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("auditRecordStartstr_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("start:"); if (this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 auditRecordStartstr_argsStandardSchemeFactory implements SchemeFactory { public auditRecordStartstr_argsStandardScheme getScheme() { return new auditRecordStartstr_argsStandardScheme(); } } private static class auditRecordStartstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditRecordStartstr_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: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, auditRecordStartstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditRecordStartstr_argsTupleSchemeFactory implements SchemeFactory { public auditRecordStartstr_argsTupleScheme getScheme() { return new auditRecordStartstr_argsTupleScheme(); } } private static class auditRecordStartstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditRecordStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecord()) { optionals.set(0); } if (struct.isSetStart()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetStart()) { oprot.writeString(struct.start); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditRecordStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(1)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class auditRecordStartstr_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("auditRecordStartstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditRecordStartstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditRecordStartstr_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(auditRecordStartstr_result.class, metaDataMap); } public auditRecordStartstr_result() { } public auditRecordStartstr_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public auditRecordStartstr_result(auditRecordStartstr_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public auditRecordStartstr_result deepCopy() { return new auditRecordStartstr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, String val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public auditRecordStartstr_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public auditRecordStartstr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public auditRecordStartstr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public auditRecordStartstr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof auditRecordStartstr_result) return this.equals((auditRecordStartstr_result)that); return false; } public boolean equals(auditRecordStartstr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(auditRecordStartstr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("auditRecordStartstr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 auditRecordStartstr_resultStandardSchemeFactory implements SchemeFactory { public auditRecordStartstr_resultStandardScheme getScheme() { return new auditRecordStartstr_resultStandardScheme(); } } private static class auditRecordStartstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditRecordStartstr_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.MAP) { { org.apache.thrift.protocol.TMap _map38 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map38.size); long _key39; String _val40; for (int _i41 = 0; _i41 < _map38.size; ++_i41) { _key39 = iprot.readI64(); _val40 = iprot.readString(); struct.success.put(_key39, _val40); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, auditRecordStartstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (Map.Entry _iter42 : struct.success.entrySet()) { oprot.writeI64(_iter42.getKey()); oprot.writeString(_iter42.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditRecordStartstr_resultTupleSchemeFactory implements SchemeFactory { public auditRecordStartstr_resultTupleScheme getScheme() { return new auditRecordStartstr_resultTupleScheme(); } } private static class auditRecordStartstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditRecordStartstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter43 : struct.success.entrySet()) { oprot.writeI64(_iter43.getKey()); oprot.writeString(_iter43.getValue()); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditRecordStartstr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map44 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashMap(2*_map44.size); long _key45; String _val46; for (int _i47 = 0; _i47 < _map44.size; ++_i47) { _key45 = iprot.readI64(); _val46 = iprot.readString(); struct.success.put(_key45, _val46); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class auditRecordStartEnd_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("auditRecordStartEnd_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField("tend", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditRecordStartEnd_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditRecordStartEnd_argsTupleSchemeFactory()); } public long record; // required public long start; // required public long tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short)1, "record"), START((short)2, "start"), TEND((short)3, "tend"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORD return RECORD; case 2: // START return START; case 3: // TEND return TEND; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __START_ISSET_ID = 1; private static final int __TEND_ISSET_ID = 2; 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.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(auditRecordStartEnd_args.class, metaDataMap); } public auditRecordStartEnd_args() { } public auditRecordStartEnd_args( long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.start = start; setStartIsSet(true); this.tend = tend; setTendIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public auditRecordStartEnd_args(auditRecordStartEnd_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; this.start = other.start; this.tend = other.tend; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public auditRecordStartEnd_args deepCopy() { return new auditRecordStartEnd_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; setStartIsSet(false); this.start = 0; setTendIsSet(false); this.tend = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public auditRecordStartEnd_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getStart() { return this.start; } public auditRecordStartEnd_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public long getTend() { return this.tend; } public auditRecordStartEnd_args setTend(long tend) { this.tend = tend; setTendIsSet(true); return this; } public void unsetTend() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TEND_ISSET_ID); } /** Returns true if field tend is set (has been assigned a value) and false otherwise */ public boolean isSetTend() { return EncodingUtils.testBit(__isset_bitfield, __TEND_ISSET_ID); } public void setTendIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TEND_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public auditRecordStartEnd_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public auditRecordStartEnd_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public auditRecordStartEnd_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((Long)value); } break; case TEND: if (value == null) { unsetTend(); } else { setTend((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORD: return isSetRecord(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof auditRecordStartEnd_args) return this.equals((auditRecordStartEnd_args)that); return false; } public boolean equals(auditRecordStartEnd_args that) { if (that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_start = true; boolean that_present_start = true; if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (this.start != that.start) return false; } boolean this_present_tend = true; boolean that_present_tend = true; if (this_present_tend || that_present_tend) { if (!(this_present_tend && that_present_tend)) return false; if (this.tend != that.tend) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_start = true; list.add(present_start); if (present_start) list.add(start); boolean present_tend = true; list.add(present_tend); if (present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(auditRecordStartEnd_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()).compareTo(other.isSetTend()); if (lastComparison != 0) { return lastComparison; } if (isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tend, other.tend); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("auditRecordStartEnd_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if (!first) sb.append(", "); sb.append("tend:"); sb.append(this.tend); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 auditRecordStartEnd_argsStandardSchemeFactory implements SchemeFactory { public auditRecordStartEnd_argsStandardScheme getScheme() { return new auditRecordStartEnd_argsStandardScheme(); } } private static class auditRecordStartEnd_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditRecordStartEnd_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: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TEND if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, auditRecordStartEnd_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeI64(struct.tend); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditRecordStartEnd_argsTupleSchemeFactory implements SchemeFactory { public auditRecordStartEnd_argsTupleScheme getScheme() { return new auditRecordStartEnd_argsTupleScheme(); } } private static class auditRecordStartEnd_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditRecordStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecord()) { optionals.set(0); } if (struct.isSetStart()) { optionals.set(1); } if (struct.isSetTend()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetStart()) { oprot.writeI64(struct.start); } if (struct.isSetTend()) { oprot.writeI64(struct.tend); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditRecordStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(1)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if (incoming.get(2)) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class auditRecordStartEnd_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("auditRecordStartEnd_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditRecordStartEnd_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditRecordStartEnd_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(auditRecordStartEnd_result.class, metaDataMap); } public auditRecordStartEnd_result() { } public auditRecordStartEnd_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public auditRecordStartEnd_result(auditRecordStartEnd_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public auditRecordStartEnd_result deepCopy() { return new auditRecordStartEnd_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, String val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public auditRecordStartEnd_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public auditRecordStartEnd_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public auditRecordStartEnd_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof auditRecordStartEnd_result) return this.equals((auditRecordStartEnd_result)that); return false; } public boolean equals(auditRecordStartEnd_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(auditRecordStartEnd_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("auditRecordStartEnd_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 auditRecordStartEnd_resultStandardSchemeFactory implements SchemeFactory { public auditRecordStartEnd_resultStandardScheme getScheme() { return new auditRecordStartEnd_resultStandardScheme(); } } private static class auditRecordStartEnd_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditRecordStartEnd_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.MAP) { { org.apache.thrift.protocol.TMap _map48 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map48.size); long _key49; String _val50; for (int _i51 = 0; _i51 < _map48.size; ++_i51) { _key49 = iprot.readI64(); _val50 = iprot.readString(); struct.success.put(_key49, _val50); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, auditRecordStartEnd_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (Map.Entry _iter52 : struct.success.entrySet()) { oprot.writeI64(_iter52.getKey()); oprot.writeString(_iter52.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditRecordStartEnd_resultTupleSchemeFactory implements SchemeFactory { public auditRecordStartEnd_resultTupleScheme getScheme() { return new auditRecordStartEnd_resultTupleScheme(); } } private static class auditRecordStartEnd_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditRecordStartEnd_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter53 : struct.success.entrySet()) { oprot.writeI64(_iter53.getKey()); oprot.writeString(_iter53.getValue()); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditRecordStartEnd_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map54 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashMap(2*_map54.size); long _key55; String _val56; for (int _i57 = 0; _i57 < _map54.size; ++_i57) { _key55 = iprot.readI64(); _val56 = iprot.readString(); struct.success.put(_key55, _val56); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class auditRecordStartstrEndstr_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("auditRecordStartstrEndstr_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField("tend", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditRecordStartstrEndstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditRecordStartstrEndstr_argsTupleSchemeFactory()); } public long record; // required public String start; // required public String tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short)1, "record"), START((short)2, "start"), TEND((short)3, "tend"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORD return RECORD; case 2: // START return START; case 3: // TEND return TEND; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(auditRecordStartstrEndstr_args.class, metaDataMap); } public auditRecordStartstrEndstr_args() { } public auditRecordStartstrEndstr_args( long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public auditRecordStartstrEndstr_args(auditRecordStartstrEndstr_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if (other.isSetStart()) { this.start = other.start; } if (other.isSetTend()) { this.tend = other.tend; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public auditRecordStartstrEndstr_args deepCopy() { return new auditRecordStartstrEndstr_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.start = null; this.tend = null; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public auditRecordStartstrEndstr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getStart() { return this.start; } public auditRecordStartstrEndstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if (!value) { this.start = null; } } public String getTend() { return this.tend; } public auditRecordStartstrEndstr_args setTend(String tend) { this.tend = tend; return this; } public void unsetTend() { this.tend = null; } /** Returns true if field tend is set (has been assigned a value) and false otherwise */ public boolean isSetTend() { return this.tend != null; } public void setTendIsSet(boolean value) { if (!value) { this.tend = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public auditRecordStartstrEndstr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public auditRecordStartstrEndstr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public auditRecordStartstrEndstr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((String)value); } break; case TEND: if (value == null) { unsetTend(); } else { setTend((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORD: return isSetRecord(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof auditRecordStartstrEndstr_args) return this.equals((auditRecordStartstrEndstr_args)that); return false; } public boolean equals(auditRecordStartstrEndstr_args that) { if (that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (!this.start.equals(that.start)) return false; } boolean this_present_tend = true && this.isSetTend(); boolean that_present_tend = true && that.isSetTend(); if (this_present_tend || that_present_tend) { if (!(this_present_tend && that_present_tend)) return false; if (!this.tend.equals(that.tend)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_start = true && (isSetStart()); list.add(present_start); if (present_start) list.add(start); boolean present_tend = true && (isSetTend()); list.add(present_tend); if (present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(auditRecordStartstrEndstr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()).compareTo(other.isSetTend()); if (lastComparison != 0) { return lastComparison; } if (isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tend, other.tend); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("auditRecordStartstrEndstr_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("start:"); if (this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if (!first) sb.append(", "); sb.append("tend:"); if (this.tend == null) { sb.append("null"); } else { sb.append(this.tend); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 auditRecordStartstrEndstr_argsStandardSchemeFactory implements SchemeFactory { public auditRecordStartstrEndstr_argsStandardScheme getScheme() { return new auditRecordStartstrEndstr_argsStandardScheme(); } } private static class auditRecordStartstrEndstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditRecordStartstrEndstr_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: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TEND if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, auditRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if (struct.tend != null) { oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeString(struct.tend); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditRecordStartstrEndstr_argsTupleSchemeFactory implements SchemeFactory { public auditRecordStartstrEndstr_argsTupleScheme getScheme() { return new auditRecordStartstrEndstr_argsTupleScheme(); } } private static class auditRecordStartstrEndstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecord()) { optionals.set(0); } if (struct.isSetStart()) { optionals.set(1); } if (struct.isSetTend()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetStart()) { oprot.writeString(struct.start); } if (struct.isSetTend()) { oprot.writeString(struct.tend); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(1)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if (incoming.get(2)) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class auditRecordStartstrEndstr_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("auditRecordStartstrEndstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditRecordStartstrEndstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditRecordStartstrEndstr_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(auditRecordStartstrEndstr_result.class, metaDataMap); } public auditRecordStartstrEndstr_result() { } public auditRecordStartstrEndstr_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public auditRecordStartstrEndstr_result(auditRecordStartstrEndstr_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public auditRecordStartstrEndstr_result deepCopy() { return new auditRecordStartstrEndstr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, String val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public auditRecordStartstrEndstr_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public auditRecordStartstrEndstr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public auditRecordStartstrEndstr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public auditRecordStartstrEndstr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof auditRecordStartstrEndstr_result) return this.equals((auditRecordStartstrEndstr_result)that); return false; } public boolean equals(auditRecordStartstrEndstr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(auditRecordStartstrEndstr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("auditRecordStartstrEndstr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 auditRecordStartstrEndstr_resultStandardSchemeFactory implements SchemeFactory { public auditRecordStartstrEndstr_resultStandardScheme getScheme() { return new auditRecordStartstrEndstr_resultStandardScheme(); } } private static class auditRecordStartstrEndstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditRecordStartstrEndstr_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.MAP) { { org.apache.thrift.protocol.TMap _map58 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map58.size); long _key59; String _val60; for (int _i61 = 0; _i61 < _map58.size; ++_i61) { _key59 = iprot.readI64(); _val60 = iprot.readString(); struct.success.put(_key59, _val60); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, auditRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (Map.Entry _iter62 : struct.success.entrySet()) { oprot.writeI64(_iter62.getKey()); oprot.writeString(_iter62.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditRecordStartstrEndstr_resultTupleSchemeFactory implements SchemeFactory { public auditRecordStartstrEndstr_resultTupleScheme getScheme() { return new auditRecordStartstrEndstr_resultTupleScheme(); } } private static class auditRecordStartstrEndstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter63 : struct.success.entrySet()) { oprot.writeI64(_iter63.getKey()); oprot.writeString(_iter63.getValue()); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map64 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashMap(2*_map64.size); long _key65; String _val66; for (int _i67 = 0; _i67 < _map64.size; ++_i67) { _key65 = iprot.readI64(); _val66 = iprot.readString(); struct.success.put(_key65, _val66); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class auditKeyRecord_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("auditKeyRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditKeyRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditKeyRecord_argsTupleSchemeFactory()); } public String key; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(auditKeyRecord_args.class, metaDataMap); } public auditKeyRecord_args() { } public auditKeyRecord_args( String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public auditKeyRecord_args(auditKeyRecord_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public auditKeyRecord_args deepCopy() { return new auditKeyRecord_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public auditKeyRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public auditKeyRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public auditKeyRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public auditKeyRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public auditKeyRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof auditKeyRecord_args) return this.equals((auditKeyRecord_args)that); return false; } public boolean equals(auditKeyRecord_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(auditKeyRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("auditKeyRecord_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 auditKeyRecord_argsStandardSchemeFactory implements SchemeFactory { public auditKeyRecord_argsStandardScheme getScheme() { return new auditKeyRecord_argsStandardScheme(); } } private static class auditKeyRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditKeyRecord_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, auditKeyRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditKeyRecord_argsTupleSchemeFactory implements SchemeFactory { public auditKeyRecord_argsTupleScheme getScheme() { return new auditKeyRecord_argsTupleScheme(); } } private static class auditKeyRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class auditKeyRecord_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("auditKeyRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditKeyRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditKeyRecord_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(auditKeyRecord_result.class, metaDataMap); } public auditKeyRecord_result() { } public auditKeyRecord_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public auditKeyRecord_result(auditKeyRecord_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public auditKeyRecord_result deepCopy() { return new auditKeyRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, String val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public auditKeyRecord_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public auditKeyRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public auditKeyRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof auditKeyRecord_result) return this.equals((auditKeyRecord_result)that); return false; } public boolean equals(auditKeyRecord_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(auditKeyRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("auditKeyRecord_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 auditKeyRecord_resultStandardSchemeFactory implements SchemeFactory { public auditKeyRecord_resultStandardScheme getScheme() { return new auditKeyRecord_resultStandardScheme(); } } private static class auditKeyRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditKeyRecord_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.MAP) { { org.apache.thrift.protocol.TMap _map68 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map68.size); long _key69; String _val70; for (int _i71 = 0; _i71 < _map68.size; ++_i71) { _key69 = iprot.readI64(); _val70 = iprot.readString(); struct.success.put(_key69, _val70); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, auditKeyRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (Map.Entry _iter72 : struct.success.entrySet()) { oprot.writeI64(_iter72.getKey()); oprot.writeString(_iter72.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditKeyRecord_resultTupleSchemeFactory implements SchemeFactory { public auditKeyRecord_resultTupleScheme getScheme() { return new auditKeyRecord_resultTupleScheme(); } } private static class auditKeyRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter73 : struct.success.entrySet()) { oprot.writeI64(_iter73.getKey()); oprot.writeString(_iter73.getValue()); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map74 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashMap(2*_map74.size); long _key75; String _val76; for (int _i77 = 0; _i77 < _map74.size; ++_i77) { _key75 = iprot.readI64(); _val76 = iprot.readString(); struct.success.put(_key75, _val76); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class auditKeyRecordStart_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("auditKeyRecordStart_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditKeyRecordStart_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditKeyRecordStart_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), START((short)3, "start"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __START_ISSET_ID = 1; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(auditKeyRecordStart_args.class, metaDataMap); } public auditKeyRecordStart_args() { } public auditKeyRecordStart_args( String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; setStartIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public auditKeyRecordStart_args(auditKeyRecordStart_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; this.start = other.start; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public auditKeyRecordStart_args deepCopy() { return new auditKeyRecordStart_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setStartIsSet(false); this.start = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public auditKeyRecordStart_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public auditKeyRecordStart_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getStart() { return this.start; } public auditKeyRecordStart_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public auditKeyRecordStart_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public auditKeyRecordStart_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public auditKeyRecordStart_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof auditKeyRecordStart_args) return this.equals((auditKeyRecordStart_args)that); return false; } public boolean equals(auditKeyRecordStart_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_start = true; boolean that_present_start = true; if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (this.start != that.start) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_start = true; list.add(present_start); if (present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(auditKeyRecordStart_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("auditKeyRecordStart_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 auditKeyRecordStart_argsStandardSchemeFactory implements SchemeFactory { public auditKeyRecordStart_argsStandardScheme getScheme() { return new auditKeyRecordStart_argsStandardScheme(); } } private static class auditKeyRecordStart_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditKeyRecordStart_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, auditKeyRecordStart_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditKeyRecordStart_argsTupleSchemeFactory implements SchemeFactory { public auditKeyRecordStart_argsTupleScheme getScheme() { return new auditKeyRecordStart_argsTupleScheme(); } } private static class auditKeyRecordStart_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStart_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetStart()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetStart()) { oprot.writeI64(struct.start); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStart_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class auditKeyRecordStart_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("auditKeyRecordStart_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditKeyRecordStart_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditKeyRecordStart_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(auditKeyRecordStart_result.class, metaDataMap); } public auditKeyRecordStart_result() { } public auditKeyRecordStart_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public auditKeyRecordStart_result(auditKeyRecordStart_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public auditKeyRecordStart_result deepCopy() { return new auditKeyRecordStart_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, String val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public auditKeyRecordStart_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public auditKeyRecordStart_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public auditKeyRecordStart_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof auditKeyRecordStart_result) return this.equals((auditKeyRecordStart_result)that); return false; } public boolean equals(auditKeyRecordStart_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(auditKeyRecordStart_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("auditKeyRecordStart_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 auditKeyRecordStart_resultStandardSchemeFactory implements SchemeFactory { public auditKeyRecordStart_resultStandardScheme getScheme() { return new auditKeyRecordStart_resultStandardScheme(); } } private static class auditKeyRecordStart_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditKeyRecordStart_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.MAP) { { org.apache.thrift.protocol.TMap _map78 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map78.size); long _key79; String _val80; for (int _i81 = 0; _i81 < _map78.size; ++_i81) { _key79 = iprot.readI64(); _val80 = iprot.readString(); struct.success.put(_key79, _val80); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, auditKeyRecordStart_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (Map.Entry _iter82 : struct.success.entrySet()) { oprot.writeI64(_iter82.getKey()); oprot.writeString(_iter82.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditKeyRecordStart_resultTupleSchemeFactory implements SchemeFactory { public auditKeyRecordStart_resultTupleScheme getScheme() { return new auditKeyRecordStart_resultTupleScheme(); } } private static class auditKeyRecordStart_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStart_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter83 : struct.success.entrySet()) { oprot.writeI64(_iter83.getKey()); oprot.writeString(_iter83.getValue()); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStart_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map84 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashMap(2*_map84.size); long _key85; String _val86; for (int _i87 = 0; _i87 < _map84.size; ++_i87) { _key85 = iprot.readI64(); _val86 = iprot.readString(); struct.success.put(_key85, _val86); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class auditKeyRecordStartstr_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("auditKeyRecordStartstr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditKeyRecordStartstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditKeyRecordStartstr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), START((short)3, "start"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(auditKeyRecordStartstr_args.class, metaDataMap); } public auditKeyRecordStartstr_args() { } public auditKeyRecordStartstr_args( String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public auditKeyRecordStartstr_args(auditKeyRecordStartstr_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; if (other.isSetStart()) { this.start = other.start; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public auditKeyRecordStartstr_args deepCopy() { return new auditKeyRecordStartstr_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.start = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public auditKeyRecordStartstr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public auditKeyRecordStartstr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getStart() { return this.start; } public auditKeyRecordStartstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if (!value) { this.start = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public auditKeyRecordStartstr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public auditKeyRecordStartstr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public auditKeyRecordStartstr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof auditKeyRecordStartstr_args) return this.equals((auditKeyRecordStartstr_args)that); return false; } public boolean equals(auditKeyRecordStartstr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (!this.start.equals(that.start)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_start = true && (isSetStart()); list.add(present_start); if (present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(auditKeyRecordStartstr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("auditKeyRecordStartstr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("start:"); if (this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 auditKeyRecordStartstr_argsStandardSchemeFactory implements SchemeFactory { public auditKeyRecordStartstr_argsStandardScheme getScheme() { return new auditKeyRecordStartstr_argsStandardScheme(); } } private static class auditKeyRecordStartstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditKeyRecordStartstr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, auditKeyRecordStartstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditKeyRecordStartstr_argsTupleSchemeFactory implements SchemeFactory { public auditKeyRecordStartstr_argsTupleScheme getScheme() { return new auditKeyRecordStartstr_argsTupleScheme(); } } private static class auditKeyRecordStartstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetStart()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetStart()) { oprot.writeString(struct.start); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class auditKeyRecordStartstr_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("auditKeyRecordStartstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditKeyRecordStartstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditKeyRecordStartstr_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(auditKeyRecordStartstr_result.class, metaDataMap); } public auditKeyRecordStartstr_result() { } public auditKeyRecordStartstr_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public auditKeyRecordStartstr_result(auditKeyRecordStartstr_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public auditKeyRecordStartstr_result deepCopy() { return new auditKeyRecordStartstr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, String val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public auditKeyRecordStartstr_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public auditKeyRecordStartstr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public auditKeyRecordStartstr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public auditKeyRecordStartstr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof auditKeyRecordStartstr_result) return this.equals((auditKeyRecordStartstr_result)that); return false; } public boolean equals(auditKeyRecordStartstr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(auditKeyRecordStartstr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("auditKeyRecordStartstr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 auditKeyRecordStartstr_resultStandardSchemeFactory implements SchemeFactory { public auditKeyRecordStartstr_resultStandardScheme getScheme() { return new auditKeyRecordStartstr_resultStandardScheme(); } } private static class auditKeyRecordStartstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditKeyRecordStartstr_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.MAP) { { org.apache.thrift.protocol.TMap _map88 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map88.size); long _key89; String _val90; for (int _i91 = 0; _i91 < _map88.size; ++_i91) { _key89 = iprot.readI64(); _val90 = iprot.readString(); struct.success.put(_key89, _val90); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, auditKeyRecordStartstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (Map.Entry _iter92 : struct.success.entrySet()) { oprot.writeI64(_iter92.getKey()); oprot.writeString(_iter92.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditKeyRecordStartstr_resultTupleSchemeFactory implements SchemeFactory { public auditKeyRecordStartstr_resultTupleScheme getScheme() { return new auditKeyRecordStartstr_resultTupleScheme(); } } private static class auditKeyRecordStartstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter93 : struct.success.entrySet()) { oprot.writeI64(_iter93.getKey()); oprot.writeString(_iter93.getValue()); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartstr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map94 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashMap(2*_map94.size); long _key95; String _val96; for (int _i97 = 0; _i97 < _map94.size; ++_i97) { _key95 = iprot.readI64(); _val96 = iprot.readString(); struct.success.put(_key95, _val96); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class auditKeyRecordStartEnd_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("auditKeyRecordStartEnd_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField("tend", org.apache.thrift.protocol.TType.I64, (short)4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditKeyRecordStartEnd_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditKeyRecordStartEnd_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long start; // required public long tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), START((short)3, "start"), TEND((short)4, "tend"), CREDS((short)5, "creds"), TRANSACTION((short)6, "transaction"), ENVIRONMENT((short)7, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // TEND return TEND; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __START_ISSET_ID = 1; private static final int __TEND_ISSET_ID = 2; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(auditKeyRecordStartEnd_args.class, metaDataMap); } public auditKeyRecordStartEnd_args() { } public auditKeyRecordStartEnd_args( String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; setStartIsSet(true); this.tend = tend; setTendIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public auditKeyRecordStartEnd_args(auditKeyRecordStartEnd_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; this.start = other.start; this.tend = other.tend; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public auditKeyRecordStartEnd_args deepCopy() { return new auditKeyRecordStartEnd_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setStartIsSet(false); this.start = 0; setTendIsSet(false); this.tend = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public auditKeyRecordStartEnd_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public auditKeyRecordStartEnd_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getStart() { return this.start; } public auditKeyRecordStartEnd_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public long getTend() { return this.tend; } public auditKeyRecordStartEnd_args setTend(long tend) { this.tend = tend; setTendIsSet(true); return this; } public void unsetTend() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TEND_ISSET_ID); } /** Returns true if field tend is set (has been assigned a value) and false otherwise */ public boolean isSetTend() { return EncodingUtils.testBit(__isset_bitfield, __TEND_ISSET_ID); } public void setTendIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TEND_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public auditKeyRecordStartEnd_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public auditKeyRecordStartEnd_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public auditKeyRecordStartEnd_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((Long)value); } break; case TEND: if (value == null) { unsetTend(); } else { setTend((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof auditKeyRecordStartEnd_args) return this.equals((auditKeyRecordStartEnd_args)that); return false; } public boolean equals(auditKeyRecordStartEnd_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_start = true; boolean that_present_start = true; if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (this.start != that.start) return false; } boolean this_present_tend = true; boolean that_present_tend = true; if (this_present_tend || that_present_tend) { if (!(this_present_tend && that_present_tend)) return false; if (this.tend != that.tend) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_start = true; list.add(present_start); if (present_start) list.add(start); boolean present_tend = true; list.add(present_tend); if (present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(auditKeyRecordStartEnd_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()).compareTo(other.isSetTend()); if (lastComparison != 0) { return lastComparison; } if (isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tend, other.tend); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("auditKeyRecordStartEnd_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if (!first) sb.append(", "); sb.append("tend:"); sb.append(this.tend); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 auditKeyRecordStartEnd_argsStandardSchemeFactory implements SchemeFactory { public auditKeyRecordStartEnd_argsStandardScheme getScheme() { return new auditKeyRecordStartEnd_argsStandardScheme(); } } private static class auditKeyRecordStartEnd_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditKeyRecordStartEnd_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TEND if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, auditKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeI64(struct.tend); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditKeyRecordStartEnd_argsTupleSchemeFactory implements SchemeFactory { public auditKeyRecordStartEnd_argsTupleScheme getScheme() { return new auditKeyRecordStartEnd_argsTupleScheme(); } } private static class auditKeyRecordStartEnd_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetStart()) { optionals.set(2); } if (struct.isSetTend()) { optionals.set(3); } if (struct.isSetCreds()) { optionals.set(4); } if (struct.isSetTransaction()) { optionals.set(5); } if (struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetStart()) { oprot.writeI64(struct.start); } if (struct.isSetTend()) { oprot.writeI64(struct.tend); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if (incoming.get(3)) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } if (incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class auditKeyRecordStartEnd_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("auditKeyRecordStartEnd_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditKeyRecordStartEnd_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditKeyRecordStartEnd_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(auditKeyRecordStartEnd_result.class, metaDataMap); } public auditKeyRecordStartEnd_result() { } public auditKeyRecordStartEnd_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public auditKeyRecordStartEnd_result(auditKeyRecordStartEnd_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public auditKeyRecordStartEnd_result deepCopy() { return new auditKeyRecordStartEnd_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, String val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public auditKeyRecordStartEnd_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public auditKeyRecordStartEnd_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public auditKeyRecordStartEnd_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof auditKeyRecordStartEnd_result) return this.equals((auditKeyRecordStartEnd_result)that); return false; } public boolean equals(auditKeyRecordStartEnd_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(auditKeyRecordStartEnd_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("auditKeyRecordStartEnd_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 auditKeyRecordStartEnd_resultStandardSchemeFactory implements SchemeFactory { public auditKeyRecordStartEnd_resultStandardScheme getScheme() { return new auditKeyRecordStartEnd_resultStandardScheme(); } } private static class auditKeyRecordStartEnd_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditKeyRecordStartEnd_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.MAP) { { org.apache.thrift.protocol.TMap _map98 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map98.size); long _key99; String _val100; for (int _i101 = 0; _i101 < _map98.size; ++_i101) { _key99 = iprot.readI64(); _val100 = iprot.readString(); struct.success.put(_key99, _val100); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, auditKeyRecordStartEnd_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (Map.Entry _iter102 : struct.success.entrySet()) { oprot.writeI64(_iter102.getKey()); oprot.writeString(_iter102.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditKeyRecordStartEnd_resultTupleSchemeFactory implements SchemeFactory { public auditKeyRecordStartEnd_resultTupleScheme getScheme() { return new auditKeyRecordStartEnd_resultTupleScheme(); } } private static class auditKeyRecordStartEnd_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartEnd_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter103 : struct.success.entrySet()) { oprot.writeI64(_iter103.getKey()); oprot.writeString(_iter103.getValue()); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartEnd_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map104 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashMap(2*_map104.size); long _key105; String _val106; for (int _i107 = 0; _i107 < _map104.size; ++_i107) { _key105 = iprot.readI64(); _val106 = iprot.readString(); struct.success.put(_key105, _val106); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class auditKeyRecordStartstrEndstr_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("auditKeyRecordStartstrEndstr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField("tend", org.apache.thrift.protocol.TType.STRING, (short)4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditKeyRecordStartstrEndstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditKeyRecordStartstrEndstr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String start; // required public String tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), START((short)3, "start"), TEND((short)4, "tend"), CREDS((short)5, "creds"), TRANSACTION((short)6, "transaction"), ENVIRONMENT((short)7, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // TEND return TEND; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(auditKeyRecordStartstrEndstr_args.class, metaDataMap); } public auditKeyRecordStartstrEndstr_args() { } public auditKeyRecordStartstrEndstr_args( String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public auditKeyRecordStartstrEndstr_args(auditKeyRecordStartstrEndstr_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; if (other.isSetStart()) { this.start = other.start; } if (other.isSetTend()) { this.tend = other.tend; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public auditKeyRecordStartstrEndstr_args deepCopy() { return new auditKeyRecordStartstrEndstr_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.start = null; this.tend = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public auditKeyRecordStartstrEndstr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public auditKeyRecordStartstrEndstr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getStart() { return this.start; } public auditKeyRecordStartstrEndstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if (!value) { this.start = null; } } public String getTend() { return this.tend; } public auditKeyRecordStartstrEndstr_args setTend(String tend) { this.tend = tend; return this; } public void unsetTend() { this.tend = null; } /** Returns true if field tend is set (has been assigned a value) and false otherwise */ public boolean isSetTend() { return this.tend != null; } public void setTendIsSet(boolean value) { if (!value) { this.tend = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public auditKeyRecordStartstrEndstr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public auditKeyRecordStartstrEndstr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public auditKeyRecordStartstrEndstr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((String)value); } break; case TEND: if (value == null) { unsetTend(); } else { setTend((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof auditKeyRecordStartstrEndstr_args) return this.equals((auditKeyRecordStartstrEndstr_args)that); return false; } public boolean equals(auditKeyRecordStartstrEndstr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (!this.start.equals(that.start)) return false; } boolean this_present_tend = true && this.isSetTend(); boolean that_present_tend = true && that.isSetTend(); if (this_present_tend || that_present_tend) { if (!(this_present_tend && that_present_tend)) return false; if (!this.tend.equals(that.tend)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_start = true && (isSetStart()); list.add(present_start); if (present_start) list.add(start); boolean present_tend = true && (isSetTend()); list.add(present_tend); if (present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(auditKeyRecordStartstrEndstr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()).compareTo(other.isSetTend()); if (lastComparison != 0) { return lastComparison; } if (isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tend, other.tend); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("auditKeyRecordStartstrEndstr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("start:"); if (this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if (!first) sb.append(", "); sb.append("tend:"); if (this.tend == null) { sb.append("null"); } else { sb.append(this.tend); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 auditKeyRecordStartstrEndstr_argsStandardSchemeFactory implements SchemeFactory { public auditKeyRecordStartstrEndstr_argsStandardScheme getScheme() { return new auditKeyRecordStartstrEndstr_argsStandardScheme(); } } private static class auditKeyRecordStartstrEndstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditKeyRecordStartstrEndstr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TEND if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, auditKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if (struct.tend != null) { oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeString(struct.tend); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditKeyRecordStartstrEndstr_argsTupleSchemeFactory implements SchemeFactory { public auditKeyRecordStartstrEndstr_argsTupleScheme getScheme() { return new auditKeyRecordStartstrEndstr_argsTupleScheme(); } } private static class auditKeyRecordStartstrEndstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetStart()) { optionals.set(2); } if (struct.isSetTend()) { optionals.set(3); } if (struct.isSetCreds()) { optionals.set(4); } if (struct.isSetTransaction()) { optionals.set(5); } if (struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetStart()) { oprot.writeString(struct.start); } if (struct.isSetTend()) { oprot.writeString(struct.tend); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if (incoming.get(3)) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } if (incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class auditKeyRecordStartstrEndstr_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("auditKeyRecordStartstrEndstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new auditKeyRecordStartstrEndstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new auditKeyRecordStartstrEndstr_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(auditKeyRecordStartstrEndstr_result.class, metaDataMap); } public auditKeyRecordStartstrEndstr_result() { } public auditKeyRecordStartstrEndstr_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public auditKeyRecordStartstrEndstr_result(auditKeyRecordStartstrEndstr_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public auditKeyRecordStartstrEndstr_result deepCopy() { return new auditKeyRecordStartstrEndstr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, String val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public auditKeyRecordStartstrEndstr_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public auditKeyRecordStartstrEndstr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public auditKeyRecordStartstrEndstr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public auditKeyRecordStartstrEndstr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof auditKeyRecordStartstrEndstr_result) return this.equals((auditKeyRecordStartstrEndstr_result)that); return false; } public boolean equals(auditKeyRecordStartstrEndstr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(auditKeyRecordStartstrEndstr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("auditKeyRecordStartstrEndstr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 auditKeyRecordStartstrEndstr_resultStandardSchemeFactory implements SchemeFactory { public auditKeyRecordStartstrEndstr_resultStandardScheme getScheme() { return new auditKeyRecordStartstrEndstr_resultStandardScheme(); } } private static class auditKeyRecordStartstrEndstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, auditKeyRecordStartstrEndstr_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.MAP) { { org.apache.thrift.protocol.TMap _map108 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map108.size); long _key109; String _val110; for (int _i111 = 0; _i111 < _map108.size; ++_i111) { _key109 = iprot.readI64(); _val110 = iprot.readString(); struct.success.put(_key109, _val110); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, auditKeyRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (Map.Entry _iter112 : struct.success.entrySet()) { oprot.writeI64(_iter112.getKey()); oprot.writeString(_iter112.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class auditKeyRecordStartstrEndstr_resultTupleSchemeFactory implements SchemeFactory { public auditKeyRecordStartstrEndstr_resultTupleScheme getScheme() { return new auditKeyRecordStartstrEndstr_resultTupleScheme(); } } private static class auditKeyRecordStartstrEndstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter113 : struct.success.entrySet()) { oprot.writeI64(_iter113.getKey()); oprot.writeString(_iter113.getValue()); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, auditKeyRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map114 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashMap(2*_map114.size); long _key115; String _val116; for (int _i117 = 0; _i117 < _map114.size; ++_i117) { _key115 = iprot.readI64(); _val116 = iprot.readString(); struct.success.put(_key115, _val116); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class browseKey_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("browseKey_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKey_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKey_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(browseKey_args.class, metaDataMap); } public browseKey_args() { } public browseKey_args( String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public browseKey_args(browseKey_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public browseKey_args deepCopy() { return new browseKey_args(this); } @Override public void clear() { this.key = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public browseKey_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public browseKey_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public browseKey_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public browseKey_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof browseKey_args) return this.equals((browseKey_args)that); return false; } public boolean equals(browseKey_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(browseKey_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("browseKey_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 browseKey_argsStandardSchemeFactory implements SchemeFactory { public browseKey_argsStandardScheme getScheme() { return new browseKey_argsStandardScheme(); } } private static class browseKey_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKey_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, browseKey_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKey_argsTupleSchemeFactory implements SchemeFactory { public browseKey_argsTupleScheme getScheme() { return new browseKey_argsTupleScheme(); } } private static class browseKey_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKey_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, browseKey_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class browseKey_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("browseKey_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKey_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKey_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class), 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.I64))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(browseKey_result.class, metaDataMap); } public browseKey_result() { } public browseKey_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public browseKey_result(browseKey_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { com.cinchapi.concourse.thrift.TObject other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); com.cinchapi.concourse.thrift.TObject __this__success_copy_key = new com.cinchapi.concourse.thrift.TObject(other_element_key); Set __this__success_copy_value = new LinkedHashSet(other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public browseKey_result deepCopy() { return new browseKey_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.TObject key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public browseKey_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public browseKey_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public browseKey_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof browseKey_result) return this.equals((browseKey_result)that); return false; } public boolean equals(browseKey_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(browseKey_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("browseKey_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 browseKey_resultStandardSchemeFactory implements SchemeFactory { public browseKey_resultStandardScheme getScheme() { return new browseKey_resultStandardScheme(); } } private static class browseKey_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKey_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.MAP) { { org.apache.thrift.protocol.TMap _map118 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map118.size); com.cinchapi.concourse.thrift.TObject _key119; Set _val120; for (int _i121 = 0; _i121 < _map118.size; ++_i121) { _key119 = new com.cinchapi.concourse.thrift.TObject(); _key119.read(iprot); { org.apache.thrift.protocol.TSet _set122 = iprot.readSetBegin(); _val120 = new LinkedHashSet(2*_set122.size); long _elem123; for (int _i124 = 0; _i124 < _set122.size; ++_i124) { _elem123 = iprot.readI64(); _val120.add(_elem123); } iprot.readSetEnd(); } struct.success.put(_key119, _val120); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, browseKey_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter125 : struct.success.entrySet()) { _iter125.getKey().write(oprot); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, _iter125.getValue().size())); for (long _iter126 : _iter125.getValue()) { oprot.writeI64(_iter126); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKey_resultTupleSchemeFactory implements SchemeFactory { public browseKey_resultTupleScheme getScheme() { return new browseKey_resultTupleScheme(); } } private static class browseKey_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKey_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter127 : struct.success.entrySet()) { _iter127.getKey().write(oprot); { oprot.writeI32(_iter127.getValue().size()); for (long _iter128 : _iter127.getValue()) { oprot.writeI64(_iter128); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, browseKey_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map129 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map129.size); com.cinchapi.concourse.thrift.TObject _key130; Set _val131; for (int _i132 = 0; _i132 < _map129.size; ++_i132) { _key130 = new com.cinchapi.concourse.thrift.TObject(); _key130.read(iprot); { org.apache.thrift.protocol.TSet _set133 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val131 = new LinkedHashSet(2*_set133.size); long _elem134; for (int _i135 = 0; _i135 < _set133.size; ++_i135) { _elem134 = iprot.readI64(); _val131.add(_elem134); } } struct.success.put(_key130, _val131); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class browseKeys_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("browseKeys_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKeys_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKeys_argsTupleSchemeFactory()); } public List keys; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(browseKeys_args.class, metaDataMap); } public browseKeys_args() { } public browseKeys_args( List keys, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public browseKeys_args(browseKeys_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public browseKeys_args deepCopy() { return new browseKeys_args(this); } @Override public void clear() { this.keys = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public browseKeys_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public browseKeys_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public browseKeys_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public browseKeys_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof browseKeys_args) return this.equals((browseKeys_args)that); return false; } public boolean equals(browseKeys_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(browseKeys_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("browseKeys_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 browseKeys_argsStandardSchemeFactory implements SchemeFactory { public browseKeys_argsStandardScheme getScheme() { return new browseKeys_argsStandardScheme(); } } private static class browseKeys_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKeys_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list136 = iprot.readListBegin(); struct.keys = new ArrayList(_list136.size); String _elem137; for (int _i138 = 0; _i138 < _list136.size; ++_i138) { _elem137 = iprot.readString(); struct.keys.add(_elem137); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, browseKeys_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter139 : struct.keys) { oprot.writeString(_iter139); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKeys_argsTupleSchemeFactory implements SchemeFactory { public browseKeys_argsTupleScheme getScheme() { return new browseKeys_argsTupleScheme(); } } private static class browseKeys_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKeys_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter140 : struct.keys) { oprot.writeString(_iter140); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, browseKeys_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list141 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list141.size); String _elem142; for (int _i143 = 0; _i143 < _list141.size; ++_i143) { _elem142 = iprot.readString(); struct.keys.add(_elem142); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class browseKeys_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("browseKeys_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKeys_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKeys_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class), 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.I64)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(browseKeys_result.class, metaDataMap); } public browseKeys_result() { } public browseKeys_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public browseKeys_result(browseKeys_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { String other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); String __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { com.cinchapi.concourse.thrift.TObject other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_key = new com.cinchapi.concourse.thrift.TObject(other_element_value_element_key); Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public browseKeys_result deepCopy() { return new browseKeys_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public browseKeys_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public browseKeys_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public browseKeys_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof browseKeys_result) return this.equals((browseKeys_result)that); return false; } public boolean equals(browseKeys_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(browseKeys_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("browseKeys_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 browseKeys_resultStandardSchemeFactory implements SchemeFactory { public browseKeys_resultStandardScheme getScheme() { return new browseKeys_resultStandardScheme(); } } private static class browseKeys_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKeys_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.MAP) { { org.apache.thrift.protocol.TMap _map144 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map144.size); String _key145; Map> _val146; for (int _i147 = 0; _i147 < _map144.size; ++_i147) { _key145 = iprot.readString(); { org.apache.thrift.protocol.TMap _map148 = iprot.readMapBegin(); _val146 = new LinkedHashMap>(2*_map148.size); com.cinchapi.concourse.thrift.TObject _key149; Set _val150; for (int _i151 = 0; _i151 < _map148.size; ++_i151) { _key149 = new com.cinchapi.concourse.thrift.TObject(); _key149.read(iprot); { org.apache.thrift.protocol.TSet _set152 = iprot.readSetBegin(); _val150 = new LinkedHashSet(2*_set152.size); long _elem153; for (int _i154 = 0; _i154 < _set152.size; ++_i154) { _elem153 = iprot.readI64(); _val150.add(_elem153); } iprot.readSetEnd(); } _val146.put(_key149, _val150); } iprot.readMapEnd(); } struct.success.put(_key145, _val146); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, browseKeys_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter155 : struct.success.entrySet()) { oprot.writeString(_iter155.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, _iter155.getValue().size())); for (Map.Entry> _iter156 : _iter155.getValue().entrySet()) { _iter156.getKey().write(oprot); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, _iter156.getValue().size())); for (long _iter157 : _iter156.getValue()) { oprot.writeI64(_iter157); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKeys_resultTupleSchemeFactory implements SchemeFactory { public browseKeys_resultTupleScheme getScheme() { return new browseKeys_resultTupleScheme(); } } private static class browseKeys_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKeys_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter158 : struct.success.entrySet()) { oprot.writeString(_iter158.getKey()); { oprot.writeI32(_iter158.getValue().size()); for (Map.Entry> _iter159 : _iter158.getValue().entrySet()) { _iter159.getKey().write(oprot); { oprot.writeI32(_iter159.getValue().size()); for (long _iter160 : _iter159.getValue()) { oprot.writeI64(_iter160); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, browseKeys_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map161 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map161.size); String _key162; Map> _val163; for (int _i164 = 0; _i164 < _map161.size; ++_i164) { _key162 = iprot.readString(); { org.apache.thrift.protocol.TMap _map165 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val163 = new LinkedHashMap>(2*_map165.size); com.cinchapi.concourse.thrift.TObject _key166; Set _val167; for (int _i168 = 0; _i168 < _map165.size; ++_i168) { _key166 = new com.cinchapi.concourse.thrift.TObject(); _key166.read(iprot); { org.apache.thrift.protocol.TSet _set169 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val167 = new LinkedHashSet(2*_set169.size); long _elem170; for (int _i171 = 0; _i171 < _set169.size; ++_i171) { _elem170 = iprot.readI64(); _val167.add(_elem170); } } _val163.put(_key166, _val167); } } struct.success.put(_key162, _val163); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class browseKeyTime_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("browseKeyTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKeyTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKeyTime_argsTupleSchemeFactory()); } public String key; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(browseKeyTime_args.class, metaDataMap); } public browseKeyTime_args() { } public browseKeyTime_args( String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public browseKeyTime_args(browseKeyTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public browseKeyTime_args deepCopy() { return new browseKeyTime_args(this); } @Override public void clear() { this.key = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public browseKeyTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getTimestamp() { return this.timestamp; } public browseKeyTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public browseKeyTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public browseKeyTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public browseKeyTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof browseKeyTime_args) return this.equals((browseKeyTime_args)that); return false; } public boolean equals(browseKeyTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(browseKeyTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("browseKeyTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 browseKeyTime_argsStandardSchemeFactory implements SchemeFactory { public browseKeyTime_argsStandardScheme getScheme() { return new browseKeyTime_argsStandardScheme(); } } private static class browseKeyTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKeyTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, browseKeyTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKeyTime_argsTupleSchemeFactory implements SchemeFactory { public browseKeyTime_argsTupleScheme getScheme() { return new browseKeyTime_argsTupleScheme(); } } private static class browseKeyTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKeyTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, browseKeyTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class browseKeyTime_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("browseKeyTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKeyTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKeyTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class), 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.I64))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(browseKeyTime_result.class, metaDataMap); } public browseKeyTime_result() { } public browseKeyTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public browseKeyTime_result(browseKeyTime_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { com.cinchapi.concourse.thrift.TObject other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); com.cinchapi.concourse.thrift.TObject __this__success_copy_key = new com.cinchapi.concourse.thrift.TObject(other_element_key); Set __this__success_copy_value = new LinkedHashSet(other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public browseKeyTime_result deepCopy() { return new browseKeyTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.TObject key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public browseKeyTime_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public browseKeyTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public browseKeyTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof browseKeyTime_result) return this.equals((browseKeyTime_result)that); return false; } public boolean equals(browseKeyTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(browseKeyTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("browseKeyTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 browseKeyTime_resultStandardSchemeFactory implements SchemeFactory { public browseKeyTime_resultStandardScheme getScheme() { return new browseKeyTime_resultStandardScheme(); } } private static class browseKeyTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKeyTime_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.MAP) { { org.apache.thrift.protocol.TMap _map172 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map172.size); com.cinchapi.concourse.thrift.TObject _key173; Set _val174; for (int _i175 = 0; _i175 < _map172.size; ++_i175) { _key173 = new com.cinchapi.concourse.thrift.TObject(); _key173.read(iprot); { org.apache.thrift.protocol.TSet _set176 = iprot.readSetBegin(); _val174 = new LinkedHashSet(2*_set176.size); long _elem177; for (int _i178 = 0; _i178 < _set176.size; ++_i178) { _elem177 = iprot.readI64(); _val174.add(_elem177); } iprot.readSetEnd(); } struct.success.put(_key173, _val174); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, browseKeyTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter179 : struct.success.entrySet()) { _iter179.getKey().write(oprot); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, _iter179.getValue().size())); for (long _iter180 : _iter179.getValue()) { oprot.writeI64(_iter180); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKeyTime_resultTupleSchemeFactory implements SchemeFactory { public browseKeyTime_resultTupleScheme getScheme() { return new browseKeyTime_resultTupleScheme(); } } private static class browseKeyTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKeyTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter181 : struct.success.entrySet()) { _iter181.getKey().write(oprot); { oprot.writeI32(_iter181.getValue().size()); for (long _iter182 : _iter181.getValue()) { oprot.writeI64(_iter182); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, browseKeyTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map183 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map183.size); com.cinchapi.concourse.thrift.TObject _key184; Set _val185; for (int _i186 = 0; _i186 < _map183.size; ++_i186) { _key184 = new com.cinchapi.concourse.thrift.TObject(); _key184.read(iprot); { org.apache.thrift.protocol.TSet _set187 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val185 = new LinkedHashSet(2*_set187.size); long _elem188; for (int _i189 = 0; _i189 < _set187.size; ++_i189) { _elem188 = iprot.readI64(); _val185.add(_elem188); } } struct.success.put(_key184, _val185); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class browseKeyTimestr_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("browseKeyTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKeyTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKeyTimestr_argsTupleSchemeFactory()); } public String key; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(browseKeyTimestr_args.class, metaDataMap); } public browseKeyTimestr_args() { } public browseKeyTimestr_args( String key, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public browseKeyTimestr_args(browseKeyTimestr_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public browseKeyTimestr_args deepCopy() { return new browseKeyTimestr_args(this); } @Override public void clear() { this.key = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public browseKeyTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public String getTimestamp() { return this.timestamp; } public browseKeyTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public browseKeyTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public browseKeyTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public browseKeyTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof browseKeyTimestr_args) return this.equals((browseKeyTimestr_args)that); return false; } public boolean equals(browseKeyTimestr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(browseKeyTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("browseKeyTimestr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 browseKeyTimestr_argsStandardSchemeFactory implements SchemeFactory { public browseKeyTimestr_argsStandardScheme getScheme() { return new browseKeyTimestr_argsStandardScheme(); } } private static class browseKeyTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKeyTimestr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, browseKeyTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKeyTimestr_argsTupleSchemeFactory implements SchemeFactory { public browseKeyTimestr_argsTupleScheme getScheme() { return new browseKeyTimestr_argsTupleScheme(); } } private static class browseKeyTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKeyTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, browseKeyTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class browseKeyTimestr_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("browseKeyTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKeyTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKeyTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class), 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.I64))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(browseKeyTimestr_result.class, metaDataMap); } public browseKeyTimestr_result() { } public browseKeyTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public browseKeyTimestr_result(browseKeyTimestr_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { com.cinchapi.concourse.thrift.TObject other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); com.cinchapi.concourse.thrift.TObject __this__success_copy_key = new com.cinchapi.concourse.thrift.TObject(other_element_key); Set __this__success_copy_value = new LinkedHashSet(other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public browseKeyTimestr_result deepCopy() { return new browseKeyTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.TObject key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public browseKeyTimestr_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public browseKeyTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public browseKeyTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public browseKeyTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof browseKeyTimestr_result) return this.equals((browseKeyTimestr_result)that); return false; } public boolean equals(browseKeyTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(browseKeyTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("browseKeyTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 browseKeyTimestr_resultStandardSchemeFactory implements SchemeFactory { public browseKeyTimestr_resultStandardScheme getScheme() { return new browseKeyTimestr_resultStandardScheme(); } } private static class browseKeyTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKeyTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map190 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map190.size); com.cinchapi.concourse.thrift.TObject _key191; Set _val192; for (int _i193 = 0; _i193 < _map190.size; ++_i193) { _key191 = new com.cinchapi.concourse.thrift.TObject(); _key191.read(iprot); { org.apache.thrift.protocol.TSet _set194 = iprot.readSetBegin(); _val192 = new LinkedHashSet(2*_set194.size); long _elem195; for (int _i196 = 0; _i196 < _set194.size; ++_i196) { _elem195 = iprot.readI64(); _val192.add(_elem195); } iprot.readSetEnd(); } struct.success.put(_key191, _val192); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, browseKeyTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter197 : struct.success.entrySet()) { _iter197.getKey().write(oprot); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, _iter197.getValue().size())); for (long _iter198 : _iter197.getValue()) { oprot.writeI64(_iter198); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKeyTimestr_resultTupleSchemeFactory implements SchemeFactory { public browseKeyTimestr_resultTupleScheme getScheme() { return new browseKeyTimestr_resultTupleScheme(); } } private static class browseKeyTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKeyTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter199 : struct.success.entrySet()) { _iter199.getKey().write(oprot); { oprot.writeI32(_iter199.getValue().size()); for (long _iter200 : _iter199.getValue()) { oprot.writeI64(_iter200); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, browseKeyTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map201 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map201.size); com.cinchapi.concourse.thrift.TObject _key202; Set _val203; for (int _i204 = 0; _i204 < _map201.size; ++_i204) { _key202 = new com.cinchapi.concourse.thrift.TObject(); _key202.read(iprot); { org.apache.thrift.protocol.TSet _set205 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val203 = new LinkedHashSet(2*_set205.size); long _elem206; for (int _i207 = 0; _i207 < _set205.size; ++_i207) { _elem206 = iprot.readI64(); _val203.add(_elem206); } } struct.success.put(_key202, _val203); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class browseKeysTime_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("browseKeysTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKeysTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKeysTime_argsTupleSchemeFactory()); } public List keys; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(browseKeysTime_args.class, metaDataMap); } public browseKeysTime_args() { } public browseKeysTime_args( List keys, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public browseKeysTime_args(browseKeysTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public browseKeysTime_args deepCopy() { return new browseKeysTime_args(this); } @Override public void clear() { this.keys = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public browseKeysTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public long getTimestamp() { return this.timestamp; } public browseKeysTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public browseKeysTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public browseKeysTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public browseKeysTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof browseKeysTime_args) return this.equals((browseKeysTime_args)that); return false; } public boolean equals(browseKeysTime_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(browseKeysTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("browseKeysTime_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 browseKeysTime_argsStandardSchemeFactory implements SchemeFactory { public browseKeysTime_argsStandardScheme getScheme() { return new browseKeysTime_argsStandardScheme(); } } private static class browseKeysTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKeysTime_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list208 = iprot.readListBegin(); struct.keys = new ArrayList(_list208.size); String _elem209; for (int _i210 = 0; _i210 < _list208.size; ++_i210) { _elem209 = iprot.readString(); struct.keys.add(_elem209); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, browseKeysTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter211 : struct.keys) { oprot.writeString(_iter211); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKeysTime_argsTupleSchemeFactory implements SchemeFactory { public browseKeysTime_argsTupleScheme getScheme() { return new browseKeysTime_argsTupleScheme(); } } private static class browseKeysTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKeysTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter212 : struct.keys) { oprot.writeString(_iter212); } } } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, browseKeysTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list213 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list213.size); String _elem214; for (int _i215 = 0; _i215 < _list213.size; ++_i215) { _elem214 = iprot.readString(); struct.keys.add(_elem214); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class browseKeysTime_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("browseKeysTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKeysTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKeysTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class), 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.I64)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(browseKeysTime_result.class, metaDataMap); } public browseKeysTime_result() { } public browseKeysTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public browseKeysTime_result(browseKeysTime_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { String other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); String __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { com.cinchapi.concourse.thrift.TObject other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_key = new com.cinchapi.concourse.thrift.TObject(other_element_value_element_key); Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public browseKeysTime_result deepCopy() { return new browseKeysTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public browseKeysTime_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public browseKeysTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public browseKeysTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof browseKeysTime_result) return this.equals((browseKeysTime_result)that); return false; } public boolean equals(browseKeysTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(browseKeysTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("browseKeysTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 browseKeysTime_resultStandardSchemeFactory implements SchemeFactory { public browseKeysTime_resultStandardScheme getScheme() { return new browseKeysTime_resultStandardScheme(); } } private static class browseKeysTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKeysTime_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.MAP) { { org.apache.thrift.protocol.TMap _map216 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map216.size); String _key217; Map> _val218; for (int _i219 = 0; _i219 < _map216.size; ++_i219) { _key217 = iprot.readString(); { org.apache.thrift.protocol.TMap _map220 = iprot.readMapBegin(); _val218 = new LinkedHashMap>(2*_map220.size); com.cinchapi.concourse.thrift.TObject _key221; Set _val222; for (int _i223 = 0; _i223 < _map220.size; ++_i223) { _key221 = new com.cinchapi.concourse.thrift.TObject(); _key221.read(iprot); { org.apache.thrift.protocol.TSet _set224 = iprot.readSetBegin(); _val222 = new LinkedHashSet(2*_set224.size); long _elem225; for (int _i226 = 0; _i226 < _set224.size; ++_i226) { _elem225 = iprot.readI64(); _val222.add(_elem225); } iprot.readSetEnd(); } _val218.put(_key221, _val222); } iprot.readMapEnd(); } struct.success.put(_key217, _val218); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, browseKeysTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter227 : struct.success.entrySet()) { oprot.writeString(_iter227.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, _iter227.getValue().size())); for (Map.Entry> _iter228 : _iter227.getValue().entrySet()) { _iter228.getKey().write(oprot); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, _iter228.getValue().size())); for (long _iter229 : _iter228.getValue()) { oprot.writeI64(_iter229); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKeysTime_resultTupleSchemeFactory implements SchemeFactory { public browseKeysTime_resultTupleScheme getScheme() { return new browseKeysTime_resultTupleScheme(); } } private static class browseKeysTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKeysTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter230 : struct.success.entrySet()) { oprot.writeString(_iter230.getKey()); { oprot.writeI32(_iter230.getValue().size()); for (Map.Entry> _iter231 : _iter230.getValue().entrySet()) { _iter231.getKey().write(oprot); { oprot.writeI32(_iter231.getValue().size()); for (long _iter232 : _iter231.getValue()) { oprot.writeI64(_iter232); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, browseKeysTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map233 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map233.size); String _key234; Map> _val235; for (int _i236 = 0; _i236 < _map233.size; ++_i236) { _key234 = iprot.readString(); { org.apache.thrift.protocol.TMap _map237 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val235 = new LinkedHashMap>(2*_map237.size); com.cinchapi.concourse.thrift.TObject _key238; Set _val239; for (int _i240 = 0; _i240 < _map237.size; ++_i240) { _key238 = new com.cinchapi.concourse.thrift.TObject(); _key238.read(iprot); { org.apache.thrift.protocol.TSet _set241 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val239 = new LinkedHashSet(2*_set241.size); long _elem242; for (int _i243 = 0; _i243 < _set241.size; ++_i243) { _elem242 = iprot.readI64(); _val239.add(_elem242); } } _val235.put(_key238, _val239); } } struct.success.put(_key234, _val235); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class browseKeysTimestr_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("browseKeysTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKeysTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKeysTimestr_argsTupleSchemeFactory()); } public List keys; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(browseKeysTimestr_args.class, metaDataMap); } public browseKeysTimestr_args() { } public browseKeysTimestr_args( List keys, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public browseKeysTimestr_args(browseKeysTimestr_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public browseKeysTimestr_args deepCopy() { return new browseKeysTimestr_args(this); } @Override public void clear() { this.keys = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public browseKeysTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public String getTimestamp() { return this.timestamp; } public browseKeysTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public browseKeysTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public browseKeysTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public browseKeysTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof browseKeysTimestr_args) return this.equals((browseKeysTimestr_args)that); return false; } public boolean equals(browseKeysTimestr_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(browseKeysTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("browseKeysTimestr_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 browseKeysTimestr_argsStandardSchemeFactory implements SchemeFactory { public browseKeysTimestr_argsStandardScheme getScheme() { return new browseKeysTimestr_argsStandardScheme(); } } private static class browseKeysTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKeysTimestr_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list244 = iprot.readListBegin(); struct.keys = new ArrayList(_list244.size); String _elem245; for (int _i246 = 0; _i246 < _list244.size; ++_i246) { _elem245 = iprot.readString(); struct.keys.add(_elem245); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, browseKeysTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter247 : struct.keys) { oprot.writeString(_iter247); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKeysTimestr_argsTupleSchemeFactory implements SchemeFactory { public browseKeysTimestr_argsTupleScheme getScheme() { return new browseKeysTimestr_argsTupleScheme(); } } private static class browseKeysTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKeysTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter248 : struct.keys) { oprot.writeString(_iter248); } } } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, browseKeysTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list249 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list249.size); String _elem250; for (int _i251 = 0; _i251 < _list249.size; ++_i251) { _elem250 = iprot.readString(); struct.keys.add(_elem250); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class browseKeysTimestr_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("browseKeysTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new browseKeysTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new browseKeysTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class), 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.I64)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(browseKeysTimestr_result.class, metaDataMap); } public browseKeysTimestr_result() { } public browseKeysTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public browseKeysTimestr_result(browseKeysTimestr_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { String other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); String __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { com.cinchapi.concourse.thrift.TObject other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_key = new com.cinchapi.concourse.thrift.TObject(other_element_value_element_key); Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public browseKeysTimestr_result deepCopy() { return new browseKeysTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public browseKeysTimestr_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public browseKeysTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public browseKeysTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public browseKeysTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof browseKeysTimestr_result) return this.equals((browseKeysTimestr_result)that); return false; } public boolean equals(browseKeysTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(browseKeysTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("browseKeysTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 browseKeysTimestr_resultStandardSchemeFactory implements SchemeFactory { public browseKeysTimestr_resultStandardScheme getScheme() { return new browseKeysTimestr_resultStandardScheme(); } } private static class browseKeysTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, browseKeysTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map252 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map252.size); String _key253; Map> _val254; for (int _i255 = 0; _i255 < _map252.size; ++_i255) { _key253 = iprot.readString(); { org.apache.thrift.protocol.TMap _map256 = iprot.readMapBegin(); _val254 = new LinkedHashMap>(2*_map256.size); com.cinchapi.concourse.thrift.TObject _key257; Set _val258; for (int _i259 = 0; _i259 < _map256.size; ++_i259) { _key257 = new com.cinchapi.concourse.thrift.TObject(); _key257.read(iprot); { org.apache.thrift.protocol.TSet _set260 = iprot.readSetBegin(); _val258 = new LinkedHashSet(2*_set260.size); long _elem261; for (int _i262 = 0; _i262 < _set260.size; ++_i262) { _elem261 = iprot.readI64(); _val258.add(_elem261); } iprot.readSetEnd(); } _val254.put(_key257, _val258); } iprot.readMapEnd(); } struct.success.put(_key253, _val254); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, browseKeysTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter263 : struct.success.entrySet()) { oprot.writeString(_iter263.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, _iter263.getValue().size())); for (Map.Entry> _iter264 : _iter263.getValue().entrySet()) { _iter264.getKey().write(oprot); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, _iter264.getValue().size())); for (long _iter265 : _iter264.getValue()) { oprot.writeI64(_iter265); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class browseKeysTimestr_resultTupleSchemeFactory implements SchemeFactory { public browseKeysTimestr_resultTupleScheme getScheme() { return new browseKeysTimestr_resultTupleScheme(); } } private static class browseKeysTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, browseKeysTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter266 : struct.success.entrySet()) { oprot.writeString(_iter266.getKey()); { oprot.writeI32(_iter266.getValue().size()); for (Map.Entry> _iter267 : _iter266.getValue().entrySet()) { _iter267.getKey().write(oprot); { oprot.writeI32(_iter267.getValue().size()); for (long _iter268 : _iter267.getValue()) { oprot.writeI64(_iter268); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, browseKeysTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map269 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map269.size); String _key270; Map> _val271; for (int _i272 = 0; _i272 < _map269.size; ++_i272) { _key270 = iprot.readString(); { org.apache.thrift.protocol.TMap _map273 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val271 = new LinkedHashMap>(2*_map273.size); com.cinchapi.concourse.thrift.TObject _key274; Set _val275; for (int _i276 = 0; _i276 < _map273.size; ++_i276) { _key274 = new com.cinchapi.concourse.thrift.TObject(); _key274.read(iprot); { org.apache.thrift.protocol.TSet _set277 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val275 = new LinkedHashSet(2*_set277.size); long _elem278; for (int _i279 = 0; _i279 < _set277.size; ++_i279) { _elem278 = iprot.readI64(); _val275.add(_elem278); } } _val271.put(_key274, _val275); } } struct.success.put(_key270, _val271); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class chronologizeKeyRecord_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("chronologizeKeyRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new chronologizeKeyRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new chronologizeKeyRecord_argsTupleSchemeFactory()); } public String key; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(chronologizeKeyRecord_args.class, metaDataMap); } public chronologizeKeyRecord_args() { } public chronologizeKeyRecord_args( String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public chronologizeKeyRecord_args(chronologizeKeyRecord_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public chronologizeKeyRecord_args deepCopy() { return new chronologizeKeyRecord_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public chronologizeKeyRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public chronologizeKeyRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public chronologizeKeyRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public chronologizeKeyRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public chronologizeKeyRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof chronologizeKeyRecord_args) return this.equals((chronologizeKeyRecord_args)that); return false; } public boolean equals(chronologizeKeyRecord_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(chronologizeKeyRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("chronologizeKeyRecord_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 chronologizeKeyRecord_argsStandardSchemeFactory implements SchemeFactory { public chronologizeKeyRecord_argsStandardScheme getScheme() { return new chronologizeKeyRecord_argsStandardScheme(); } } private static class chronologizeKeyRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, chronologizeKeyRecord_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, chronologizeKeyRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class chronologizeKeyRecord_argsTupleSchemeFactory implements SchemeFactory { public chronologizeKeyRecord_argsTupleScheme getScheme() { return new chronologizeKeyRecord_argsTupleScheme(); } } private static class chronologizeKeyRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class chronologizeKeyRecord_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("chronologizeKeyRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new chronologizeKeyRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new chronologizeKeyRecord_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(chronologizeKeyRecord_result.class, metaDataMap); } public chronologizeKeyRecord_result() { } public chronologizeKeyRecord_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public chronologizeKeyRecord_result(chronologizeKeyRecord_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public chronologizeKeyRecord_result deepCopy() { return new chronologizeKeyRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public chronologizeKeyRecord_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public chronologizeKeyRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public chronologizeKeyRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof chronologizeKeyRecord_result) return this.equals((chronologizeKeyRecord_result)that); return false; } public boolean equals(chronologizeKeyRecord_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(chronologizeKeyRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("chronologizeKeyRecord_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 chronologizeKeyRecord_resultStandardSchemeFactory implements SchemeFactory { public chronologizeKeyRecord_resultStandardScheme getScheme() { return new chronologizeKeyRecord_resultStandardScheme(); } } private static class chronologizeKeyRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, chronologizeKeyRecord_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.MAP) { { org.apache.thrift.protocol.TMap _map280 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map280.size); long _key281; Set _val282; for (int _i283 = 0; _i283 < _map280.size; ++_i283) { _key281 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set284 = iprot.readSetBegin(); _val282 = new LinkedHashSet(2*_set284.size); com.cinchapi.concourse.thrift.TObject _elem285; for (int _i286 = 0; _i286 < _set284.size; ++_i286) { _elem285 = new com.cinchapi.concourse.thrift.TObject(); _elem285.read(iprot); _val282.add(_elem285); } iprot.readSetEnd(); } struct.success.put(_key281, _val282); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, chronologizeKeyRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter287 : struct.success.entrySet()) { oprot.writeI64(_iter287.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter287.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter288 : _iter287.getValue()) { _iter288.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class chronologizeKeyRecord_resultTupleSchemeFactory implements SchemeFactory { public chronologizeKeyRecord_resultTupleScheme getScheme() { return new chronologizeKeyRecord_resultTupleScheme(); } } private static class chronologizeKeyRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter289 : struct.success.entrySet()) { oprot.writeI64(_iter289.getKey()); { oprot.writeI32(_iter289.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter290 : _iter289.getValue()) { _iter290.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map291 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map291.size); long _key292; Set _val293; for (int _i294 = 0; _i294 < _map291.size; ++_i294) { _key292 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set295 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val293 = new LinkedHashSet(2*_set295.size); com.cinchapi.concourse.thrift.TObject _elem296; for (int _i297 = 0; _i297 < _set295.size; ++_i297) { _elem296 = new com.cinchapi.concourse.thrift.TObject(); _elem296.read(iprot); _val293.add(_elem296); } } struct.success.put(_key292, _val293); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class chronologizeKeyRecordStart_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("chronologizeKeyRecordStart_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new chronologizeKeyRecordStart_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new chronologizeKeyRecordStart_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), START((short)3, "start"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __START_ISSET_ID = 1; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(chronologizeKeyRecordStart_args.class, metaDataMap); } public chronologizeKeyRecordStart_args() { } public chronologizeKeyRecordStart_args( String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; setStartIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public chronologizeKeyRecordStart_args(chronologizeKeyRecordStart_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; this.start = other.start; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public chronologizeKeyRecordStart_args deepCopy() { return new chronologizeKeyRecordStart_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setStartIsSet(false); this.start = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public chronologizeKeyRecordStart_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public chronologizeKeyRecordStart_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getStart() { return this.start; } public chronologizeKeyRecordStart_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public chronologizeKeyRecordStart_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public chronologizeKeyRecordStart_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public chronologizeKeyRecordStart_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof chronologizeKeyRecordStart_args) return this.equals((chronologizeKeyRecordStart_args)that); return false; } public boolean equals(chronologizeKeyRecordStart_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_start = true; boolean that_present_start = true; if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (this.start != that.start) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_start = true; list.add(present_start); if (present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(chronologizeKeyRecordStart_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("chronologizeKeyRecordStart_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 chronologizeKeyRecordStart_argsStandardSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStart_argsStandardScheme getScheme() { return new chronologizeKeyRecordStart_argsStandardScheme(); } } private static class chronologizeKeyRecordStart_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, chronologizeKeyRecordStart_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, chronologizeKeyRecordStart_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class chronologizeKeyRecordStart_argsTupleSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStart_argsTupleScheme getScheme() { return new chronologizeKeyRecordStart_argsTupleScheme(); } } private static class chronologizeKeyRecordStart_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStart_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetStart()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetStart()) { oprot.writeI64(struct.start); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStart_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class chronologizeKeyRecordStart_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("chronologizeKeyRecordStart_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new chronologizeKeyRecordStart_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new chronologizeKeyRecordStart_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(chronologizeKeyRecordStart_result.class, metaDataMap); } public chronologizeKeyRecordStart_result() { } public chronologizeKeyRecordStart_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public chronologizeKeyRecordStart_result(chronologizeKeyRecordStart_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public chronologizeKeyRecordStart_result deepCopy() { return new chronologizeKeyRecordStart_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public chronologizeKeyRecordStart_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public chronologizeKeyRecordStart_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public chronologizeKeyRecordStart_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof chronologizeKeyRecordStart_result) return this.equals((chronologizeKeyRecordStart_result)that); return false; } public boolean equals(chronologizeKeyRecordStart_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(chronologizeKeyRecordStart_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("chronologizeKeyRecordStart_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 chronologizeKeyRecordStart_resultStandardSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStart_resultStandardScheme getScheme() { return new chronologizeKeyRecordStart_resultStandardScheme(); } } private static class chronologizeKeyRecordStart_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, chronologizeKeyRecordStart_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.MAP) { { org.apache.thrift.protocol.TMap _map298 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map298.size); long _key299; Set _val300; for (int _i301 = 0; _i301 < _map298.size; ++_i301) { _key299 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set302 = iprot.readSetBegin(); _val300 = new LinkedHashSet(2*_set302.size); com.cinchapi.concourse.thrift.TObject _elem303; for (int _i304 = 0; _i304 < _set302.size; ++_i304) { _elem303 = new com.cinchapi.concourse.thrift.TObject(); _elem303.read(iprot); _val300.add(_elem303); } iprot.readSetEnd(); } struct.success.put(_key299, _val300); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, chronologizeKeyRecordStart_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter305 : struct.success.entrySet()) { oprot.writeI64(_iter305.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter305.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter306 : _iter305.getValue()) { _iter306.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class chronologizeKeyRecordStart_resultTupleSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStart_resultTupleScheme getScheme() { return new chronologizeKeyRecordStart_resultTupleScheme(); } } private static class chronologizeKeyRecordStart_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStart_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter307 : struct.success.entrySet()) { oprot.writeI64(_iter307.getKey()); { oprot.writeI32(_iter307.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter308 : _iter307.getValue()) { _iter308.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStart_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map309 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map309.size); long _key310; Set _val311; for (int _i312 = 0; _i312 < _map309.size; ++_i312) { _key310 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set313 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val311 = new LinkedHashSet(2*_set313.size); com.cinchapi.concourse.thrift.TObject _elem314; for (int _i315 = 0; _i315 < _set313.size; ++_i315) { _elem314 = new com.cinchapi.concourse.thrift.TObject(); _elem314.read(iprot); _val311.add(_elem314); } } struct.success.put(_key310, _val311); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class chronologizeKeyRecordStartstr_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("chronologizeKeyRecordStartstr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new chronologizeKeyRecordStartstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new chronologizeKeyRecordStartstr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), START((short)3, "start"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(chronologizeKeyRecordStartstr_args.class, metaDataMap); } public chronologizeKeyRecordStartstr_args() { } public chronologizeKeyRecordStartstr_args( String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public chronologizeKeyRecordStartstr_args(chronologizeKeyRecordStartstr_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; if (other.isSetStart()) { this.start = other.start; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public chronologizeKeyRecordStartstr_args deepCopy() { return new chronologizeKeyRecordStartstr_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.start = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public chronologizeKeyRecordStartstr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public chronologizeKeyRecordStartstr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getStart() { return this.start; } public chronologizeKeyRecordStartstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if (!value) { this.start = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public chronologizeKeyRecordStartstr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public chronologizeKeyRecordStartstr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public chronologizeKeyRecordStartstr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof chronologizeKeyRecordStartstr_args) return this.equals((chronologizeKeyRecordStartstr_args)that); return false; } public boolean equals(chronologizeKeyRecordStartstr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (!this.start.equals(that.start)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_start = true && (isSetStart()); list.add(present_start); if (present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(chronologizeKeyRecordStartstr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("chronologizeKeyRecordStartstr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("start:"); if (this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 chronologizeKeyRecordStartstr_argsStandardSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartstr_argsStandardScheme getScheme() { return new chronologizeKeyRecordStartstr_argsStandardScheme(); } } private static class chronologizeKeyRecordStartstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, chronologizeKeyRecordStartstr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, chronologizeKeyRecordStartstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class chronologizeKeyRecordStartstr_argsTupleSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartstr_argsTupleScheme getScheme() { return new chronologizeKeyRecordStartstr_argsTupleScheme(); } } private static class chronologizeKeyRecordStartstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetStart()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetStart()) { oprot.writeString(struct.start); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class chronologizeKeyRecordStartstr_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("chronologizeKeyRecordStartstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new chronologizeKeyRecordStartstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new chronologizeKeyRecordStartstr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(chronologizeKeyRecordStartstr_result.class, metaDataMap); } public chronologizeKeyRecordStartstr_result() { } public chronologizeKeyRecordStartstr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public chronologizeKeyRecordStartstr_result(chronologizeKeyRecordStartstr_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public chronologizeKeyRecordStartstr_result deepCopy() { return new chronologizeKeyRecordStartstr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public chronologizeKeyRecordStartstr_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public chronologizeKeyRecordStartstr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public chronologizeKeyRecordStartstr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public chronologizeKeyRecordStartstr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof chronologizeKeyRecordStartstr_result) return this.equals((chronologizeKeyRecordStartstr_result)that); return false; } public boolean equals(chronologizeKeyRecordStartstr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(chronologizeKeyRecordStartstr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("chronologizeKeyRecordStartstr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 chronologizeKeyRecordStartstr_resultStandardSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartstr_resultStandardScheme getScheme() { return new chronologizeKeyRecordStartstr_resultStandardScheme(); } } private static class chronologizeKeyRecordStartstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, chronologizeKeyRecordStartstr_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.MAP) { { org.apache.thrift.protocol.TMap _map316 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map316.size); long _key317; Set _val318; for (int _i319 = 0; _i319 < _map316.size; ++_i319) { _key317 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set320 = iprot.readSetBegin(); _val318 = new LinkedHashSet(2*_set320.size); com.cinchapi.concourse.thrift.TObject _elem321; for (int _i322 = 0; _i322 < _set320.size; ++_i322) { _elem321 = new com.cinchapi.concourse.thrift.TObject(); _elem321.read(iprot); _val318.add(_elem321); } iprot.readSetEnd(); } struct.success.put(_key317, _val318); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, chronologizeKeyRecordStartstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter323 : struct.success.entrySet()) { oprot.writeI64(_iter323.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter323.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter324 : _iter323.getValue()) { _iter324.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class chronologizeKeyRecordStartstr_resultTupleSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartstr_resultTupleScheme getScheme() { return new chronologizeKeyRecordStartstr_resultTupleScheme(); } } private static class chronologizeKeyRecordStartstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter325 : struct.success.entrySet()) { oprot.writeI64(_iter325.getKey()); { oprot.writeI32(_iter325.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter326 : _iter325.getValue()) { _iter326.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartstr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map327 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map327.size); long _key328; Set _val329; for (int _i330 = 0; _i330 < _map327.size; ++_i330) { _key328 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set331 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val329 = new LinkedHashSet(2*_set331.size); com.cinchapi.concourse.thrift.TObject _elem332; for (int _i333 = 0; _i333 < _set331.size; ++_i333) { _elem332 = new com.cinchapi.concourse.thrift.TObject(); _elem332.read(iprot); _val329.add(_elem332); } } struct.success.put(_key328, _val329); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class chronologizeKeyRecordStartEnd_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("chronologizeKeyRecordStartEnd_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField("tend", org.apache.thrift.protocol.TType.I64, (short)4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new chronologizeKeyRecordStartEnd_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new chronologizeKeyRecordStartEnd_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long start; // required public long tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), START((short)3, "start"), TEND((short)4, "tend"), CREDS((short)5, "creds"), TRANSACTION((short)6, "transaction"), ENVIRONMENT((short)7, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // TEND return TEND; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __START_ISSET_ID = 1; private static final int __TEND_ISSET_ID = 2; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(chronologizeKeyRecordStartEnd_args.class, metaDataMap); } public chronologizeKeyRecordStartEnd_args() { } public chronologizeKeyRecordStartEnd_args( String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; setStartIsSet(true); this.tend = tend; setTendIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public chronologizeKeyRecordStartEnd_args(chronologizeKeyRecordStartEnd_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; this.start = other.start; this.tend = other.tend; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public chronologizeKeyRecordStartEnd_args deepCopy() { return new chronologizeKeyRecordStartEnd_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setStartIsSet(false); this.start = 0; setTendIsSet(false); this.tend = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public chronologizeKeyRecordStartEnd_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public chronologizeKeyRecordStartEnd_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getStart() { return this.start; } public chronologizeKeyRecordStartEnd_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public long getTend() { return this.tend; } public chronologizeKeyRecordStartEnd_args setTend(long tend) { this.tend = tend; setTendIsSet(true); return this; } public void unsetTend() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TEND_ISSET_ID); } /** Returns true if field tend is set (has been assigned a value) and false otherwise */ public boolean isSetTend() { return EncodingUtils.testBit(__isset_bitfield, __TEND_ISSET_ID); } public void setTendIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TEND_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public chronologizeKeyRecordStartEnd_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public chronologizeKeyRecordStartEnd_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public chronologizeKeyRecordStartEnd_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((Long)value); } break; case TEND: if (value == null) { unsetTend(); } else { setTend((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof chronologizeKeyRecordStartEnd_args) return this.equals((chronologizeKeyRecordStartEnd_args)that); return false; } public boolean equals(chronologizeKeyRecordStartEnd_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_start = true; boolean that_present_start = true; if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (this.start != that.start) return false; } boolean this_present_tend = true; boolean that_present_tend = true; if (this_present_tend || that_present_tend) { if (!(this_present_tend && that_present_tend)) return false; if (this.tend != that.tend) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_start = true; list.add(present_start); if (present_start) list.add(start); boolean present_tend = true; list.add(present_tend); if (present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(chronologizeKeyRecordStartEnd_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()).compareTo(other.isSetTend()); if (lastComparison != 0) { return lastComparison; } if (isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tend, other.tend); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("chronologizeKeyRecordStartEnd_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if (!first) sb.append(", "); sb.append("tend:"); sb.append(this.tend); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 chronologizeKeyRecordStartEnd_argsStandardSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartEnd_argsStandardScheme getScheme() { return new chronologizeKeyRecordStartEnd_argsStandardScheme(); } } private static class chronologizeKeyRecordStartEnd_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, chronologizeKeyRecordStartEnd_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TEND if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, chronologizeKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeI64(struct.tend); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class chronologizeKeyRecordStartEnd_argsTupleSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartEnd_argsTupleScheme getScheme() { return new chronologizeKeyRecordStartEnd_argsTupleScheme(); } } private static class chronologizeKeyRecordStartEnd_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetStart()) { optionals.set(2); } if (struct.isSetTend()) { optionals.set(3); } if (struct.isSetCreds()) { optionals.set(4); } if (struct.isSetTransaction()) { optionals.set(5); } if (struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetStart()) { oprot.writeI64(struct.start); } if (struct.isSetTend()) { oprot.writeI64(struct.tend); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if (incoming.get(3)) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } if (incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class chronologizeKeyRecordStartEnd_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("chronologizeKeyRecordStartEnd_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new chronologizeKeyRecordStartEnd_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new chronologizeKeyRecordStartEnd_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(chronologizeKeyRecordStartEnd_result.class, metaDataMap); } public chronologizeKeyRecordStartEnd_result() { } public chronologizeKeyRecordStartEnd_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public chronologizeKeyRecordStartEnd_result(chronologizeKeyRecordStartEnd_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public chronologizeKeyRecordStartEnd_result deepCopy() { return new chronologizeKeyRecordStartEnd_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public chronologizeKeyRecordStartEnd_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public chronologizeKeyRecordStartEnd_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public chronologizeKeyRecordStartEnd_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof chronologizeKeyRecordStartEnd_result) return this.equals((chronologizeKeyRecordStartEnd_result)that); return false; } public boolean equals(chronologizeKeyRecordStartEnd_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(chronologizeKeyRecordStartEnd_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("chronologizeKeyRecordStartEnd_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 chronologizeKeyRecordStartEnd_resultStandardSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartEnd_resultStandardScheme getScheme() { return new chronologizeKeyRecordStartEnd_resultStandardScheme(); } } private static class chronologizeKeyRecordStartEnd_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, chronologizeKeyRecordStartEnd_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.MAP) { { org.apache.thrift.protocol.TMap _map334 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map334.size); long _key335; Set _val336; for (int _i337 = 0; _i337 < _map334.size; ++_i337) { _key335 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set338 = iprot.readSetBegin(); _val336 = new LinkedHashSet(2*_set338.size); com.cinchapi.concourse.thrift.TObject _elem339; for (int _i340 = 0; _i340 < _set338.size; ++_i340) { _elem339 = new com.cinchapi.concourse.thrift.TObject(); _elem339.read(iprot); _val336.add(_elem339); } iprot.readSetEnd(); } struct.success.put(_key335, _val336); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, chronologizeKeyRecordStartEnd_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter341 : struct.success.entrySet()) { oprot.writeI64(_iter341.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter341.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter342 : _iter341.getValue()) { _iter342.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class chronologizeKeyRecordStartEnd_resultTupleSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartEnd_resultTupleScheme getScheme() { return new chronologizeKeyRecordStartEnd_resultTupleScheme(); } } private static class chronologizeKeyRecordStartEnd_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartEnd_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter343 : struct.success.entrySet()) { oprot.writeI64(_iter343.getKey()); { oprot.writeI32(_iter343.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter344 : _iter343.getValue()) { _iter344.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartEnd_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map345 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map345.size); long _key346; Set _val347; for (int _i348 = 0; _i348 < _map345.size; ++_i348) { _key346 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set349 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val347 = new LinkedHashSet(2*_set349.size); com.cinchapi.concourse.thrift.TObject _elem350; for (int _i351 = 0; _i351 < _set349.size; ++_i351) { _elem350 = new com.cinchapi.concourse.thrift.TObject(); _elem350.read(iprot); _val347.add(_elem350); } } struct.success.put(_key346, _val347); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class chronologizeKeyRecordStartstrEndstr_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("chronologizeKeyRecordStartstrEndstr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField("tend", org.apache.thrift.protocol.TType.STRING, (short)4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new chronologizeKeyRecordStartstrEndstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new chronologizeKeyRecordStartstrEndstr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String start; // required public String tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), START((short)3, "start"), TEND((short)4, "tend"), CREDS((short)5, "creds"), TRANSACTION((short)6, "transaction"), ENVIRONMENT((short)7, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // TEND return TEND; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(chronologizeKeyRecordStartstrEndstr_args.class, metaDataMap); } public chronologizeKeyRecordStartstrEndstr_args() { } public chronologizeKeyRecordStartstrEndstr_args( String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public chronologizeKeyRecordStartstrEndstr_args(chronologizeKeyRecordStartstrEndstr_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; if (other.isSetStart()) { this.start = other.start; } if (other.isSetTend()) { this.tend = other.tend; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public chronologizeKeyRecordStartstrEndstr_args deepCopy() { return new chronologizeKeyRecordStartstrEndstr_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.start = null; this.tend = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public chronologizeKeyRecordStartstrEndstr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public chronologizeKeyRecordStartstrEndstr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getStart() { return this.start; } public chronologizeKeyRecordStartstrEndstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if (!value) { this.start = null; } } public String getTend() { return this.tend; } public chronologizeKeyRecordStartstrEndstr_args setTend(String tend) { this.tend = tend; return this; } public void unsetTend() { this.tend = null; } /** Returns true if field tend is set (has been assigned a value) and false otherwise */ public boolean isSetTend() { return this.tend != null; } public void setTendIsSet(boolean value) { if (!value) { this.tend = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public chronologizeKeyRecordStartstrEndstr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public chronologizeKeyRecordStartstrEndstr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public chronologizeKeyRecordStartstrEndstr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((String)value); } break; case TEND: if (value == null) { unsetTend(); } else { setTend((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof chronologizeKeyRecordStartstrEndstr_args) return this.equals((chronologizeKeyRecordStartstrEndstr_args)that); return false; } public boolean equals(chronologizeKeyRecordStartstrEndstr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (!this.start.equals(that.start)) return false; } boolean this_present_tend = true && this.isSetTend(); boolean that_present_tend = true && that.isSetTend(); if (this_present_tend || that_present_tend) { if (!(this_present_tend && that_present_tend)) return false; if (!this.tend.equals(that.tend)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_start = true && (isSetStart()); list.add(present_start); if (present_start) list.add(start); boolean present_tend = true && (isSetTend()); list.add(present_tend); if (present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(chronologizeKeyRecordStartstrEndstr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()).compareTo(other.isSetTend()); if (lastComparison != 0) { return lastComparison; } if (isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tend, other.tend); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("chronologizeKeyRecordStartstrEndstr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("start:"); if (this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if (!first) sb.append(", "); sb.append("tend:"); if (this.tend == null) { sb.append("null"); } else { sb.append(this.tend); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 chronologizeKeyRecordStartstrEndstr_argsStandardSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartstrEndstr_argsStandardScheme getScheme() { return new chronologizeKeyRecordStartstrEndstr_argsStandardScheme(); } } private static class chronologizeKeyRecordStartstrEndstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, chronologizeKeyRecordStartstrEndstr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TEND if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, chronologizeKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if (struct.tend != null) { oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeString(struct.tend); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class chronologizeKeyRecordStartstrEndstr_argsTupleSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartstrEndstr_argsTupleScheme getScheme() { return new chronologizeKeyRecordStartstrEndstr_argsTupleScheme(); } } private static class chronologizeKeyRecordStartstrEndstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetStart()) { optionals.set(2); } if (struct.isSetTend()) { optionals.set(3); } if (struct.isSetCreds()) { optionals.set(4); } if (struct.isSetTransaction()) { optionals.set(5); } if (struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetStart()) { oprot.writeString(struct.start); } if (struct.isSetTend()) { oprot.writeString(struct.tend); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if (incoming.get(3)) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } if (incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class chronologizeKeyRecordStartstrEndstr_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("chronologizeKeyRecordStartstrEndstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new chronologizeKeyRecordStartstrEndstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new chronologizeKeyRecordStartstrEndstr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(chronologizeKeyRecordStartstrEndstr_result.class, metaDataMap); } public chronologizeKeyRecordStartstrEndstr_result() { } public chronologizeKeyRecordStartstrEndstr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public chronologizeKeyRecordStartstrEndstr_result(chronologizeKeyRecordStartstrEndstr_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public chronologizeKeyRecordStartstrEndstr_result deepCopy() { return new chronologizeKeyRecordStartstrEndstr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public chronologizeKeyRecordStartstrEndstr_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public chronologizeKeyRecordStartstrEndstr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public chronologizeKeyRecordStartstrEndstr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public chronologizeKeyRecordStartstrEndstr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof chronologizeKeyRecordStartstrEndstr_result) return this.equals((chronologizeKeyRecordStartstrEndstr_result)that); return false; } public boolean equals(chronologizeKeyRecordStartstrEndstr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(chronologizeKeyRecordStartstrEndstr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("chronologizeKeyRecordStartstrEndstr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 chronologizeKeyRecordStartstrEndstr_resultStandardSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartstrEndstr_resultStandardScheme getScheme() { return new chronologizeKeyRecordStartstrEndstr_resultStandardScheme(); } } private static class chronologizeKeyRecordStartstrEndstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, chronologizeKeyRecordStartstrEndstr_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.MAP) { { org.apache.thrift.protocol.TMap _map352 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map352.size); long _key353; Set _val354; for (int _i355 = 0; _i355 < _map352.size; ++_i355) { _key353 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set356 = iprot.readSetBegin(); _val354 = new LinkedHashSet(2*_set356.size); com.cinchapi.concourse.thrift.TObject _elem357; for (int _i358 = 0; _i358 < _set356.size; ++_i358) { _elem357 = new com.cinchapi.concourse.thrift.TObject(); _elem357.read(iprot); _val354.add(_elem357); } iprot.readSetEnd(); } struct.success.put(_key353, _val354); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, chronologizeKeyRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter359 : struct.success.entrySet()) { oprot.writeI64(_iter359.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter359.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter360 : _iter359.getValue()) { _iter360.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class chronologizeKeyRecordStartstrEndstr_resultTupleSchemeFactory implements SchemeFactory { public chronologizeKeyRecordStartstrEndstr_resultTupleScheme getScheme() { return new chronologizeKeyRecordStartstrEndstr_resultTupleScheme(); } } private static class chronologizeKeyRecordStartstrEndstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter361 : struct.success.entrySet()) { oprot.writeI64(_iter361.getKey()); { oprot.writeI32(_iter361.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter362 : _iter361.getValue()) { _iter362.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, chronologizeKeyRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map363 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map363.size); long _key364; Set _val365; for (int _i366 = 0; _i366 < _map363.size; ++_i366) { _key364 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set367 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val365 = new LinkedHashSet(2*_set367.size); com.cinchapi.concourse.thrift.TObject _elem368; for (int _i369 = 0; _i369 < _set367.size; ++_i369) { _elem368 = new com.cinchapi.concourse.thrift.TObject(); _elem368.read(iprot); _val365.add(_elem368); } } struct.success.put(_key364, _val365); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class clearRecord_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("clearRecord_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new clearRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new clearRecord_argsTupleSchemeFactory()); } public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short)1, "record"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORD return RECORD; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearRecord_args.class, metaDataMap); } public clearRecord_args() { } public clearRecord_args( long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public clearRecord_args(clearRecord_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public clearRecord_args deepCopy() { return new clearRecord_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public clearRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public clearRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public clearRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public clearRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof clearRecord_args) return this.equals((clearRecord_args)that); return false; } public boolean equals(clearRecord_args that) { if (that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(clearRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("clearRecord_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 clearRecord_argsStandardSchemeFactory implements SchemeFactory { public clearRecord_argsStandardScheme getScheme() { return new clearRecord_argsStandardScheme(); } } private static class clearRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearRecord_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: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, clearRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearRecord_argsTupleSchemeFactory implements SchemeFactory { public clearRecord_argsTupleScheme getScheme() { return new clearRecord_argsTupleScheme(); } } private static class clearRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecord()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, clearRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class clearRecord_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("clearRecord_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new clearRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new clearRecord_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(clearRecord_result.class, metaDataMap); } public clearRecord_result() { } public clearRecord_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public clearRecord_result(clearRecord_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public clearRecord_result deepCopy() { return new clearRecord_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public clearRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public clearRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof clearRecord_result) return this.equals((clearRecord_result)that); return false; } public boolean equals(clearRecord_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(clearRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("clearRecord_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 clearRecord_resultStandardSchemeFactory implements SchemeFactory { public clearRecord_resultStandardScheme getScheme() { return new clearRecord_resultStandardScheme(); } } private static class clearRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, clearRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearRecord_resultTupleSchemeFactory implements SchemeFactory { public clearRecord_resultTupleScheme getScheme() { return new clearRecord_resultTupleScheme(); } } private static class clearRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } if (struct.isSetEx2()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, clearRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(1)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class clearRecords_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("clearRecords_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new clearRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new clearRecords_argsTupleSchemeFactory()); } public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short)1, "records"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORDS return RECORDS; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearRecords_args.class, metaDataMap); } public clearRecords_args() { } public clearRecords_args( List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public clearRecords_args(clearRecords_args other) { if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public clearRecords_args deepCopy() { return new clearRecords_args(this); } @Override public void clear() { this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public clearRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public clearRecords_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public clearRecords_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public clearRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof clearRecords_args) return this.equals((clearRecords_args)that); return false; } public boolean equals(clearRecords_args that) { if (that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(clearRecords_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("clearRecords_args("); boolean first = true; sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 clearRecords_argsStandardSchemeFactory implements SchemeFactory { public clearRecords_argsStandardScheme getScheme() { return new clearRecords_argsStandardScheme(); } } private static class clearRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearRecords_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: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list370 = iprot.readListBegin(); struct.records = new ArrayList(_list370.size); long _elem371; for (int _i372 = 0; _i372 < _list370.size; ++_i372) { _elem371 = iprot.readI64(); struct.records.add(_elem371); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, clearRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter373 : struct.records) { oprot.writeI64(_iter373); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearRecords_argsTupleSchemeFactory implements SchemeFactory { public clearRecords_argsTupleScheme getScheme() { return new clearRecords_argsTupleScheme(); } } private static class clearRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecords()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter374 : struct.records) { oprot.writeI64(_iter374); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, clearRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list375 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list375.size); long _elem376; for (int _i377 = 0; _i377 < _list375.size; ++_i377) { _elem376 = iprot.readI64(); struct.records.add(_elem376); } } struct.setRecordsIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class clearRecords_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("clearRecords_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new clearRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new clearRecords_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(clearRecords_result.class, metaDataMap); } public clearRecords_result() { } public clearRecords_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public clearRecords_result(clearRecords_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public clearRecords_result deepCopy() { return new clearRecords_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public clearRecords_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public clearRecords_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof clearRecords_result) return this.equals((clearRecords_result)that); return false; } public boolean equals(clearRecords_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(clearRecords_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("clearRecords_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 clearRecords_resultStandardSchemeFactory implements SchemeFactory { public clearRecords_resultStandardScheme getScheme() { return new clearRecords_resultStandardScheme(); } } private static class clearRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, clearRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearRecords_resultTupleSchemeFactory implements SchemeFactory { public clearRecords_resultTupleScheme getScheme() { return new clearRecords_resultTupleScheme(); } } private static class clearRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } if (struct.isSetEx2()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, clearRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(1)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class clearKeyRecord_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("clearKeyRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new clearKeyRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new clearKeyRecord_argsTupleSchemeFactory()); } public String key; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearKeyRecord_args.class, metaDataMap); } public clearKeyRecord_args() { } public clearKeyRecord_args( String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public clearKeyRecord_args(clearKeyRecord_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public clearKeyRecord_args deepCopy() { return new clearKeyRecord_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public clearKeyRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public clearKeyRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public clearKeyRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public clearKeyRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public clearKeyRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof clearKeyRecord_args) return this.equals((clearKeyRecord_args)that); return false; } public boolean equals(clearKeyRecord_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(clearKeyRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("clearKeyRecord_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 clearKeyRecord_argsStandardSchemeFactory implements SchemeFactory { public clearKeyRecord_argsStandardScheme getScheme() { return new clearKeyRecord_argsStandardScheme(); } } private static class clearKeyRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearKeyRecord_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, clearKeyRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearKeyRecord_argsTupleSchemeFactory implements SchemeFactory { public clearKeyRecord_argsTupleScheme getScheme() { return new clearKeyRecord_argsTupleScheme(); } } private static class clearKeyRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, clearKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class clearKeyRecord_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("clearKeyRecord_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new clearKeyRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new clearKeyRecord_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(clearKeyRecord_result.class, metaDataMap); } public clearKeyRecord_result() { } public clearKeyRecord_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public clearKeyRecord_result(clearKeyRecord_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public clearKeyRecord_result deepCopy() { return new clearKeyRecord_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public clearKeyRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public clearKeyRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof clearKeyRecord_result) return this.equals((clearKeyRecord_result)that); return false; } public boolean equals(clearKeyRecord_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(clearKeyRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("clearKeyRecord_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 clearKeyRecord_resultStandardSchemeFactory implements SchemeFactory { public clearKeyRecord_resultStandardScheme getScheme() { return new clearKeyRecord_resultStandardScheme(); } } private static class clearKeyRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearKeyRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, clearKeyRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearKeyRecord_resultTupleSchemeFactory implements SchemeFactory { public clearKeyRecord_resultTupleScheme getScheme() { return new clearKeyRecord_resultTupleScheme(); } } private static class clearKeyRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } if (struct.isSetEx2()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, clearKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(1)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class clearKeysRecord_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("clearKeysRecord_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new clearKeysRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new clearKeysRecord_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORD((short)2, "record"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearKeysRecord_args.class, metaDataMap); } public clearKeysRecord_args() { } public clearKeysRecord_args( List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public clearKeysRecord_args(clearKeysRecord_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public clearKeysRecord_args deepCopy() { return new clearKeysRecord_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public clearKeysRecord_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public long getRecord() { return this.record; } public clearKeysRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public clearKeysRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public clearKeysRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public clearKeysRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof clearKeysRecord_args) return this.equals((clearKeysRecord_args)that); return false; } public boolean equals(clearKeysRecord_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(clearKeysRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("clearKeysRecord_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 clearKeysRecord_argsStandardSchemeFactory implements SchemeFactory { public clearKeysRecord_argsStandardScheme getScheme() { return new clearKeysRecord_argsStandardScheme(); } } private static class clearKeysRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearKeysRecord_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list378 = iprot.readListBegin(); struct.keys = new ArrayList(_list378.size); String _elem379; for (int _i380 = 0; _i380 < _list378.size; ++_i380) { _elem379 = iprot.readString(); struct.keys.add(_elem379); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, clearKeysRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter381 : struct.keys) { oprot.writeString(_iter381); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearKeysRecord_argsTupleSchemeFactory implements SchemeFactory { public clearKeysRecord_argsTupleScheme getScheme() { return new clearKeysRecord_argsTupleScheme(); } } private static class clearKeysRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearKeysRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter382 : struct.keys) { oprot.writeString(_iter382); } } } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, clearKeysRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list383 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list383.size); String _elem384; for (int _i385 = 0; _i385 < _list383.size; ++_i385) { _elem384 = iprot.readString(); struct.keys.add(_elem384); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class clearKeysRecord_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("clearKeysRecord_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new clearKeysRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new clearKeysRecord_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(clearKeysRecord_result.class, metaDataMap); } public clearKeysRecord_result() { } public clearKeysRecord_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public clearKeysRecord_result(clearKeysRecord_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public clearKeysRecord_result deepCopy() { return new clearKeysRecord_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public clearKeysRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public clearKeysRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof clearKeysRecord_result) return this.equals((clearKeysRecord_result)that); return false; } public boolean equals(clearKeysRecord_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(clearKeysRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("clearKeysRecord_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 clearKeysRecord_resultStandardSchemeFactory implements SchemeFactory { public clearKeysRecord_resultStandardScheme getScheme() { return new clearKeysRecord_resultStandardScheme(); } } private static class clearKeysRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearKeysRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, clearKeysRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearKeysRecord_resultTupleSchemeFactory implements SchemeFactory { public clearKeysRecord_resultTupleScheme getScheme() { return new clearKeysRecord_resultTupleScheme(); } } private static class clearKeysRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearKeysRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } if (struct.isSetEx2()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, clearKeysRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(1)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class clearKeyRecords_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("clearKeyRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new clearKeyRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new clearKeyRecords_argsTupleSchemeFactory()); } public String key; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORDS((short)2, "records"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearKeyRecords_args.class, metaDataMap); } public clearKeyRecords_args() { } public clearKeyRecords_args( String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public clearKeyRecords_args(clearKeyRecords_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public clearKeyRecords_args deepCopy() { return new clearKeyRecords_args(this); } @Override public void clear() { this.key = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public clearKeyRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public clearKeyRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public clearKeyRecords_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public clearKeyRecords_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public clearKeyRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof clearKeyRecords_args) return this.equals((clearKeyRecords_args)that); return false; } public boolean equals(clearKeyRecords_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(clearKeyRecords_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("clearKeyRecords_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 clearKeyRecords_argsStandardSchemeFactory implements SchemeFactory { public clearKeyRecords_argsStandardScheme getScheme() { return new clearKeyRecords_argsStandardScheme(); } } private static class clearKeyRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearKeyRecords_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list386 = iprot.readListBegin(); struct.records = new ArrayList(_list386.size); long _elem387; for (int _i388 = 0; _i388 < _list386.size; ++_i388) { _elem387 = iprot.readI64(); struct.records.add(_elem387); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, clearKeyRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter389 : struct.records) { oprot.writeI64(_iter389); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearKeyRecords_argsTupleSchemeFactory implements SchemeFactory { public clearKeyRecords_argsTupleScheme getScheme() { return new clearKeyRecords_argsTupleScheme(); } } private static class clearKeyRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter390 : struct.records) { oprot.writeI64(_iter390); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, clearKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list391 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list391.size); long _elem392; for (int _i393 = 0; _i393 < _list391.size; ++_i393) { _elem392 = iprot.readI64(); struct.records.add(_elem392); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class clearKeyRecords_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("clearKeyRecords_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new clearKeyRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new clearKeyRecords_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(clearKeyRecords_result.class, metaDataMap); } public clearKeyRecords_result() { } public clearKeyRecords_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public clearKeyRecords_result(clearKeyRecords_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public clearKeyRecords_result deepCopy() { return new clearKeyRecords_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public clearKeyRecords_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public clearKeyRecords_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof clearKeyRecords_result) return this.equals((clearKeyRecords_result)that); return false; } public boolean equals(clearKeyRecords_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(clearKeyRecords_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("clearKeyRecords_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 clearKeyRecords_resultStandardSchemeFactory implements SchemeFactory { public clearKeyRecords_resultStandardScheme getScheme() { return new clearKeyRecords_resultStandardScheme(); } } private static class clearKeyRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearKeyRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, clearKeyRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearKeyRecords_resultTupleSchemeFactory implements SchemeFactory { public clearKeyRecords_resultTupleScheme getScheme() { return new clearKeyRecords_resultTupleScheme(); } } private static class clearKeyRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } if (struct.isSetEx2()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, clearKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(1)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class clearKeysRecords_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("clearKeysRecords_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new clearKeysRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new clearKeysRecords_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORDS((short)2, "records"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearKeysRecords_args.class, metaDataMap); } public clearKeysRecords_args() { } public clearKeysRecords_args( List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public clearKeysRecords_args(clearKeysRecords_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public clearKeysRecords_args deepCopy() { return new clearKeysRecords_args(this); } @Override public void clear() { this.keys = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public clearKeysRecords_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public clearKeysRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public clearKeysRecords_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public clearKeysRecords_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public clearKeysRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof clearKeysRecords_args) return this.equals((clearKeysRecords_args)that); return false; } public boolean equals(clearKeysRecords_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(clearKeysRecords_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("clearKeysRecords_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 clearKeysRecords_argsStandardSchemeFactory implements SchemeFactory { public clearKeysRecords_argsStandardScheme getScheme() { return new clearKeysRecords_argsStandardScheme(); } } private static class clearKeysRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearKeysRecords_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list394 = iprot.readListBegin(); struct.keys = new ArrayList(_list394.size); String _elem395; for (int _i396 = 0; _i396 < _list394.size; ++_i396) { _elem395 = iprot.readString(); struct.keys.add(_elem395); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list397 = iprot.readListBegin(); struct.records = new ArrayList(_list397.size); long _elem398; for (int _i399 = 0; _i399 < _list397.size; ++_i399) { _elem398 = iprot.readI64(); struct.records.add(_elem398); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, clearKeysRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter400 : struct.keys) { oprot.writeString(_iter400); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter401 : struct.records) { oprot.writeI64(_iter401); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearKeysRecords_argsTupleSchemeFactory implements SchemeFactory { public clearKeysRecords_argsTupleScheme getScheme() { return new clearKeysRecords_argsTupleScheme(); } } private static class clearKeysRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearKeysRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter402 : struct.keys) { oprot.writeString(_iter402); } } } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter403 : struct.records) { oprot.writeI64(_iter403); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, clearKeysRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list404 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list404.size); String _elem405; for (int _i406 = 0; _i406 < _list404.size; ++_i406) { _elem405 = iprot.readString(); struct.keys.add(_elem405); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list407 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list407.size); long _elem408; for (int _i409 = 0; _i409 < _list407.size; ++_i409) { _elem408 = iprot.readI64(); struct.records.add(_elem408); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class clearKeysRecords_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("clearKeysRecords_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new clearKeysRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new clearKeysRecords_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(clearKeysRecords_result.class, metaDataMap); } public clearKeysRecords_result() { } public clearKeysRecords_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public clearKeysRecords_result(clearKeysRecords_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public clearKeysRecords_result deepCopy() { return new clearKeysRecords_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public clearKeysRecords_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public clearKeysRecords_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof clearKeysRecords_result) return this.equals((clearKeysRecords_result)that); return false; } public boolean equals(clearKeysRecords_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(clearKeysRecords_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("clearKeysRecords_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 clearKeysRecords_resultStandardSchemeFactory implements SchemeFactory { public clearKeysRecords_resultStandardScheme getScheme() { return new clearKeysRecords_resultStandardScheme(); } } private static class clearKeysRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, clearKeysRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, clearKeysRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class clearKeysRecords_resultTupleSchemeFactory implements SchemeFactory { public clearKeysRecords_resultTupleScheme getScheme() { return new clearKeysRecords_resultTupleScheme(); } } private static class clearKeysRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, clearKeysRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } if (struct.isSetEx2()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, clearKeysRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(1)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class commit_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("commit_args"); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new commit_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new commit_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CREDS((short)1, "creds"), TRANSACTION((short)2, "transaction"), ENVIRONMENT((short)3, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // CREDS return CREDS; case 2: // TRANSACTION return TRANSACTION; case 3: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(commit_args.class, metaDataMap); } public commit_args() { } public commit_args( com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public commit_args(commit_args other) { if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public commit_args deepCopy() { return new commit_args(this); } @Override public void clear() { this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public commit_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public commit_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public commit_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof commit_args) return this.equals((commit_args)that); return false; } public boolean equals(commit_args that) { if (that == null) return false; boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(commit_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("commit_args("); boolean first = true; sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 commit_argsStandardSchemeFactory implements SchemeFactory { public commit_argsStandardScheme getScheme() { return new commit_argsStandardScheme(); } } private static class commit_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, commit_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, commit_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class commit_argsTupleSchemeFactory implements SchemeFactory { public commit_argsTupleScheme getScheme() { return new commit_argsTupleScheme(); } } private static class commit_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, commit_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCreds()) { optionals.set(0); } if (struct.isSetTransaction()) { optionals.set(1); } if (struct.isSetEnvironment()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, commit_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(1)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(2)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class commit_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("commit_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new commit_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new commit_resultTupleSchemeFactory()); } public boolean success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(commit_result.class, metaDataMap); } public commit_result() { } public commit_result( boolean success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public commit_result(commit_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public commit_result deepCopy() { return new commit_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = false; this.ex = null; this.ex2 = null; } public boolean isSuccess() { return this.success; } public commit_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public commit_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public commit_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Boolean)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof commit_result) return this.equals((commit_result)that); return false; } public boolean equals(commit_result that) { if (that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if (present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(commit_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("commit_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class commit_resultStandardSchemeFactory implements SchemeFactory { public commit_resultStandardScheme getScheme() { return new commit_resultStandardScheme(); } } private static class commit_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, commit_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, commit_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class commit_resultTupleSchemeFactory implements SchemeFactory { public commit_resultTupleScheme getScheme() { return new commit_resultTupleScheme(); } } private static class commit_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, commit_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { oprot.writeBool(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, commit_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class describe_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("describe_args"); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describe_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new describe_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CREDS((short)1, "creds"), TRANSACTION((short)2, "transaction"), ENVIRONMENT((short)3, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // CREDS return CREDS; case 2: // TRANSACTION return TRANSACTION; case 3: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(describe_args.class, metaDataMap); } public describe_args() { } public describe_args( com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public describe_args(describe_args other) { if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public describe_args deepCopy() { return new describe_args(this); } @Override public void clear() { this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public describe_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public describe_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public describe_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof describe_args) return this.equals((describe_args)that); return false; } public boolean equals(describe_args that) { if (that == null) return false; boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(describe_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("describe_args("); boolean first = true; sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 describe_argsStandardSchemeFactory implements SchemeFactory { public describe_argsStandardScheme getScheme() { return new describe_argsStandardScheme(); } } private static class describe_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describe_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, describe_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describe_argsTupleSchemeFactory implements SchemeFactory { public describe_argsTupleScheme getScheme() { return new describe_argsTupleScheme(); } } private static class describe_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describe_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCreds()) { optionals.set(0); } if (struct.isSetTransaction()) { optionals.set(1); } if (struct.isSetEnvironment()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describe_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(1)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(2)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class describe_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("describe_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describe_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new describe_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(describe_result.class, metaDataMap); } public describe_result() { } public describe_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public describe_result(describe_result other) { if (other.isSetSuccess()) { Set __this__success = new LinkedHashSet(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public describe_result deepCopy() { return new describe_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = 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 LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public describe_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public describe_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public describe_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof describe_result) return this.equals((describe_result)that); return false; } public boolean equals(describe_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(describe_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("describe_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 describe_resultStandardSchemeFactory implements SchemeFactory { public describe_resultStandardScheme getScheme() { return new describe_resultStandardScheme(); } } private static class describe_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describe_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 _set410 = iprot.readSetBegin(); struct.success = new LinkedHashSet(2*_set410.size); String _elem411; for (int _i412 = 0; _i412 < _set410.size; ++_i412) { _elem411 = iprot.readString(); struct.success.add(_elem411); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, describe_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 _iter413 : struct.success) { oprot.writeString(_iter413); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describe_resultTupleSchemeFactory implements SchemeFactory { public describe_resultTupleScheme getScheme() { return new describe_resultTupleScheme(); } } private static class describe_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describe_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (String _iter414 : struct.success) { oprot.writeString(_iter414); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describe_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set415 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashSet(2*_set415.size); String _elem416; for (int _i417 = 0; _i417 < _set415.size; ++_i417) { _elem416 = iprot.readString(); struct.success.add(_elem416); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class describeTime_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("describeTime_args"); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeTime_argsTupleSchemeFactory()); } public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { TIMESTAMP((short)1, "timestamp"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // TIMESTAMP return TIMESTAMP; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(describeTime_args.class, metaDataMap); } public describeTime_args() { } public describeTime_args( long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public describeTime_args(describeTime_args other) { __isset_bitfield = other.__isset_bitfield; this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public describeTime_args deepCopy() { return new describeTime_args(this); } @Override public void clear() { setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getTimestamp() { return this.timestamp; } public describeTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public describeTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public describeTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public describeTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof describeTime_args) return this.equals((describeTime_args)that); return false; } public boolean equals(describeTime_args that) { if (that == null) return false; boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(describeTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("describeTime_args("); boolean first = true; sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 describeTime_argsStandardSchemeFactory implements SchemeFactory { public describeTime_argsStandardScheme getScheme() { return new describeTime_argsStandardScheme(); } } private static class describeTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeTime_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: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, describeTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeTime_argsTupleSchemeFactory implements SchemeFactory { public describeTime_argsTupleScheme getScheme() { return new describeTime_argsTupleScheme(); } } private static class describeTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetTimestamp()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class describeTime_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("describeTime_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeTime_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(describeTime_result.class, metaDataMap); } public describeTime_result() { } public describeTime_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public describeTime_result(describeTime_result other) { if (other.isSetSuccess()) { Set __this__success = new LinkedHashSet(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public describeTime_result deepCopy() { return new describeTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = 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 LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public describeTime_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public describeTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public describeTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof describeTime_result) return this.equals((describeTime_result)that); return false; } public boolean equals(describeTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(describeTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("describeTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 describeTime_resultStandardSchemeFactory implements SchemeFactory { public describeTime_resultStandardScheme getScheme() { return new describeTime_resultStandardScheme(); } } private static class describeTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeTime_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 _set418 = iprot.readSetBegin(); struct.success = new LinkedHashSet(2*_set418.size); String _elem419; for (int _i420 = 0; _i420 < _set418.size; ++_i420) { _elem419 = iprot.readString(); struct.success.add(_elem419); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, describeTime_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 _iter421 : struct.success) { oprot.writeString(_iter421); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeTime_resultTupleSchemeFactory implements SchemeFactory { public describeTime_resultTupleScheme getScheme() { return new describeTime_resultTupleScheme(); } } private static class describeTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (String _iter422 : struct.success) { oprot.writeString(_iter422); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set423 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashSet(2*_set423.size); String _elem424; for (int _i425 = 0; _i425 < _set423.size; ++_i425) { _elem424 = iprot.readString(); struct.success.add(_elem424); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class describeTimestr_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("describeTimestr_args"); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeTimestr_argsTupleSchemeFactory()); } public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { TIMESTAMP((short)1, "timestamp"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // TIMESTAMP return TIMESTAMP; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(describeTimestr_args.class, metaDataMap); } public describeTimestr_args() { } public describeTimestr_args( String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public describeTimestr_args(describeTimestr_args other) { if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public describeTimestr_args deepCopy() { return new describeTimestr_args(this); } @Override public void clear() { this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getTimestamp() { return this.timestamp; } public describeTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public describeTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public describeTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public describeTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof describeTimestr_args) return this.equals((describeTimestr_args)that); return false; } public boolean equals(describeTimestr_args that) { if (that == null) return false; boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(describeTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("describeTimestr_args("); boolean first = true; sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 describeTimestr_argsStandardSchemeFactory implements SchemeFactory { public describeTimestr_argsStandardScheme getScheme() { return new describeTimestr_argsStandardScheme(); } } private static class describeTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeTimestr_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: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, describeTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeTimestr_argsTupleSchemeFactory implements SchemeFactory { public describeTimestr_argsTupleScheme getScheme() { return new describeTimestr_argsTupleScheme(); } } private static class describeTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetTimestamp()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class describeTimestr_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("describeTimestr_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeTimestr_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(describeTimestr_result.class, metaDataMap); } public describeTimestr_result() { } public describeTimestr_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public describeTimestr_result(describeTimestr_result other) { if (other.isSetSuccess()) { Set __this__success = new LinkedHashSet(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public describeTimestr_result deepCopy() { return new describeTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = 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 LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public describeTimestr_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public describeTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public describeTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof describeTimestr_result) return this.equals((describeTimestr_result)that); return false; } public boolean equals(describeTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(describeTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("describeTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 describeTimestr_resultStandardSchemeFactory implements SchemeFactory { public describeTimestr_resultStandardScheme getScheme() { return new describeTimestr_resultStandardScheme(); } } private static class describeTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeTimestr_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 _set426 = iprot.readSetBegin(); struct.success = new LinkedHashSet(2*_set426.size); String _elem427; for (int _i428 = 0; _i428 < _set426.size; ++_i428) { _elem427 = iprot.readString(); struct.success.add(_elem427); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, describeTimestr_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 _iter429 : struct.success) { oprot.writeString(_iter429); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeTimestr_resultTupleSchemeFactory implements SchemeFactory { public describeTimestr_resultTupleScheme getScheme() { return new describeTimestr_resultTupleScheme(); } } private static class describeTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (String _iter430 : struct.success) { oprot.writeString(_iter430); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set431 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashSet(2*_set431.size); String _elem432; for (int _i433 = 0; _i433 < _set431.size; ++_i433) { _elem432 = iprot.readString(); struct.success.add(_elem432); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class describeRecord_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("describeRecord_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecord_argsTupleSchemeFactory()); } public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short)1, "record"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORD return RECORD; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(describeRecord_args.class, metaDataMap); } public describeRecord_args() { } public describeRecord_args( long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public describeRecord_args(describeRecord_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public describeRecord_args deepCopy() { return new describeRecord_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public describeRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public describeRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public describeRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public describeRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof describeRecord_args) return this.equals((describeRecord_args)that); return false; } public boolean equals(describeRecord_args that) { if (that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(describeRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("describeRecord_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 describeRecord_argsStandardSchemeFactory implements SchemeFactory { public describeRecord_argsStandardScheme getScheme() { return new describeRecord_argsStandardScheme(); } } private static class describeRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecord_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: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, describeRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecord_argsTupleSchemeFactory implements SchemeFactory { public describeRecord_argsTupleScheme getScheme() { return new describeRecord_argsTupleScheme(); } } private static class describeRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecord()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class describeRecord_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("describeRecord_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecord_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(describeRecord_result.class, metaDataMap); } public describeRecord_result() { } public describeRecord_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public describeRecord_result(describeRecord_result other) { if (other.isSetSuccess()) { Set __this__success = new LinkedHashSet(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public describeRecord_result deepCopy() { return new describeRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = 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 LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public describeRecord_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public describeRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public describeRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof describeRecord_result) return this.equals((describeRecord_result)that); return false; } public boolean equals(describeRecord_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(describeRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("describeRecord_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 describeRecord_resultStandardSchemeFactory implements SchemeFactory { public describeRecord_resultStandardScheme getScheme() { return new describeRecord_resultStandardScheme(); } } private static class describeRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecord_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 _set434 = iprot.readSetBegin(); struct.success = new LinkedHashSet(2*_set434.size); String _elem435; for (int _i436 = 0; _i436 < _set434.size; ++_i436) { _elem435 = iprot.readString(); struct.success.add(_elem435); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, describeRecord_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 _iter437 : struct.success) { oprot.writeString(_iter437); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecord_resultTupleSchemeFactory implements SchemeFactory { public describeRecord_resultTupleScheme getScheme() { return new describeRecord_resultTupleScheme(); } } private static class describeRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (String _iter438 : struct.success) { oprot.writeString(_iter438); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set439 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashSet(2*_set439.size); String _elem440; for (int _i441 = 0; _i441 < _set439.size; ++_i441) { _elem440 = iprot.readString(); struct.success.add(_elem440); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class describeRecordTime_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("describeRecordTime_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecordTime_argsTupleSchemeFactory()); } public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short)1, "record"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORD return RECORD; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; 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.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(describeRecordTime_args.class, metaDataMap); } public describeRecordTime_args() { } public describeRecordTime_args( long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public describeRecordTime_args(describeRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public describeRecordTime_args deepCopy() { return new describeRecordTime_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public describeRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public describeRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public describeRecordTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public describeRecordTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public describeRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof describeRecordTime_args) return this.equals((describeRecordTime_args)that); return false; } public boolean equals(describeRecordTime_args that) { if (that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(describeRecordTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("describeRecordTime_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 describeRecordTime_argsStandardSchemeFactory implements SchemeFactory { public describeRecordTime_argsStandardScheme getScheme() { return new describeRecordTime_argsStandardScheme(); } } private static class describeRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecordTime_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: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, describeRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecordTime_argsTupleSchemeFactory implements SchemeFactory { public describeRecordTime_argsTupleScheme getScheme() { return new describeRecordTime_argsTupleScheme(); } } private static class describeRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecord()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class describeRecordTime_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("describeRecordTime_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecordTime_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(describeRecordTime_result.class, metaDataMap); } public describeRecordTime_result() { } public describeRecordTime_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public describeRecordTime_result(describeRecordTime_result other) { if (other.isSetSuccess()) { Set __this__success = new LinkedHashSet(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public describeRecordTime_result deepCopy() { return new describeRecordTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = 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 LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public describeRecordTime_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public describeRecordTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public describeRecordTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof describeRecordTime_result) return this.equals((describeRecordTime_result)that); return false; } public boolean equals(describeRecordTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(describeRecordTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("describeRecordTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 describeRecordTime_resultStandardSchemeFactory implements SchemeFactory { public describeRecordTime_resultStandardScheme getScheme() { return new describeRecordTime_resultStandardScheme(); } } private static class describeRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecordTime_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 _set442 = iprot.readSetBegin(); struct.success = new LinkedHashSet(2*_set442.size); String _elem443; for (int _i444 = 0; _i444 < _set442.size; ++_i444) { _elem443 = iprot.readString(); struct.success.add(_elem443); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, describeRecordTime_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 _iter445 : struct.success) { oprot.writeString(_iter445); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecordTime_resultTupleSchemeFactory implements SchemeFactory { public describeRecordTime_resultTupleScheme getScheme() { return new describeRecordTime_resultTupleScheme(); } } private static class describeRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (String _iter446 : struct.success) { oprot.writeString(_iter446); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set447 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashSet(2*_set447.size); String _elem448; for (int _i449 = 0; _i449 < _set447.size; ++_i449) { _elem448 = iprot.readString(); struct.success.add(_elem448); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class describeRecordTimestr_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("describeRecordTimestr_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecordTimestr_argsTupleSchemeFactory()); } public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short)1, "record"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORD return RECORD; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(describeRecordTimestr_args.class, metaDataMap); } public describeRecordTimestr_args() { } public describeRecordTimestr_args( long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public describeRecordTimestr_args(describeRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public describeRecordTimestr_args deepCopy() { return new describeRecordTimestr_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public describeRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public describeRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public describeRecordTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public describeRecordTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public describeRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof describeRecordTimestr_args) return this.equals((describeRecordTimestr_args)that); return false; } public boolean equals(describeRecordTimestr_args that) { if (that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(describeRecordTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("describeRecordTimestr_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 describeRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public describeRecordTimestr_argsStandardScheme getScheme() { return new describeRecordTimestr_argsStandardScheme(); } } private static class describeRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecordTimestr_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: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, describeRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public describeRecordTimestr_argsTupleScheme getScheme() { return new describeRecordTimestr_argsTupleScheme(); } } private static class describeRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecord()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class describeRecordTimestr_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("describeRecordTimestr_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecordTimestr_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(describeRecordTimestr_result.class, metaDataMap); } public describeRecordTimestr_result() { } public describeRecordTimestr_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public describeRecordTimestr_result(describeRecordTimestr_result other) { if (other.isSetSuccess()) { Set __this__success = new LinkedHashSet(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public describeRecordTimestr_result deepCopy() { return new describeRecordTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = 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 LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public describeRecordTimestr_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public describeRecordTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public describeRecordTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public describeRecordTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof describeRecordTimestr_result) return this.equals((describeRecordTimestr_result)that); return false; } public boolean equals(describeRecordTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(describeRecordTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("describeRecordTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 describeRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public describeRecordTimestr_resultStandardScheme getScheme() { return new describeRecordTimestr_resultStandardScheme(); } } private static class describeRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecordTimestr_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 _set450 = iprot.readSetBegin(); struct.success = new LinkedHashSet(2*_set450.size); String _elem451; for (int _i452 = 0; _i452 < _set450.size; ++_i452) { _elem451 = iprot.readString(); struct.success.add(_elem451); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, describeRecordTimestr_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 _iter453 : struct.success) { oprot.writeString(_iter453); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public describeRecordTimestr_resultTupleScheme getScheme() { return new describeRecordTimestr_resultTupleScheme(); } } private static class describeRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (String _iter454 : struct.success) { oprot.writeString(_iter454); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set455 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new LinkedHashSet(2*_set455.size); String _elem456; for (int _i457 = 0; _i457 < _set455.size; ++_i457) { _elem456 = iprot.readString(); struct.success.add(_elem456); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class describeRecords_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("describeRecords_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecords_argsTupleSchemeFactory()); } public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short)1, "records"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORDS return RECORDS; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(describeRecords_args.class, metaDataMap); } public describeRecords_args() { } public describeRecords_args( List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public describeRecords_args(describeRecords_args other) { if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public describeRecords_args deepCopy() { return new describeRecords_args(this); } @Override public void clear() { this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public describeRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public describeRecords_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public describeRecords_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public describeRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof describeRecords_args) return this.equals((describeRecords_args)that); return false; } public boolean equals(describeRecords_args that) { if (that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(describeRecords_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("describeRecords_args("); boolean first = true; sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 describeRecords_argsStandardSchemeFactory implements SchemeFactory { public describeRecords_argsStandardScheme getScheme() { return new describeRecords_argsStandardScheme(); } } private static class describeRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecords_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: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list458 = iprot.readListBegin(); struct.records = new ArrayList(_list458.size); long _elem459; for (int _i460 = 0; _i460 < _list458.size; ++_i460) { _elem459 = iprot.readI64(); struct.records.add(_elem459); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, describeRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter461 : struct.records) { oprot.writeI64(_iter461); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecords_argsTupleSchemeFactory implements SchemeFactory { public describeRecords_argsTupleScheme getScheme() { return new describeRecords_argsTupleScheme(); } } private static class describeRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecords()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter462 : struct.records) { oprot.writeI64(_iter462); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list463 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list463.size); long _elem464; for (int _i465 = 0; _i465 < _list463.size; ++_i465) { _elem464 = iprot.readI64(); struct.records.add(_elem464); } } struct.setRecordsIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class describeRecords_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("describeRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecords_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 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.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(describeRecords_result.class, metaDataMap); } public describeRecords_result() { } public describeRecords_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public describeRecords_result(describeRecords_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public describeRecords_result deepCopy() { return new describeRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public describeRecords_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public describeRecords_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public describeRecords_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof describeRecords_result) return this.equals((describeRecords_result)that); return false; } public boolean equals(describeRecords_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(describeRecords_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("describeRecords_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 describeRecords_resultStandardSchemeFactory implements SchemeFactory { public describeRecords_resultStandardScheme getScheme() { return new describeRecords_resultStandardScheme(); } } private static class describeRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecords_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.MAP) { { org.apache.thrift.protocol.TMap _map466 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map466.size); long _key467; Set _val468; for (int _i469 = 0; _i469 < _map466.size; ++_i469) { _key467 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set470 = iprot.readSetBegin(); _val468 = new LinkedHashSet(2*_set470.size); String _elem471; for (int _i472 = 0; _i472 < _set470.size; ++_i472) { _elem471 = iprot.readString(); _val468.add(_elem471); } iprot.readSetEnd(); } struct.success.put(_key467, _val468); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, describeRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter473 : struct.success.entrySet()) { oprot.writeI64(_iter473.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, _iter473.getValue().size())); for (String _iter474 : _iter473.getValue()) { oprot.writeString(_iter474); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecords_resultTupleSchemeFactory implements SchemeFactory { public describeRecords_resultTupleScheme getScheme() { return new describeRecords_resultTupleScheme(); } } private static class describeRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter475 : struct.success.entrySet()) { oprot.writeI64(_iter475.getKey()); { oprot.writeI32(_iter475.getValue().size()); for (String _iter476 : _iter475.getValue()) { oprot.writeString(_iter476); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map477 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map477.size); long _key478; Set _val479; for (int _i480 = 0; _i480 < _map477.size; ++_i480) { _key478 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set481 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); _val479 = new LinkedHashSet(2*_set481.size); String _elem482; for (int _i483 = 0; _i483 < _set481.size; ++_i483) { _elem482 = iprot.readString(); _val479.add(_elem482); } } struct.success.put(_key478, _val479); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class describeRecordsTime_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("describeRecordsTime_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecordsTime_argsTupleSchemeFactory()); } public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short)1, "records"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORDS return RECORDS; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(describeRecordsTime_args.class, metaDataMap); } public describeRecordsTime_args() { } public describeRecordsTime_args( List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public describeRecordsTime_args(describeRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public describeRecordsTime_args deepCopy() { return new describeRecordsTime_args(this); } @Override public void clear() { this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public describeRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public describeRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public describeRecordsTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public describeRecordsTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public describeRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof describeRecordsTime_args) return this.equals((describeRecordsTime_args)that); return false; } public boolean equals(describeRecordsTime_args that) { if (that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(describeRecordsTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("describeRecordsTime_args("); boolean first = true; sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 describeRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public describeRecordsTime_argsStandardScheme getScheme() { return new describeRecordsTime_argsStandardScheme(); } } private static class describeRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecordsTime_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: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list484 = iprot.readListBegin(); struct.records = new ArrayList(_list484.size); long _elem485; for (int _i486 = 0; _i486 < _list484.size; ++_i486) { _elem485 = iprot.readI64(); struct.records.add(_elem485); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, describeRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter487 : struct.records) { oprot.writeI64(_iter487); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public describeRecordsTime_argsTupleScheme getScheme() { return new describeRecordsTime_argsTupleScheme(); } } private static class describeRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecords()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter488 : struct.records) { oprot.writeI64(_iter488); } } } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list489 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list489.size); long _elem490; for (int _i491 = 0; _i491 < _list489.size; ++_i491) { _elem490 = iprot.readI64(); struct.records.add(_elem490); } } struct.setRecordsIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class describeRecordsTime_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("describeRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecordsTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 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.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(describeRecordsTime_result.class, metaDataMap); } public describeRecordsTime_result() { } public describeRecordsTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public describeRecordsTime_result(describeRecordsTime_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public describeRecordsTime_result deepCopy() { return new describeRecordsTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public describeRecordsTime_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public describeRecordsTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public describeRecordsTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof describeRecordsTime_result) return this.equals((describeRecordsTime_result)that); return false; } public boolean equals(describeRecordsTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(describeRecordsTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("describeRecordsTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 describeRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public describeRecordsTime_resultStandardScheme getScheme() { return new describeRecordsTime_resultStandardScheme(); } } private static class describeRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecordsTime_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.MAP) { { org.apache.thrift.protocol.TMap _map492 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map492.size); long _key493; Set _val494; for (int _i495 = 0; _i495 < _map492.size; ++_i495) { _key493 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set496 = iprot.readSetBegin(); _val494 = new LinkedHashSet(2*_set496.size); String _elem497; for (int _i498 = 0; _i498 < _set496.size; ++_i498) { _elem497 = iprot.readString(); _val494.add(_elem497); } iprot.readSetEnd(); } struct.success.put(_key493, _val494); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, describeRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter499 : struct.success.entrySet()) { oprot.writeI64(_iter499.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, _iter499.getValue().size())); for (String _iter500 : _iter499.getValue()) { oprot.writeString(_iter500); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public describeRecordsTime_resultTupleScheme getScheme() { return new describeRecordsTime_resultTupleScheme(); } } private static class describeRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter501 : struct.success.entrySet()) { oprot.writeI64(_iter501.getKey()); { oprot.writeI32(_iter501.getValue().size()); for (String _iter502 : _iter501.getValue()) { oprot.writeString(_iter502); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map503 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map503.size); long _key504; Set _val505; for (int _i506 = 0; _i506 < _map503.size; ++_i506) { _key504 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set507 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); _val505 = new LinkedHashSet(2*_set507.size); String _elem508; for (int _i509 = 0; _i509 < _set507.size; ++_i509) { _elem508 = iprot.readString(); _val505.add(_elem508); } } struct.success.put(_key504, _val505); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class describeRecordsTimestr_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("describeRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecordsTimestr_argsTupleSchemeFactory()); } public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short)1, "records"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORDS return RECORDS; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(describeRecordsTimestr_args.class, metaDataMap); } public describeRecordsTimestr_args() { } public describeRecordsTimestr_args( List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public describeRecordsTimestr_args(describeRecordsTimestr_args other) { if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public describeRecordsTimestr_args deepCopy() { return new describeRecordsTimestr_args(this); } @Override public void clear() { this.records = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public describeRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public describeRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public describeRecordsTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public describeRecordsTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public describeRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof describeRecordsTimestr_args) return this.equals((describeRecordsTimestr_args)that); return false; } public boolean equals(describeRecordsTimestr_args that) { if (that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(describeRecordsTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("describeRecordsTimestr_args("); boolean first = true; sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 describeRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public describeRecordsTimestr_argsStandardScheme getScheme() { return new describeRecordsTimestr_argsStandardScheme(); } } private static class describeRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecordsTimestr_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: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list510 = iprot.readListBegin(); struct.records = new ArrayList(_list510.size); long _elem511; for (int _i512 = 0; _i512 < _list510.size; ++_i512) { _elem511 = iprot.readI64(); struct.records.add(_elem511); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, describeRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter513 : struct.records) { oprot.writeI64(_iter513); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public describeRecordsTimestr_argsTupleScheme getScheme() { return new describeRecordsTimestr_argsTupleScheme(); } } private static class describeRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecords()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter514 : struct.records) { oprot.writeI64(_iter514); } } } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list515 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list515.size); long _elem516; for (int _i517 = 0; _i517 < _list515.size; ++_i517) { _elem516 = iprot.readI64(); struct.records.add(_elem516); } } struct.setRecordsIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class describeRecordsTimestr_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("describeRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new describeRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new describeRecordsTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 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.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(describeRecordsTimestr_result.class, metaDataMap); } public describeRecordsTimestr_result() { } public describeRecordsTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public describeRecordsTimestr_result(describeRecordsTimestr_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public describeRecordsTimestr_result deepCopy() { return new describeRecordsTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public describeRecordsTimestr_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public describeRecordsTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public describeRecordsTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public describeRecordsTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof describeRecordsTimestr_result) return this.equals((describeRecordsTimestr_result)that); return false; } public boolean equals(describeRecordsTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(describeRecordsTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("describeRecordsTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 describeRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public describeRecordsTimestr_resultStandardScheme getScheme() { return new describeRecordsTimestr_resultStandardScheme(); } } private static class describeRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, describeRecordsTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map518 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map518.size); long _key519; Set _val520; for (int _i521 = 0; _i521 < _map518.size; ++_i521) { _key519 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set522 = iprot.readSetBegin(); _val520 = new LinkedHashSet(2*_set522.size); String _elem523; for (int _i524 = 0; _i524 < _set522.size; ++_i524) { _elem523 = iprot.readString(); _val520.add(_elem523); } iprot.readSetEnd(); } struct.success.put(_key519, _val520); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, describeRecordsTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter525 : struct.success.entrySet()) { oprot.writeI64(_iter525.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, _iter525.getValue().size())); for (String _iter526 : _iter525.getValue()) { oprot.writeString(_iter526); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class describeRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public describeRecordsTimestr_resultTupleScheme getScheme() { return new describeRecordsTimestr_resultTupleScheme(); } } private static class describeRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, describeRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter527 : struct.success.entrySet()) { oprot.writeI64(_iter527.getKey()); { oprot.writeI32(_iter527.getValue().size()); for (String _iter528 : _iter527.getValue()) { oprot.writeString(_iter528); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, describeRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map529 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map529.size); long _key530; Set _val531; for (int _i532 = 0; _i532 < _map529.size; ++_i532) { _key530 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set533 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); _val531 = new LinkedHashSet(2*_set533.size); String _elem534; for (int _i535 = 0; _i535 < _set533.size; ++_i535) { _elem534 = iprot.readString(); _val531.add(_elem534); } } struct.success.put(_key530, _val531); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class diffRecordStart_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("diffRecordStart_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffRecordStart_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffRecordStart_argsTupleSchemeFactory()); } public long record; // required public long start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short)1, "record"), START((short)2, "start"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORD return RECORD; case 2: // START return START; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __START_ISSET_ID = 1; 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.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(diffRecordStart_args.class, metaDataMap); } public diffRecordStart_args() { } public diffRecordStart_args( long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.start = start; setStartIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffRecordStart_args(diffRecordStart_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; this.start = other.start; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public diffRecordStart_args deepCopy() { return new diffRecordStart_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; setStartIsSet(false); this.start = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public diffRecordStart_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getStart() { return this.start; } public diffRecordStart_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffRecordStart_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffRecordStart_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffRecordStart_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORD: return isSetRecord(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffRecordStart_args) return this.equals((diffRecordStart_args)that); return false; } public boolean equals(diffRecordStart_args that) { if (that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_start = true; boolean that_present_start = true; if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (this.start != that.start) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_start = true; list.add(present_start); if (present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffRecordStart_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("diffRecordStart_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 diffRecordStart_argsStandardSchemeFactory implements SchemeFactory { public diffRecordStart_argsStandardScheme getScheme() { return new diffRecordStart_argsStandardScheme(); } } private static class diffRecordStart_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffRecordStart_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: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, diffRecordStart_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffRecordStart_argsTupleSchemeFactory implements SchemeFactory { public diffRecordStart_argsTupleScheme getScheme() { return new diffRecordStart_argsTupleScheme(); } } private static class diffRecordStart_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffRecordStart_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecord()) { optionals.set(0); } if (struct.isSetStart()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetStart()) { oprot.writeI64(struct.start); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffRecordStart_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(1)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffRecordStart_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("diffRecordStart_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffRecordStart_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffRecordStart_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Diff.class), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(diffRecordStart_result.class, metaDataMap); } public diffRecordStart_result() { } public diffRecordStart_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public diffRecordStart_result(diffRecordStart_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { String other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); String __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public diffRecordStart_result deepCopy() { return new diffRecordStart_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public diffRecordStart_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffRecordStart_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffRecordStart_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffRecordStart_result) return this.equals((diffRecordStart_result)that); return false; } public boolean equals(diffRecordStart_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(diffRecordStart_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("diffRecordStart_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 diffRecordStart_resultStandardSchemeFactory implements SchemeFactory { public diffRecordStart_resultStandardScheme getScheme() { return new diffRecordStart_resultStandardScheme(); } } private static class diffRecordStart_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffRecordStart_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.MAP) { { org.apache.thrift.protocol.TMap _map536 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map536.size); String _key537; Map> _val538; for (int _i539 = 0; _i539 < _map536.size; ++_i539) { _key537 = iprot.readString(); { org.apache.thrift.protocol.TMap _map540 = iprot.readMapBegin(); _val538 = new LinkedHashMap>(2*_map540.size); com.cinchapi.concourse.thrift.Diff _key541; Set _val542; for (int _i543 = 0; _i543 < _map540.size; ++_i543) { _key541 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set544 = iprot.readSetBegin(); _val542 = new LinkedHashSet(2*_set544.size); com.cinchapi.concourse.thrift.TObject _elem545; for (int _i546 = 0; _i546 < _set544.size; ++_i546) { _elem545 = new com.cinchapi.concourse.thrift.TObject(); _elem545.read(iprot); _val542.add(_elem545); } iprot.readSetEnd(); } _val538.put(_key541, _val542); } iprot.readMapEnd(); } struct.success.put(_key537, _val538); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, diffRecordStart_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter547 : struct.success.entrySet()) { oprot.writeString(_iter547.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter547.getValue().size())); for (Map.Entry> _iter548 : _iter547.getValue().entrySet()) { oprot.writeI32(_iter548.getKey().getValue()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter548.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter549 : _iter548.getValue()) { _iter549.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffRecordStart_resultTupleSchemeFactory implements SchemeFactory { public diffRecordStart_resultTupleScheme getScheme() { return new diffRecordStart_resultTupleScheme(); } } private static class diffRecordStart_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffRecordStart_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter550 : struct.success.entrySet()) { oprot.writeString(_iter550.getKey()); { oprot.writeI32(_iter550.getValue().size()); for (Map.Entry> _iter551 : _iter550.getValue().entrySet()) { oprot.writeI32(_iter551.getKey().getValue()); { oprot.writeI32(_iter551.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter552 : _iter551.getValue()) { _iter552.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffRecordStart_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map553 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map553.size); String _key554; Map> _val555; for (int _i556 = 0; _i556 < _map553.size; ++_i556) { _key554 = iprot.readString(); { org.apache.thrift.protocol.TMap _map557 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val555 = new LinkedHashMap>(2*_map557.size); com.cinchapi.concourse.thrift.Diff _key558; Set _val559; for (int _i560 = 0; _i560 < _map557.size; ++_i560) { _key558 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set561 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val559 = new LinkedHashSet(2*_set561.size); com.cinchapi.concourse.thrift.TObject _elem562; for (int _i563 = 0; _i563 < _set561.size; ++_i563) { _elem562 = new com.cinchapi.concourse.thrift.TObject(); _elem562.read(iprot); _val559.add(_elem562); } } _val555.put(_key558, _val559); } } struct.success.put(_key554, _val555); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class diffRecordStartstr_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("diffRecordStartstr_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffRecordStartstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffRecordStartstr_argsTupleSchemeFactory()); } public long record; // required public String start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short)1, "record"), START((short)2, "start"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORD return RECORD; case 2: // START return START; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(diffRecordStartstr_args.class, metaDataMap); } public diffRecordStartstr_args() { } public diffRecordStartstr_args( long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffRecordStartstr_args(diffRecordStartstr_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if (other.isSetStart()) { this.start = other.start; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public diffRecordStartstr_args deepCopy() { return new diffRecordStartstr_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.start = null; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public diffRecordStartstr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getStart() { return this.start; } public diffRecordStartstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if (!value) { this.start = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffRecordStartstr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffRecordStartstr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffRecordStartstr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORD: return isSetRecord(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffRecordStartstr_args) return this.equals((diffRecordStartstr_args)that); return false; } public boolean equals(diffRecordStartstr_args that) { if (that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (!this.start.equals(that.start)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_start = true && (isSetStart()); list.add(present_start); if (present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffRecordStartstr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("diffRecordStartstr_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("start:"); if (this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 diffRecordStartstr_argsStandardSchemeFactory implements SchemeFactory { public diffRecordStartstr_argsStandardScheme getScheme() { return new diffRecordStartstr_argsStandardScheme(); } } private static class diffRecordStartstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffRecordStartstr_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: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, diffRecordStartstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffRecordStartstr_argsTupleSchemeFactory implements SchemeFactory { public diffRecordStartstr_argsTupleScheme getScheme() { return new diffRecordStartstr_argsTupleScheme(); } } private static class diffRecordStartstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffRecordStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecord()) { optionals.set(0); } if (struct.isSetStart()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetStart()) { oprot.writeString(struct.start); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffRecordStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(1)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffRecordStartstr_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("diffRecordStartstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffRecordStartstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffRecordStartstr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Diff.class), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(diffRecordStartstr_result.class, metaDataMap); } public diffRecordStartstr_result() { } public diffRecordStartstr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public diffRecordStartstr_result(diffRecordStartstr_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { String other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); String __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public diffRecordStartstr_result deepCopy() { return new diffRecordStartstr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public diffRecordStartstr_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffRecordStartstr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffRecordStartstr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public diffRecordStartstr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffRecordStartstr_result) return this.equals((diffRecordStartstr_result)that); return false; } public boolean equals(diffRecordStartstr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(diffRecordStartstr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("diffRecordStartstr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 diffRecordStartstr_resultStandardSchemeFactory implements SchemeFactory { public diffRecordStartstr_resultStandardScheme getScheme() { return new diffRecordStartstr_resultStandardScheme(); } } private static class diffRecordStartstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffRecordStartstr_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.MAP) { { org.apache.thrift.protocol.TMap _map564 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map564.size); String _key565; Map> _val566; for (int _i567 = 0; _i567 < _map564.size; ++_i567) { _key565 = iprot.readString(); { org.apache.thrift.protocol.TMap _map568 = iprot.readMapBegin(); _val566 = new LinkedHashMap>(2*_map568.size); com.cinchapi.concourse.thrift.Diff _key569; Set _val570; for (int _i571 = 0; _i571 < _map568.size; ++_i571) { _key569 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set572 = iprot.readSetBegin(); _val570 = new LinkedHashSet(2*_set572.size); com.cinchapi.concourse.thrift.TObject _elem573; for (int _i574 = 0; _i574 < _set572.size; ++_i574) { _elem573 = new com.cinchapi.concourse.thrift.TObject(); _elem573.read(iprot); _val570.add(_elem573); } iprot.readSetEnd(); } _val566.put(_key569, _val570); } iprot.readMapEnd(); } struct.success.put(_key565, _val566); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, diffRecordStartstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter575 : struct.success.entrySet()) { oprot.writeString(_iter575.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter575.getValue().size())); for (Map.Entry> _iter576 : _iter575.getValue().entrySet()) { oprot.writeI32(_iter576.getKey().getValue()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter576.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter577 : _iter576.getValue()) { _iter577.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffRecordStartstr_resultTupleSchemeFactory implements SchemeFactory { public diffRecordStartstr_resultTupleScheme getScheme() { return new diffRecordStartstr_resultTupleScheme(); } } private static class diffRecordStartstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffRecordStartstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter578 : struct.success.entrySet()) { oprot.writeString(_iter578.getKey()); { oprot.writeI32(_iter578.getValue().size()); for (Map.Entry> _iter579 : _iter578.getValue().entrySet()) { oprot.writeI32(_iter579.getKey().getValue()); { oprot.writeI32(_iter579.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter580 : _iter579.getValue()) { _iter580.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffRecordStartstr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map581 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map581.size); String _key582; Map> _val583; for (int _i584 = 0; _i584 < _map581.size; ++_i584) { _key582 = iprot.readString(); { org.apache.thrift.protocol.TMap _map585 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val583 = new LinkedHashMap>(2*_map585.size); com.cinchapi.concourse.thrift.Diff _key586; Set _val587; for (int _i588 = 0; _i588 < _map585.size; ++_i588) { _key586 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set589 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val587 = new LinkedHashSet(2*_set589.size); com.cinchapi.concourse.thrift.TObject _elem590; for (int _i591 = 0; _i591 < _set589.size; ++_i591) { _elem590 = new com.cinchapi.concourse.thrift.TObject(); _elem590.read(iprot); _val587.add(_elem590); } } _val583.put(_key586, _val587); } } struct.success.put(_key582, _val583); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class diffRecordStartEnd_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("diffRecordStartEnd_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField("tend", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffRecordStartEnd_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffRecordStartEnd_argsTupleSchemeFactory()); } public long record; // required public long start; // required public long tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short)1, "record"), START((short)2, "start"), TEND((short)3, "tend"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORD return RECORD; case 2: // START return START; case 3: // TEND return TEND; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __START_ISSET_ID = 1; private static final int __TEND_ISSET_ID = 2; 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.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(diffRecordStartEnd_args.class, metaDataMap); } public diffRecordStartEnd_args() { } public diffRecordStartEnd_args( long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.start = start; setStartIsSet(true); this.tend = tend; setTendIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffRecordStartEnd_args(diffRecordStartEnd_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; this.start = other.start; this.tend = other.tend; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public diffRecordStartEnd_args deepCopy() { return new diffRecordStartEnd_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; setStartIsSet(false); this.start = 0; setTendIsSet(false); this.tend = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public diffRecordStartEnd_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getStart() { return this.start; } public diffRecordStartEnd_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public long getTend() { return this.tend; } public diffRecordStartEnd_args setTend(long tend) { this.tend = tend; setTendIsSet(true); return this; } public void unsetTend() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TEND_ISSET_ID); } /** Returns true if field tend is set (has been assigned a value) and false otherwise */ public boolean isSetTend() { return EncodingUtils.testBit(__isset_bitfield, __TEND_ISSET_ID); } public void setTendIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TEND_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffRecordStartEnd_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffRecordStartEnd_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffRecordStartEnd_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((Long)value); } break; case TEND: if (value == null) { unsetTend(); } else { setTend((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORD: return isSetRecord(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffRecordStartEnd_args) return this.equals((diffRecordStartEnd_args)that); return false; } public boolean equals(diffRecordStartEnd_args that) { if (that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_start = true; boolean that_present_start = true; if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (this.start != that.start) return false; } boolean this_present_tend = true; boolean that_present_tend = true; if (this_present_tend || that_present_tend) { if (!(this_present_tend && that_present_tend)) return false; if (this.tend != that.tend) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_start = true; list.add(present_start); if (present_start) list.add(start); boolean present_tend = true; list.add(present_tend); if (present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffRecordStartEnd_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()).compareTo(other.isSetTend()); if (lastComparison != 0) { return lastComparison; } if (isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tend, other.tend); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("diffRecordStartEnd_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if (!first) sb.append(", "); sb.append("tend:"); sb.append(this.tend); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 diffRecordStartEnd_argsStandardSchemeFactory implements SchemeFactory { public diffRecordStartEnd_argsStandardScheme getScheme() { return new diffRecordStartEnd_argsStandardScheme(); } } private static class diffRecordStartEnd_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffRecordStartEnd_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: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TEND if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, diffRecordStartEnd_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeI64(struct.tend); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffRecordStartEnd_argsTupleSchemeFactory implements SchemeFactory { public diffRecordStartEnd_argsTupleScheme getScheme() { return new diffRecordStartEnd_argsTupleScheme(); } } private static class diffRecordStartEnd_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffRecordStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecord()) { optionals.set(0); } if (struct.isSetStart()) { optionals.set(1); } if (struct.isSetTend()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetStart()) { oprot.writeI64(struct.start); } if (struct.isSetTend()) { oprot.writeI64(struct.tend); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffRecordStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(1)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if (incoming.get(2)) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffRecordStartEnd_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("diffRecordStartEnd_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffRecordStartEnd_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffRecordStartEnd_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Diff.class), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(diffRecordStartEnd_result.class, metaDataMap); } public diffRecordStartEnd_result() { } public diffRecordStartEnd_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public diffRecordStartEnd_result(diffRecordStartEnd_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { String other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); String __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public diffRecordStartEnd_result deepCopy() { return new diffRecordStartEnd_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public diffRecordStartEnd_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffRecordStartEnd_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffRecordStartEnd_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffRecordStartEnd_result) return this.equals((diffRecordStartEnd_result)that); return false; } public boolean equals(diffRecordStartEnd_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(diffRecordStartEnd_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("diffRecordStartEnd_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 diffRecordStartEnd_resultStandardSchemeFactory implements SchemeFactory { public diffRecordStartEnd_resultStandardScheme getScheme() { return new diffRecordStartEnd_resultStandardScheme(); } } private static class diffRecordStartEnd_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffRecordStartEnd_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.MAP) { { org.apache.thrift.protocol.TMap _map592 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map592.size); String _key593; Map> _val594; for (int _i595 = 0; _i595 < _map592.size; ++_i595) { _key593 = iprot.readString(); { org.apache.thrift.protocol.TMap _map596 = iprot.readMapBegin(); _val594 = new LinkedHashMap>(2*_map596.size); com.cinchapi.concourse.thrift.Diff _key597; Set _val598; for (int _i599 = 0; _i599 < _map596.size; ++_i599) { _key597 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set600 = iprot.readSetBegin(); _val598 = new LinkedHashSet(2*_set600.size); com.cinchapi.concourse.thrift.TObject _elem601; for (int _i602 = 0; _i602 < _set600.size; ++_i602) { _elem601 = new com.cinchapi.concourse.thrift.TObject(); _elem601.read(iprot); _val598.add(_elem601); } iprot.readSetEnd(); } _val594.put(_key597, _val598); } iprot.readMapEnd(); } struct.success.put(_key593, _val594); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, diffRecordStartEnd_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter603 : struct.success.entrySet()) { oprot.writeString(_iter603.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter603.getValue().size())); for (Map.Entry> _iter604 : _iter603.getValue().entrySet()) { oprot.writeI32(_iter604.getKey().getValue()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter604.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter605 : _iter604.getValue()) { _iter605.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffRecordStartEnd_resultTupleSchemeFactory implements SchemeFactory { public diffRecordStartEnd_resultTupleScheme getScheme() { return new diffRecordStartEnd_resultTupleScheme(); } } private static class diffRecordStartEnd_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffRecordStartEnd_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter606 : struct.success.entrySet()) { oprot.writeString(_iter606.getKey()); { oprot.writeI32(_iter606.getValue().size()); for (Map.Entry> _iter607 : _iter606.getValue().entrySet()) { oprot.writeI32(_iter607.getKey().getValue()); { oprot.writeI32(_iter607.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter608 : _iter607.getValue()) { _iter608.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffRecordStartEnd_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map609 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map609.size); String _key610; Map> _val611; for (int _i612 = 0; _i612 < _map609.size; ++_i612) { _key610 = iprot.readString(); { org.apache.thrift.protocol.TMap _map613 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val611 = new LinkedHashMap>(2*_map613.size); com.cinchapi.concourse.thrift.Diff _key614; Set _val615; for (int _i616 = 0; _i616 < _map613.size; ++_i616) { _key614 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set617 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val615 = new LinkedHashSet(2*_set617.size); com.cinchapi.concourse.thrift.TObject _elem618; for (int _i619 = 0; _i619 < _set617.size; ++_i619) { _elem618 = new com.cinchapi.concourse.thrift.TObject(); _elem618.read(iprot); _val615.add(_elem618); } } _val611.put(_key614, _val615); } } struct.success.put(_key610, _val611); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class diffRecordStartstrEndstr_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("diffRecordStartstrEndstr_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField("tend", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffRecordStartstrEndstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffRecordStartstrEndstr_argsTupleSchemeFactory()); } public long record; // required public String start; // required public String tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short)1, "record"), START((short)2, "start"), TEND((short)3, "tend"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORD return RECORD; case 2: // START return START; case 3: // TEND return TEND; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(diffRecordStartstrEndstr_args.class, metaDataMap); } public diffRecordStartstrEndstr_args() { } public diffRecordStartstrEndstr_args( long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffRecordStartstrEndstr_args(diffRecordStartstrEndstr_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if (other.isSetStart()) { this.start = other.start; } if (other.isSetTend()) { this.tend = other.tend; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public diffRecordStartstrEndstr_args deepCopy() { return new diffRecordStartstrEndstr_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.start = null; this.tend = null; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public diffRecordStartstrEndstr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getStart() { return this.start; } public diffRecordStartstrEndstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if (!value) { this.start = null; } } public String getTend() { return this.tend; } public diffRecordStartstrEndstr_args setTend(String tend) { this.tend = tend; return this; } public void unsetTend() { this.tend = null; } /** Returns true if field tend is set (has been assigned a value) and false otherwise */ public boolean isSetTend() { return this.tend != null; } public void setTendIsSet(boolean value) { if (!value) { this.tend = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffRecordStartstrEndstr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffRecordStartstrEndstr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffRecordStartstrEndstr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((String)value); } break; case TEND: if (value == null) { unsetTend(); } else { setTend((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORD: return isSetRecord(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffRecordStartstrEndstr_args) return this.equals((diffRecordStartstrEndstr_args)that); return false; } public boolean equals(diffRecordStartstrEndstr_args that) { if (that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (!this.start.equals(that.start)) return false; } boolean this_present_tend = true && this.isSetTend(); boolean that_present_tend = true && that.isSetTend(); if (this_present_tend || that_present_tend) { if (!(this_present_tend && that_present_tend)) return false; if (!this.tend.equals(that.tend)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_start = true && (isSetStart()); list.add(present_start); if (present_start) list.add(start); boolean present_tend = true && (isSetTend()); list.add(present_tend); if (present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffRecordStartstrEndstr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()).compareTo(other.isSetTend()); if (lastComparison != 0) { return lastComparison; } if (isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tend, other.tend); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("diffRecordStartstrEndstr_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("start:"); if (this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if (!first) sb.append(", "); sb.append("tend:"); if (this.tend == null) { sb.append("null"); } else { sb.append(this.tend); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 diffRecordStartstrEndstr_argsStandardSchemeFactory implements SchemeFactory { public diffRecordStartstrEndstr_argsStandardScheme getScheme() { return new diffRecordStartstrEndstr_argsStandardScheme(); } } private static class diffRecordStartstrEndstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffRecordStartstrEndstr_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: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TEND if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, diffRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if (struct.tend != null) { oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeString(struct.tend); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffRecordStartstrEndstr_argsTupleSchemeFactory implements SchemeFactory { public diffRecordStartstrEndstr_argsTupleScheme getScheme() { return new diffRecordStartstrEndstr_argsTupleScheme(); } } private static class diffRecordStartstrEndstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecord()) { optionals.set(0); } if (struct.isSetStart()) { optionals.set(1); } if (struct.isSetTend()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetStart()) { oprot.writeString(struct.start); } if (struct.isSetTend()) { oprot.writeString(struct.tend); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(1)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if (incoming.get(2)) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffRecordStartstrEndstr_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("diffRecordStartstrEndstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffRecordStartstrEndstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffRecordStartstrEndstr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Diff.class), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(diffRecordStartstrEndstr_result.class, metaDataMap); } public diffRecordStartstrEndstr_result() { } public diffRecordStartstrEndstr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public diffRecordStartstrEndstr_result(diffRecordStartstrEndstr_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { String other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); String __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public diffRecordStartstrEndstr_result deepCopy() { return new diffRecordStartstrEndstr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public diffRecordStartstrEndstr_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffRecordStartstrEndstr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffRecordStartstrEndstr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public diffRecordStartstrEndstr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffRecordStartstrEndstr_result) return this.equals((diffRecordStartstrEndstr_result)that); return false; } public boolean equals(diffRecordStartstrEndstr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(diffRecordStartstrEndstr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("diffRecordStartstrEndstr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 diffRecordStartstrEndstr_resultStandardSchemeFactory implements SchemeFactory { public diffRecordStartstrEndstr_resultStandardScheme getScheme() { return new diffRecordStartstrEndstr_resultStandardScheme(); } } private static class diffRecordStartstrEndstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffRecordStartstrEndstr_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.MAP) { { org.apache.thrift.protocol.TMap _map620 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map620.size); String _key621; Map> _val622; for (int _i623 = 0; _i623 < _map620.size; ++_i623) { _key621 = iprot.readString(); { org.apache.thrift.protocol.TMap _map624 = iprot.readMapBegin(); _val622 = new LinkedHashMap>(2*_map624.size); com.cinchapi.concourse.thrift.Diff _key625; Set _val626; for (int _i627 = 0; _i627 < _map624.size; ++_i627) { _key625 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set628 = iprot.readSetBegin(); _val626 = new LinkedHashSet(2*_set628.size); com.cinchapi.concourse.thrift.TObject _elem629; for (int _i630 = 0; _i630 < _set628.size; ++_i630) { _elem629 = new com.cinchapi.concourse.thrift.TObject(); _elem629.read(iprot); _val626.add(_elem629); } iprot.readSetEnd(); } _val622.put(_key625, _val626); } iprot.readMapEnd(); } struct.success.put(_key621, _val622); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, diffRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter631 : struct.success.entrySet()) { oprot.writeString(_iter631.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter631.getValue().size())); for (Map.Entry> _iter632 : _iter631.getValue().entrySet()) { oprot.writeI32(_iter632.getKey().getValue()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter632.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter633 : _iter632.getValue()) { _iter633.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffRecordStartstrEndstr_resultTupleSchemeFactory implements SchemeFactory { public diffRecordStartstrEndstr_resultTupleScheme getScheme() { return new diffRecordStartstrEndstr_resultTupleScheme(); } } private static class diffRecordStartstrEndstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter634 : struct.success.entrySet()) { oprot.writeString(_iter634.getKey()); { oprot.writeI32(_iter634.getValue().size()); for (Map.Entry> _iter635 : _iter634.getValue().entrySet()) { oprot.writeI32(_iter635.getKey().getValue()); { oprot.writeI32(_iter635.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter636 : _iter635.getValue()) { _iter636.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map637 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map637.size); String _key638; Map> _val639; for (int _i640 = 0; _i640 < _map637.size; ++_i640) { _key638 = iprot.readString(); { org.apache.thrift.protocol.TMap _map641 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val639 = new LinkedHashMap>(2*_map641.size); com.cinchapi.concourse.thrift.Diff _key642; Set _val643; for (int _i644 = 0; _i644 < _map641.size; ++_i644) { _key642 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set645 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val643 = new LinkedHashSet(2*_set645.size); com.cinchapi.concourse.thrift.TObject _elem646; for (int _i647 = 0; _i647 < _set645.size; ++_i647) { _elem646 = new com.cinchapi.concourse.thrift.TObject(); _elem646.read(iprot); _val643.add(_elem646); } } _val639.put(_key642, _val643); } } struct.success.put(_key638, _val639); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class diffKeyRecordStart_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("diffKeyRecordStart_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyRecordStart_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyRecordStart_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), START((short)3, "start"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __START_ISSET_ID = 1; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(diffKeyRecordStart_args.class, metaDataMap); } public diffKeyRecordStart_args() { } public diffKeyRecordStart_args( String key, long record, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; setStartIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffKeyRecordStart_args(diffKeyRecordStart_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; this.start = other.start; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public diffKeyRecordStart_args deepCopy() { return new diffKeyRecordStart_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setStartIsSet(false); this.start = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public diffKeyRecordStart_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public diffKeyRecordStart_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getStart() { return this.start; } public diffKeyRecordStart_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffKeyRecordStart_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffKeyRecordStart_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffKeyRecordStart_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffKeyRecordStart_args) return this.equals((diffKeyRecordStart_args)that); return false; } public boolean equals(diffKeyRecordStart_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_start = true; boolean that_present_start = true; if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (this.start != that.start) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_start = true; list.add(present_start); if (present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffKeyRecordStart_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("diffKeyRecordStart_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 diffKeyRecordStart_argsStandardSchemeFactory implements SchemeFactory { public diffKeyRecordStart_argsStandardScheme getScheme() { return new diffKeyRecordStart_argsStandardScheme(); } } private static class diffKeyRecordStart_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyRecordStart_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, diffKeyRecordStart_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyRecordStart_argsTupleSchemeFactory implements SchemeFactory { public diffKeyRecordStart_argsTupleScheme getScheme() { return new diffKeyRecordStart_argsTupleScheme(); } } private static class diffKeyRecordStart_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStart_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetStart()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetStart()) { oprot.writeI64(struct.start); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStart_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffKeyRecordStart_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("diffKeyRecordStart_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyRecordStart_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyRecordStart_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Diff.class), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(diffKeyRecordStart_result.class, metaDataMap); } public diffKeyRecordStart_result() { } public diffKeyRecordStart_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public diffKeyRecordStart_result(diffKeyRecordStart_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public diffKeyRecordStart_result deepCopy() { return new diffKeyRecordStart_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.Diff key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public diffKeyRecordStart_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffKeyRecordStart_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffKeyRecordStart_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffKeyRecordStart_result) return this.equals((diffKeyRecordStart_result)that); return false; } public boolean equals(diffKeyRecordStart_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(diffKeyRecordStart_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("diffKeyRecordStart_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 diffKeyRecordStart_resultStandardSchemeFactory implements SchemeFactory { public diffKeyRecordStart_resultStandardScheme getScheme() { return new diffKeyRecordStart_resultStandardScheme(); } } private static class diffKeyRecordStart_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyRecordStart_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.MAP) { { org.apache.thrift.protocol.TMap _map648 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map648.size); com.cinchapi.concourse.thrift.Diff _key649; Set _val650; for (int _i651 = 0; _i651 < _map648.size; ++_i651) { _key649 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set652 = iprot.readSetBegin(); _val650 = new LinkedHashSet(2*_set652.size); com.cinchapi.concourse.thrift.TObject _elem653; for (int _i654 = 0; _i654 < _set652.size; ++_i654) { _elem653 = new com.cinchapi.concourse.thrift.TObject(); _elem653.read(iprot); _val650.add(_elem653); } iprot.readSetEnd(); } struct.success.put(_key649, _val650); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, diffKeyRecordStart_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter655 : struct.success.entrySet()) { oprot.writeI32(_iter655.getKey().getValue()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter655.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter656 : _iter655.getValue()) { _iter656.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyRecordStart_resultTupleSchemeFactory implements SchemeFactory { public diffKeyRecordStart_resultTupleScheme getScheme() { return new diffKeyRecordStart_resultTupleScheme(); } } private static class diffKeyRecordStart_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStart_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter657 : struct.success.entrySet()) { oprot.writeI32(_iter657.getKey().getValue()); { oprot.writeI32(_iter657.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter658 : _iter657.getValue()) { _iter658.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStart_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map659 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map659.size); com.cinchapi.concourse.thrift.Diff _key660; Set _val661; for (int _i662 = 0; _i662 < _map659.size; ++_i662) { _key660 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set663 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val661 = new LinkedHashSet(2*_set663.size); com.cinchapi.concourse.thrift.TObject _elem664; for (int _i665 = 0; _i665 < _set663.size; ++_i665) { _elem664 = new com.cinchapi.concourse.thrift.TObject(); _elem664.read(iprot); _val661.add(_elem664); } } struct.success.put(_key660, _val661); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class diffKeyRecordStartstr_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("diffKeyRecordStartstr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyRecordStartstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyRecordStartstr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), START((short)3, "start"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(diffKeyRecordStartstr_args.class, metaDataMap); } public diffKeyRecordStartstr_args() { } public diffKeyRecordStartstr_args( String key, long record, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffKeyRecordStartstr_args(diffKeyRecordStartstr_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; if (other.isSetStart()) { this.start = other.start; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public diffKeyRecordStartstr_args deepCopy() { return new diffKeyRecordStartstr_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.start = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public diffKeyRecordStartstr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public diffKeyRecordStartstr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getStart() { return this.start; } public diffKeyRecordStartstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if (!value) { this.start = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffKeyRecordStartstr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffKeyRecordStartstr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffKeyRecordStartstr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffKeyRecordStartstr_args) return this.equals((diffKeyRecordStartstr_args)that); return false; } public boolean equals(diffKeyRecordStartstr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (!this.start.equals(that.start)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_start = true && (isSetStart()); list.add(present_start); if (present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffKeyRecordStartstr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("diffKeyRecordStartstr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("start:"); if (this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 diffKeyRecordStartstr_argsStandardSchemeFactory implements SchemeFactory { public diffKeyRecordStartstr_argsStandardScheme getScheme() { return new diffKeyRecordStartstr_argsStandardScheme(); } } private static class diffKeyRecordStartstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyRecordStartstr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, diffKeyRecordStartstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyRecordStartstr_argsTupleSchemeFactory implements SchemeFactory { public diffKeyRecordStartstr_argsTupleScheme getScheme() { return new diffKeyRecordStartstr_argsTupleScheme(); } } private static class diffKeyRecordStartstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetStart()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetStart()) { oprot.writeString(struct.start); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffKeyRecordStartstr_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("diffKeyRecordStartstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyRecordStartstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyRecordStartstr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Diff.class), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(diffKeyRecordStartstr_result.class, metaDataMap); } public diffKeyRecordStartstr_result() { } public diffKeyRecordStartstr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public diffKeyRecordStartstr_result(diffKeyRecordStartstr_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public diffKeyRecordStartstr_result deepCopy() { return new diffKeyRecordStartstr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.Diff key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public diffKeyRecordStartstr_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffKeyRecordStartstr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffKeyRecordStartstr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public diffKeyRecordStartstr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffKeyRecordStartstr_result) return this.equals((diffKeyRecordStartstr_result)that); return false; } public boolean equals(diffKeyRecordStartstr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(diffKeyRecordStartstr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("diffKeyRecordStartstr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 diffKeyRecordStartstr_resultStandardSchemeFactory implements SchemeFactory { public diffKeyRecordStartstr_resultStandardScheme getScheme() { return new diffKeyRecordStartstr_resultStandardScheme(); } } private static class diffKeyRecordStartstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyRecordStartstr_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.MAP) { { org.apache.thrift.protocol.TMap _map666 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map666.size); com.cinchapi.concourse.thrift.Diff _key667; Set _val668; for (int _i669 = 0; _i669 < _map666.size; ++_i669) { _key667 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set670 = iprot.readSetBegin(); _val668 = new LinkedHashSet(2*_set670.size); com.cinchapi.concourse.thrift.TObject _elem671; for (int _i672 = 0; _i672 < _set670.size; ++_i672) { _elem671 = new com.cinchapi.concourse.thrift.TObject(); _elem671.read(iprot); _val668.add(_elem671); } iprot.readSetEnd(); } struct.success.put(_key667, _val668); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, diffKeyRecordStartstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter673 : struct.success.entrySet()) { oprot.writeI32(_iter673.getKey().getValue()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter673.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter674 : _iter673.getValue()) { _iter674.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyRecordStartstr_resultTupleSchemeFactory implements SchemeFactory { public diffKeyRecordStartstr_resultTupleScheme getScheme() { return new diffKeyRecordStartstr_resultTupleScheme(); } } private static class diffKeyRecordStartstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter675 : struct.success.entrySet()) { oprot.writeI32(_iter675.getKey().getValue()); { oprot.writeI32(_iter675.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter676 : _iter675.getValue()) { _iter676.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartstr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map677 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map677.size); com.cinchapi.concourse.thrift.Diff _key678; Set _val679; for (int _i680 = 0; _i680 < _map677.size; ++_i680) { _key678 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set681 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val679 = new LinkedHashSet(2*_set681.size); com.cinchapi.concourse.thrift.TObject _elem682; for (int _i683 = 0; _i683 < _set681.size; ++_i683) { _elem682 = new com.cinchapi.concourse.thrift.TObject(); _elem682.read(iprot); _val679.add(_elem682); } } struct.success.put(_key678, _val679); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class diffKeyRecordStartEnd_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("diffKeyRecordStartEnd_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField("tend", org.apache.thrift.protocol.TType.I64, (short)4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyRecordStartEnd_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyRecordStartEnd_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long start; // required public long tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), START((short)3, "start"), TEND((short)4, "tend"), CREDS((short)5, "creds"), TRANSACTION((short)6, "transaction"), ENVIRONMENT((short)7, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // TEND return TEND; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __START_ISSET_ID = 1; private static final int __TEND_ISSET_ID = 2; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(diffKeyRecordStartEnd_args.class, metaDataMap); } public diffKeyRecordStartEnd_args() { } public diffKeyRecordStartEnd_args( String key, long record, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; setStartIsSet(true); this.tend = tend; setTendIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffKeyRecordStartEnd_args(diffKeyRecordStartEnd_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; this.start = other.start; this.tend = other.tend; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public diffKeyRecordStartEnd_args deepCopy() { return new diffKeyRecordStartEnd_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setStartIsSet(false); this.start = 0; setTendIsSet(false); this.tend = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public diffKeyRecordStartEnd_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public diffKeyRecordStartEnd_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getStart() { return this.start; } public diffKeyRecordStartEnd_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public long getTend() { return this.tend; } public diffKeyRecordStartEnd_args setTend(long tend) { this.tend = tend; setTendIsSet(true); return this; } public void unsetTend() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TEND_ISSET_ID); } /** Returns true if field tend is set (has been assigned a value) and false otherwise */ public boolean isSetTend() { return EncodingUtils.testBit(__isset_bitfield, __TEND_ISSET_ID); } public void setTendIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TEND_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffKeyRecordStartEnd_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffKeyRecordStartEnd_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffKeyRecordStartEnd_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((Long)value); } break; case TEND: if (value == null) { unsetTend(); } else { setTend((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffKeyRecordStartEnd_args) return this.equals((diffKeyRecordStartEnd_args)that); return false; } public boolean equals(diffKeyRecordStartEnd_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_start = true; boolean that_present_start = true; if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (this.start != that.start) return false; } boolean this_present_tend = true; boolean that_present_tend = true; if (this_present_tend || that_present_tend) { if (!(this_present_tend && that_present_tend)) return false; if (this.tend != that.tend) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_start = true; list.add(present_start); if (present_start) list.add(start); boolean present_tend = true; list.add(present_tend); if (present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffKeyRecordStartEnd_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()).compareTo(other.isSetTend()); if (lastComparison != 0) { return lastComparison; } if (isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tend, other.tend); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("diffKeyRecordStartEnd_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if (!first) sb.append(", "); sb.append("tend:"); sb.append(this.tend); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 diffKeyRecordStartEnd_argsStandardSchemeFactory implements SchemeFactory { public diffKeyRecordStartEnd_argsStandardScheme getScheme() { return new diffKeyRecordStartEnd_argsStandardScheme(); } } private static class diffKeyRecordStartEnd_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyRecordStartEnd_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TEND if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, diffKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeI64(struct.tend); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyRecordStartEnd_argsTupleSchemeFactory implements SchemeFactory { public diffKeyRecordStartEnd_argsTupleScheme getScheme() { return new diffKeyRecordStartEnd_argsTupleScheme(); } } private static class diffKeyRecordStartEnd_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetStart()) { optionals.set(2); } if (struct.isSetTend()) { optionals.set(3); } if (struct.isSetCreds()) { optionals.set(4); } if (struct.isSetTransaction()) { optionals.set(5); } if (struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetStart()) { oprot.writeI64(struct.start); } if (struct.isSetTend()) { oprot.writeI64(struct.tend); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if (incoming.get(3)) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } if (incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffKeyRecordStartEnd_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("diffKeyRecordStartEnd_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyRecordStartEnd_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyRecordStartEnd_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Diff.class), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(diffKeyRecordStartEnd_result.class, metaDataMap); } public diffKeyRecordStartEnd_result() { } public diffKeyRecordStartEnd_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public diffKeyRecordStartEnd_result(diffKeyRecordStartEnd_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public diffKeyRecordStartEnd_result deepCopy() { return new diffKeyRecordStartEnd_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.Diff key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public diffKeyRecordStartEnd_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffKeyRecordStartEnd_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffKeyRecordStartEnd_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffKeyRecordStartEnd_result) return this.equals((diffKeyRecordStartEnd_result)that); return false; } public boolean equals(diffKeyRecordStartEnd_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(diffKeyRecordStartEnd_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("diffKeyRecordStartEnd_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 diffKeyRecordStartEnd_resultStandardSchemeFactory implements SchemeFactory { public diffKeyRecordStartEnd_resultStandardScheme getScheme() { return new diffKeyRecordStartEnd_resultStandardScheme(); } } private static class diffKeyRecordStartEnd_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyRecordStartEnd_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.MAP) { { org.apache.thrift.protocol.TMap _map684 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map684.size); com.cinchapi.concourse.thrift.Diff _key685; Set _val686; for (int _i687 = 0; _i687 < _map684.size; ++_i687) { _key685 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set688 = iprot.readSetBegin(); _val686 = new LinkedHashSet(2*_set688.size); com.cinchapi.concourse.thrift.TObject _elem689; for (int _i690 = 0; _i690 < _set688.size; ++_i690) { _elem689 = new com.cinchapi.concourse.thrift.TObject(); _elem689.read(iprot); _val686.add(_elem689); } iprot.readSetEnd(); } struct.success.put(_key685, _val686); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, diffKeyRecordStartEnd_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter691 : struct.success.entrySet()) { oprot.writeI32(_iter691.getKey().getValue()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter691.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter692 : _iter691.getValue()) { _iter692.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyRecordStartEnd_resultTupleSchemeFactory implements SchemeFactory { public diffKeyRecordStartEnd_resultTupleScheme getScheme() { return new diffKeyRecordStartEnd_resultTupleScheme(); } } private static class diffKeyRecordStartEnd_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartEnd_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter693 : struct.success.entrySet()) { oprot.writeI32(_iter693.getKey().getValue()); { oprot.writeI32(_iter693.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter694 : _iter693.getValue()) { _iter694.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartEnd_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map695 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map695.size); com.cinchapi.concourse.thrift.Diff _key696; Set _val697; for (int _i698 = 0; _i698 < _map695.size; ++_i698) { _key696 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set699 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val697 = new LinkedHashSet(2*_set699.size); com.cinchapi.concourse.thrift.TObject _elem700; for (int _i701 = 0; _i701 < _set699.size; ++_i701) { _elem700 = new com.cinchapi.concourse.thrift.TObject(); _elem700.read(iprot); _val697.add(_elem700); } } struct.success.put(_key696, _val697); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class diffKeyRecordStartstrEndstr_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("diffKeyRecordStartstrEndstr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField("tend", org.apache.thrift.protocol.TType.STRING, (short)4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyRecordStartstrEndstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyRecordStartstrEndstr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String start; // required public String tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), START((short)3, "start"), TEND((short)4, "tend"), CREDS((short)5, "creds"), TRANSACTION((short)6, "transaction"), ENVIRONMENT((short)7, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // START return START; case 4: // TEND return TEND; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(diffKeyRecordStartstrEndstr_args.class, metaDataMap); } public diffKeyRecordStartstrEndstr_args() { } public diffKeyRecordStartstrEndstr_args( String key, long record, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffKeyRecordStartstrEndstr_args(diffKeyRecordStartstrEndstr_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; if (other.isSetStart()) { this.start = other.start; } if (other.isSetTend()) { this.tend = other.tend; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public diffKeyRecordStartstrEndstr_args deepCopy() { return new diffKeyRecordStartstrEndstr_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.start = null; this.tend = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public diffKeyRecordStartstrEndstr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public diffKeyRecordStartstrEndstr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getStart() { return this.start; } public diffKeyRecordStartstrEndstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if (!value) { this.start = null; } } public String getTend() { return this.tend; } public diffKeyRecordStartstrEndstr_args setTend(String tend) { this.tend = tend; return this; } public void unsetTend() { this.tend = null; } /** Returns true if field tend is set (has been assigned a value) and false otherwise */ public boolean isSetTend() { return this.tend != null; } public void setTendIsSet(boolean value) { if (!value) { this.tend = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffKeyRecordStartstrEndstr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffKeyRecordStartstrEndstr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffKeyRecordStartstrEndstr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((String)value); } break; case TEND: if (value == null) { unsetTend(); } else { setTend((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffKeyRecordStartstrEndstr_args) return this.equals((diffKeyRecordStartstrEndstr_args)that); return false; } public boolean equals(diffKeyRecordStartstrEndstr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (!this.start.equals(that.start)) return false; } boolean this_present_tend = true && this.isSetTend(); boolean that_present_tend = true && that.isSetTend(); if (this_present_tend || that_present_tend) { if (!(this_present_tend && that_present_tend)) return false; if (!this.tend.equals(that.tend)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_start = true && (isSetStart()); list.add(present_start); if (present_start) list.add(start); boolean present_tend = true && (isSetTend()); list.add(present_tend); if (present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffKeyRecordStartstrEndstr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()).compareTo(other.isSetTend()); if (lastComparison != 0) { return lastComparison; } if (isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tend, other.tend); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("diffKeyRecordStartstrEndstr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("start:"); if (this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if (!first) sb.append(", "); sb.append("tend:"); if (this.tend == null) { sb.append("null"); } else { sb.append(this.tend); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 diffKeyRecordStartstrEndstr_argsStandardSchemeFactory implements SchemeFactory { public diffKeyRecordStartstrEndstr_argsStandardScheme getScheme() { return new diffKeyRecordStartstrEndstr_argsStandardScheme(); } } private static class diffKeyRecordStartstrEndstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyRecordStartstrEndstr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // START if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TEND if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, diffKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if (struct.tend != null) { oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeString(struct.tend); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyRecordStartstrEndstr_argsTupleSchemeFactory implements SchemeFactory { public diffKeyRecordStartstrEndstr_argsTupleScheme getScheme() { return new diffKeyRecordStartstrEndstr_argsTupleScheme(); } } private static class diffKeyRecordStartstrEndstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetStart()) { optionals.set(2); } if (struct.isSetTend()) { optionals.set(3); } if (struct.isSetCreds()) { optionals.set(4); } if (struct.isSetTransaction()) { optionals.set(5); } if (struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetStart()) { oprot.writeString(struct.start); } if (struct.isSetTend()) { oprot.writeString(struct.tend); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if (incoming.get(3)) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } if (incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffKeyRecordStartstrEndstr_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("diffKeyRecordStartstrEndstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyRecordStartstrEndstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyRecordStartstrEndstr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Diff.class), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(diffKeyRecordStartstrEndstr_result.class, metaDataMap); } public diffKeyRecordStartstrEndstr_result() { } public diffKeyRecordStartstrEndstr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public diffKeyRecordStartstrEndstr_result(diffKeyRecordStartstrEndstr_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public diffKeyRecordStartstrEndstr_result deepCopy() { return new diffKeyRecordStartstrEndstr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.Diff key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public diffKeyRecordStartstrEndstr_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffKeyRecordStartstrEndstr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffKeyRecordStartstrEndstr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public diffKeyRecordStartstrEndstr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffKeyRecordStartstrEndstr_result) return this.equals((diffKeyRecordStartstrEndstr_result)that); return false; } public boolean equals(diffKeyRecordStartstrEndstr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(diffKeyRecordStartstrEndstr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("diffKeyRecordStartstrEndstr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 diffKeyRecordStartstrEndstr_resultStandardSchemeFactory implements SchemeFactory { public diffKeyRecordStartstrEndstr_resultStandardScheme getScheme() { return new diffKeyRecordStartstrEndstr_resultStandardScheme(); } } private static class diffKeyRecordStartstrEndstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyRecordStartstrEndstr_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.MAP) { { org.apache.thrift.protocol.TMap _map702 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map702.size); com.cinchapi.concourse.thrift.Diff _key703; Set _val704; for (int _i705 = 0; _i705 < _map702.size; ++_i705) { _key703 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set706 = iprot.readSetBegin(); _val704 = new LinkedHashSet(2*_set706.size); com.cinchapi.concourse.thrift.TObject _elem707; for (int _i708 = 0; _i708 < _set706.size; ++_i708) { _elem707 = new com.cinchapi.concourse.thrift.TObject(); _elem707.read(iprot); _val704.add(_elem707); } iprot.readSetEnd(); } struct.success.put(_key703, _val704); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, diffKeyRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter709 : struct.success.entrySet()) { oprot.writeI32(_iter709.getKey().getValue()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter709.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter710 : _iter709.getValue()) { _iter710.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyRecordStartstrEndstr_resultTupleSchemeFactory implements SchemeFactory { public diffKeyRecordStartstrEndstr_resultTupleScheme getScheme() { return new diffKeyRecordStartstrEndstr_resultTupleScheme(); } } private static class diffKeyRecordStartstrEndstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter711 : struct.success.entrySet()) { oprot.writeI32(_iter711.getKey().getValue()); { oprot.writeI32(_iter711.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter712 : _iter711.getValue()) { _iter712.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyRecordStartstrEndstr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map713 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map713.size); com.cinchapi.concourse.thrift.Diff _key714; Set _val715; for (int _i716 = 0; _i716 < _map713.size; ++_i716) { _key714 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set717 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val715 = new LinkedHashSet(2*_set717.size); com.cinchapi.concourse.thrift.TObject _elem718; for (int _i719 = 0; _i719 < _set717.size; ++_i719) { _elem718 = new com.cinchapi.concourse.thrift.TObject(); _elem718.read(iprot); _val715.add(_elem718); } } struct.success.put(_key714, _val715); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class diffKeyStart_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("diffKeyStart_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyStart_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyStart_argsTupleSchemeFactory()); } public String key; // required public long start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), START((short)2, "start"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // START return START; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __START_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(diffKeyStart_args.class, metaDataMap); } public diffKeyStart_args() { } public diffKeyStart_args( String key, long start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.start = start; setStartIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffKeyStart_args(diffKeyStart_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.start = other.start; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public diffKeyStart_args deepCopy() { return new diffKeyStart_args(this); } @Override public void clear() { this.key = null; setStartIsSet(false); this.start = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public diffKeyStart_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getStart() { return this.start; } public diffKeyStart_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffKeyStart_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffKeyStart_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffKeyStart_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffKeyStart_args) return this.equals((diffKeyStart_args)that); return false; } public boolean equals(diffKeyStart_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_start = true; boolean that_present_start = true; if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (this.start != that.start) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_start = true; list.add(present_start); if (present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffKeyStart_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("diffKeyStart_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 diffKeyStart_argsStandardSchemeFactory implements SchemeFactory { public diffKeyStart_argsStandardScheme getScheme() { return new diffKeyStart_argsStandardScheme(); } } private static class diffKeyStart_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyStart_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, diffKeyStart_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyStart_argsTupleSchemeFactory implements SchemeFactory { public diffKeyStart_argsTupleScheme getScheme() { return new diffKeyStart_argsTupleScheme(); } } private static class diffKeyStart_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyStart_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetStart()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetStart()) { oprot.writeI64(struct.start); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyStart_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffKeyStart_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("diffKeyStart_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyStart_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyStart_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Diff.class), 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.I64)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(diffKeyStart_result.class, metaDataMap); } public diffKeyStart_result() { } public diffKeyStart_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public diffKeyStart_result(diffKeyStart_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { com.cinchapi.concourse.thrift.TObject other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); com.cinchapi.concourse.thrift.TObject __this__success_copy_key = new com.cinchapi.concourse.thrift.TObject(other_element_key); Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public diffKeyStart_result deepCopy() { return new diffKeyStart_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.TObject key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public diffKeyStart_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffKeyStart_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffKeyStart_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffKeyStart_result) return this.equals((diffKeyStart_result)that); return false; } public boolean equals(diffKeyStart_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(diffKeyStart_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("diffKeyStart_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 diffKeyStart_resultStandardSchemeFactory implements SchemeFactory { public diffKeyStart_resultStandardScheme getScheme() { return new diffKeyStart_resultStandardScheme(); } } private static class diffKeyStart_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyStart_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.MAP) { { org.apache.thrift.protocol.TMap _map720 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map720.size); com.cinchapi.concourse.thrift.TObject _key721; Map> _val722; for (int _i723 = 0; _i723 < _map720.size; ++_i723) { _key721 = new com.cinchapi.concourse.thrift.TObject(); _key721.read(iprot); { org.apache.thrift.protocol.TMap _map724 = iprot.readMapBegin(); _val722 = new LinkedHashMap>(2*_map724.size); com.cinchapi.concourse.thrift.Diff _key725; Set _val726; for (int _i727 = 0; _i727 < _map724.size; ++_i727) { _key725 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set728 = iprot.readSetBegin(); _val726 = new LinkedHashSet(2*_set728.size); long _elem729; for (int _i730 = 0; _i730 < _set728.size; ++_i730) { _elem729 = iprot.readI64(); _val726.add(_elem729); } iprot.readSetEnd(); } _val722.put(_key725, _val726); } iprot.readMapEnd(); } struct.success.put(_key721, _val722); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, diffKeyStart_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter731 : struct.success.entrySet()) { _iter731.getKey().write(oprot); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter731.getValue().size())); for (Map.Entry> _iter732 : _iter731.getValue().entrySet()) { oprot.writeI32(_iter732.getKey().getValue()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, _iter732.getValue().size())); for (long _iter733 : _iter732.getValue()) { oprot.writeI64(_iter733); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyStart_resultTupleSchemeFactory implements SchemeFactory { public diffKeyStart_resultTupleScheme getScheme() { return new diffKeyStart_resultTupleScheme(); } } private static class diffKeyStart_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyStart_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter734 : struct.success.entrySet()) { _iter734.getKey().write(oprot); { oprot.writeI32(_iter734.getValue().size()); for (Map.Entry> _iter735 : _iter734.getValue().entrySet()) { oprot.writeI32(_iter735.getKey().getValue()); { oprot.writeI32(_iter735.getValue().size()); for (long _iter736 : _iter735.getValue()) { oprot.writeI64(_iter736); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyStart_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map737 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map737.size); com.cinchapi.concourse.thrift.TObject _key738; Map> _val739; for (int _i740 = 0; _i740 < _map737.size; ++_i740) { _key738 = new com.cinchapi.concourse.thrift.TObject(); _key738.read(iprot); { org.apache.thrift.protocol.TMap _map741 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val739 = new LinkedHashMap>(2*_map741.size); com.cinchapi.concourse.thrift.Diff _key742; Set _val743; for (int _i744 = 0; _i744 < _map741.size; ++_i744) { _key742 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set745 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val743 = new LinkedHashSet(2*_set745.size); long _elem746; for (int _i747 = 0; _i747 < _set745.size; ++_i747) { _elem746 = iprot.readI64(); _val743.add(_elem746); } } _val739.put(_key742, _val743); } } struct.success.put(_key738, _val739); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class diffKeyStartstr_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("diffKeyStartstr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyStartstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyStartstr_argsTupleSchemeFactory()); } public String key; // required public String start; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), START((short)2, "start"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // START return START; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(diffKeyStartstr_args.class, metaDataMap); } public diffKeyStartstr_args() { } public diffKeyStartstr_args( String key, String start, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.start = start; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffKeyStartstr_args(diffKeyStartstr_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetStart()) { this.start = other.start; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public diffKeyStartstr_args deepCopy() { return new diffKeyStartstr_args(this); } @Override public void clear() { this.key = null; this.start = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public diffKeyStartstr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public String getStart() { return this.start; } public diffKeyStartstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if (!value) { this.start = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffKeyStartstr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffKeyStartstr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffKeyStartstr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case START: return getStart(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case START: return isSetStart(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffKeyStartstr_args) return this.equals((diffKeyStartstr_args)that); return false; } public boolean equals(diffKeyStartstr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (!this.start.equals(that.start)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_start = true && (isSetStart()); list.add(present_start); if (present_start) list.add(start); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffKeyStartstr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("diffKeyStartstr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("start:"); if (this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 diffKeyStartstr_argsStandardSchemeFactory implements SchemeFactory { public diffKeyStartstr_argsStandardScheme getScheme() { return new diffKeyStartstr_argsStandardScheme(); } } private static class diffKeyStartstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyStartstr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, diffKeyStartstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyStartstr_argsTupleSchemeFactory implements SchemeFactory { public diffKeyStartstr_argsTupleScheme getScheme() { return new diffKeyStartstr_argsTupleScheme(); } } private static class diffKeyStartstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetStart()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetStart()) { oprot.writeString(struct.start); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyStartstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffKeyStartstr_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("diffKeyStartstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyStartstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyStartstr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Diff.class), 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.I64)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(diffKeyStartstr_result.class, metaDataMap); } public diffKeyStartstr_result() { } public diffKeyStartstr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public diffKeyStartstr_result(diffKeyStartstr_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { com.cinchapi.concourse.thrift.TObject other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); com.cinchapi.concourse.thrift.TObject __this__success_copy_key = new com.cinchapi.concourse.thrift.TObject(other_element_key); Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public diffKeyStartstr_result deepCopy() { return new diffKeyStartstr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.TObject key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public diffKeyStartstr_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffKeyStartstr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffKeyStartstr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public diffKeyStartstr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffKeyStartstr_result) return this.equals((diffKeyStartstr_result)that); return false; } public boolean equals(diffKeyStartstr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(diffKeyStartstr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("diffKeyStartstr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 diffKeyStartstr_resultStandardSchemeFactory implements SchemeFactory { public diffKeyStartstr_resultStandardScheme getScheme() { return new diffKeyStartstr_resultStandardScheme(); } } private static class diffKeyStartstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyStartstr_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.MAP) { { org.apache.thrift.protocol.TMap _map748 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map748.size); com.cinchapi.concourse.thrift.TObject _key749; Map> _val750; for (int _i751 = 0; _i751 < _map748.size; ++_i751) { _key749 = new com.cinchapi.concourse.thrift.TObject(); _key749.read(iprot); { org.apache.thrift.protocol.TMap _map752 = iprot.readMapBegin(); _val750 = new LinkedHashMap>(2*_map752.size); com.cinchapi.concourse.thrift.Diff _key753; Set _val754; for (int _i755 = 0; _i755 < _map752.size; ++_i755) { _key753 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set756 = iprot.readSetBegin(); _val754 = new LinkedHashSet(2*_set756.size); long _elem757; for (int _i758 = 0; _i758 < _set756.size; ++_i758) { _elem757 = iprot.readI64(); _val754.add(_elem757); } iprot.readSetEnd(); } _val750.put(_key753, _val754); } iprot.readMapEnd(); } struct.success.put(_key749, _val750); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, diffKeyStartstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter759 : struct.success.entrySet()) { _iter759.getKey().write(oprot); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter759.getValue().size())); for (Map.Entry> _iter760 : _iter759.getValue().entrySet()) { oprot.writeI32(_iter760.getKey().getValue()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, _iter760.getValue().size())); for (long _iter761 : _iter760.getValue()) { oprot.writeI64(_iter761); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyStartstr_resultTupleSchemeFactory implements SchemeFactory { public diffKeyStartstr_resultTupleScheme getScheme() { return new diffKeyStartstr_resultTupleScheme(); } } private static class diffKeyStartstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyStartstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter762 : struct.success.entrySet()) { _iter762.getKey().write(oprot); { oprot.writeI32(_iter762.getValue().size()); for (Map.Entry> _iter763 : _iter762.getValue().entrySet()) { oprot.writeI32(_iter763.getKey().getValue()); { oprot.writeI32(_iter763.getValue().size()); for (long _iter764 : _iter763.getValue()) { oprot.writeI64(_iter764); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyStartstr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map765 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map765.size); com.cinchapi.concourse.thrift.TObject _key766; Map> _val767; for (int _i768 = 0; _i768 < _map765.size; ++_i768) { _key766 = new com.cinchapi.concourse.thrift.TObject(); _key766.read(iprot); { org.apache.thrift.protocol.TMap _map769 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val767 = new LinkedHashMap>(2*_map769.size); com.cinchapi.concourse.thrift.Diff _key770; Set _val771; for (int _i772 = 0; _i772 < _map769.size; ++_i772) { _key770 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set773 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val771 = new LinkedHashSet(2*_set773.size); long _elem774; for (int _i775 = 0; _i775 < _set773.size; ++_i775) { _elem774 = iprot.readI64(); _val771.add(_elem774); } } _val767.put(_key770, _val771); } } struct.success.put(_key766, _val767); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class diffKeyStartEnd_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("diffKeyStartEnd_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField("tend", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyStartEnd_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyStartEnd_argsTupleSchemeFactory()); } public String key; // required public long start; // required public long tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), START((short)2, "start"), TEND((short)3, "tend"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // START return START; case 3: // TEND return TEND; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __START_ISSET_ID = 0; private static final int __TEND_ISSET_ID = 1; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(diffKeyStartEnd_args.class, metaDataMap); } public diffKeyStartEnd_args() { } public diffKeyStartEnd_args( String key, long start, long tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.start = start; setStartIsSet(true); this.tend = tend; setTendIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffKeyStartEnd_args(diffKeyStartEnd_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.start = other.start; this.tend = other.tend; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public diffKeyStartEnd_args deepCopy() { return new diffKeyStartEnd_args(this); } @Override public void clear() { this.key = null; setStartIsSet(false); this.start = 0; setTendIsSet(false); this.tend = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public diffKeyStartEnd_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getStart() { return this.start; } public diffKeyStartEnd_args setStart(long start) { this.start = start; setStartIsSet(true); return this; } public void unsetStart() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __START_ISSET_ID); } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return EncodingUtils.testBit(__isset_bitfield, __START_ISSET_ID); } public void setStartIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __START_ISSET_ID, value); } public long getTend() { return this.tend; } public diffKeyStartEnd_args setTend(long tend) { this.tend = tend; setTendIsSet(true); return this; } public void unsetTend() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TEND_ISSET_ID); } /** Returns true if field tend is set (has been assigned a value) and false otherwise */ public boolean isSetTend() { return EncodingUtils.testBit(__isset_bitfield, __TEND_ISSET_ID); } public void setTendIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TEND_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffKeyStartEnd_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffKeyStartEnd_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffKeyStartEnd_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((Long)value); } break; case TEND: if (value == null) { unsetTend(); } else { setTend((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffKeyStartEnd_args) return this.equals((diffKeyStartEnd_args)that); return false; } public boolean equals(diffKeyStartEnd_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_start = true; boolean that_present_start = true; if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (this.start != that.start) return false; } boolean this_present_tend = true; boolean that_present_tend = true; if (this_present_tend || that_present_tend) { if (!(this_present_tend && that_present_tend)) return false; if (this.tend != that.tend) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_start = true; list.add(present_start); if (present_start) list.add(start); boolean present_tend = true; list.add(present_tend); if (present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffKeyStartEnd_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()).compareTo(other.isSetTend()); if (lastComparison != 0) { return lastComparison; } if (isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tend, other.tend); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("diffKeyStartEnd_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("start:"); sb.append(this.start); first = false; if (!first) sb.append(", "); sb.append("tend:"); sb.append(this.tend); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 diffKeyStartEnd_argsStandardSchemeFactory implements SchemeFactory { public diffKeyStartEnd_argsStandardScheme getScheme() { return new diffKeyStartEnd_argsStandardScheme(); } } private static class diffKeyStartEnd_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyStartEnd_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TEND if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, diffKeyStartEnd_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeI64(struct.start); oprot.writeFieldEnd(); oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeI64(struct.tend); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyStartEnd_argsTupleSchemeFactory implements SchemeFactory { public diffKeyStartEnd_argsTupleScheme getScheme() { return new diffKeyStartEnd_argsTupleScheme(); } } private static class diffKeyStartEnd_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetStart()) { optionals.set(1); } if (struct.isSetTend()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetStart()) { oprot.writeI64(struct.start); } if (struct.isSetTend()) { oprot.writeI64(struct.tend); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyStartEnd_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.start = iprot.readI64(); struct.setStartIsSet(true); } if (incoming.get(2)) { struct.tend = iprot.readI64(); struct.setTendIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffKeyStartEnd_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("diffKeyStartEnd_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyStartEnd_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyStartEnd_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Diff.class), 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.I64)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(diffKeyStartEnd_result.class, metaDataMap); } public diffKeyStartEnd_result() { } public diffKeyStartEnd_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public diffKeyStartEnd_result(diffKeyStartEnd_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { com.cinchapi.concourse.thrift.TObject other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); com.cinchapi.concourse.thrift.TObject __this__success_copy_key = new com.cinchapi.concourse.thrift.TObject(other_element_key); Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public diffKeyStartEnd_result deepCopy() { return new diffKeyStartEnd_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.TObject key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public diffKeyStartEnd_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffKeyStartEnd_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffKeyStartEnd_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffKeyStartEnd_result) return this.equals((diffKeyStartEnd_result)that); return false; } public boolean equals(diffKeyStartEnd_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(diffKeyStartEnd_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("diffKeyStartEnd_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 diffKeyStartEnd_resultStandardSchemeFactory implements SchemeFactory { public diffKeyStartEnd_resultStandardScheme getScheme() { return new diffKeyStartEnd_resultStandardScheme(); } } private static class diffKeyStartEnd_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyStartEnd_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.MAP) { { org.apache.thrift.protocol.TMap _map776 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map776.size); com.cinchapi.concourse.thrift.TObject _key777; Map> _val778; for (int _i779 = 0; _i779 < _map776.size; ++_i779) { _key777 = new com.cinchapi.concourse.thrift.TObject(); _key777.read(iprot); { org.apache.thrift.protocol.TMap _map780 = iprot.readMapBegin(); _val778 = new LinkedHashMap>(2*_map780.size); com.cinchapi.concourse.thrift.Diff _key781; Set _val782; for (int _i783 = 0; _i783 < _map780.size; ++_i783) { _key781 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set784 = iprot.readSetBegin(); _val782 = new LinkedHashSet(2*_set784.size); long _elem785; for (int _i786 = 0; _i786 < _set784.size; ++_i786) { _elem785 = iprot.readI64(); _val782.add(_elem785); } iprot.readSetEnd(); } _val778.put(_key781, _val782); } iprot.readMapEnd(); } struct.success.put(_key777, _val778); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, diffKeyStartEnd_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter787 : struct.success.entrySet()) { _iter787.getKey().write(oprot); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter787.getValue().size())); for (Map.Entry> _iter788 : _iter787.getValue().entrySet()) { oprot.writeI32(_iter788.getKey().getValue()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, _iter788.getValue().size())); for (long _iter789 : _iter788.getValue()) { oprot.writeI64(_iter789); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyStartEnd_resultTupleSchemeFactory implements SchemeFactory { public diffKeyStartEnd_resultTupleScheme getScheme() { return new diffKeyStartEnd_resultTupleScheme(); } } private static class diffKeyStartEnd_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyStartEnd_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter790 : struct.success.entrySet()) { _iter790.getKey().write(oprot); { oprot.writeI32(_iter790.getValue().size()); for (Map.Entry> _iter791 : _iter790.getValue().entrySet()) { oprot.writeI32(_iter791.getKey().getValue()); { oprot.writeI32(_iter791.getValue().size()); for (long _iter792 : _iter791.getValue()) { oprot.writeI64(_iter792); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyStartEnd_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map793 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map793.size); com.cinchapi.concourse.thrift.TObject _key794; Map> _val795; for (int _i796 = 0; _i796 < _map793.size; ++_i796) { _key794 = new com.cinchapi.concourse.thrift.TObject(); _key794.read(iprot); { org.apache.thrift.protocol.TMap _map797 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val795 = new LinkedHashMap>(2*_map797.size); com.cinchapi.concourse.thrift.Diff _key798; Set _val799; for (int _i800 = 0; _i800 < _map797.size; ++_i800) { _key798 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set801 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val799 = new LinkedHashSet(2*_set801.size); long _elem802; for (int _i803 = 0; _i803 < _set801.size; ++_i803) { _elem802 = iprot.readI64(); _val799.add(_elem802); } } _val795.put(_key798, _val799); } } struct.success.put(_key794, _val795); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class diffKeyStartstrEndstr_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("diffKeyStartstrEndstr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField TEND_FIELD_DESC = new org.apache.thrift.protocol.TField("tend", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyStartstrEndstr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyStartstrEndstr_argsTupleSchemeFactory()); } public String key; // required public String start; // required public String tend; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), START((short)2, "start"), TEND((short)3, "tend"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // START return START; case 3: // TEND return TEND; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.START, new org.apache.thrift.meta_data.FieldMetaData("start", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TEND, new org.apache.thrift.meta_data.FieldMetaData("tend", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(diffKeyStartstrEndstr_args.class, metaDataMap); } public diffKeyStartstrEndstr_args() { } public diffKeyStartstrEndstr_args( String key, String start, String tend, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.start = start; this.tend = tend; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public diffKeyStartstrEndstr_args(diffKeyStartstrEndstr_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetStart()) { this.start = other.start; } if (other.isSetTend()) { this.tend = other.tend; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public diffKeyStartstrEndstr_args deepCopy() { return new diffKeyStartstrEndstr_args(this); } @Override public void clear() { this.key = null; this.start = null; this.tend = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public diffKeyStartstrEndstr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public String getStart() { return this.start; } public diffKeyStartstrEndstr_args setStart(String start) { this.start = start; return this; } public void unsetStart() { this.start = null; } /** Returns true if field start is set (has been assigned a value) and false otherwise */ public boolean isSetStart() { return this.start != null; } public void setStartIsSet(boolean value) { if (!value) { this.start = null; } } public String getTend() { return this.tend; } public diffKeyStartstrEndstr_args setTend(String tend) { this.tend = tend; return this; } public void unsetTend() { this.tend = null; } /** Returns true if field tend is set (has been assigned a value) and false otherwise */ public boolean isSetTend() { return this.tend != null; } public void setTendIsSet(boolean value) { if (!value) { this.tend = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public diffKeyStartstrEndstr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public diffKeyStartstrEndstr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public diffKeyStartstrEndstr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case START: if (value == null) { unsetStart(); } else { setStart((String)value); } break; case TEND: if (value == null) { unsetTend(); } else { setTend((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case START: return getStart(); case TEND: return getTend(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case START: return isSetStart(); case TEND: return isSetTend(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffKeyStartstrEndstr_args) return this.equals((diffKeyStartstrEndstr_args)that); return false; } public boolean equals(diffKeyStartstrEndstr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_start = true && this.isSetStart(); boolean that_present_start = true && that.isSetStart(); if (this_present_start || that_present_start) { if (!(this_present_start && that_present_start)) return false; if (!this.start.equals(that.start)) return false; } boolean this_present_tend = true && this.isSetTend(); boolean that_present_tend = true && that.isSetTend(); if (this_present_tend || that_present_tend) { if (!(this_present_tend && that_present_tend)) return false; if (!this.tend.equals(that.tend)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_start = true && (isSetStart()); list.add(present_start); if (present_start) list.add(start); boolean present_tend = true && (isSetTend()); list.add(present_tend); if (present_tend) list.add(tend); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(diffKeyStartstrEndstr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTend()).compareTo(other.isSetTend()); if (lastComparison != 0) { return lastComparison; } if (isSetTend()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tend, other.tend); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("diffKeyStartstrEndstr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("start:"); if (this.start == null) { sb.append("null"); } else { sb.append(this.start); } first = false; if (!first) sb.append(", "); sb.append("tend:"); if (this.tend == null) { sb.append("null"); } else { sb.append(this.tend); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 diffKeyStartstrEndstr_argsStandardSchemeFactory implements SchemeFactory { public diffKeyStartstrEndstr_argsStandardScheme getScheme() { return new diffKeyStartstrEndstr_argsStandardScheme(); } } private static class diffKeyStartstrEndstr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyStartstrEndstr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // START if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.start = iprot.readString(); struct.setStartIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TEND if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, diffKeyStartstrEndstr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeString(struct.start); oprot.writeFieldEnd(); } if (struct.tend != null) { oprot.writeFieldBegin(TEND_FIELD_DESC); oprot.writeString(struct.tend); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyStartstrEndstr_argsTupleSchemeFactory implements SchemeFactory { public diffKeyStartstrEndstr_argsTupleScheme getScheme() { return new diffKeyStartstrEndstr_argsTupleScheme(); } } private static class diffKeyStartstrEndstr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetStart()) { optionals.set(1); } if (struct.isSetTend()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetStart()) { oprot.writeString(struct.start); } if (struct.isSetTend()) { oprot.writeString(struct.tend); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyStartstrEndstr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.start = iprot.readString(); struct.setStartIsSet(true); } if (incoming.get(2)) { struct.tend = iprot.readString(); struct.setTendIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class diffKeyStartstrEndstr_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("diffKeyStartstrEndstr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffKeyStartstrEndstr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffKeyStartstrEndstr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Diff.class), 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.I64)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(diffKeyStartstrEndstr_result.class, metaDataMap); } public diffKeyStartstrEndstr_result() { } public diffKeyStartstrEndstr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public diffKeyStartstrEndstr_result(diffKeyStartstrEndstr_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { com.cinchapi.concourse.thrift.TObject other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); com.cinchapi.concourse.thrift.TObject __this__success_copy_key = new com.cinchapi.concourse.thrift.TObject(other_element_key); Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); com.cinchapi.concourse.thrift.Diff __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public diffKeyStartstrEndstr_result deepCopy() { return new diffKeyStartstrEndstr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(com.cinchapi.concourse.thrift.TObject key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public diffKeyStartstrEndstr_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public diffKeyStartstrEndstr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public diffKeyStartstrEndstr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public diffKeyStartstrEndstr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffKeyStartstrEndstr_result) return this.equals((diffKeyStartstrEndstr_result)that); return false; } public boolean equals(diffKeyStartstrEndstr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(diffKeyStartstrEndstr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("diffKeyStartstrEndstr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 diffKeyStartstrEndstr_resultStandardSchemeFactory implements SchemeFactory { public diffKeyStartstrEndstr_resultStandardScheme getScheme() { return new diffKeyStartstrEndstr_resultStandardScheme(); } } private static class diffKeyStartstrEndstr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffKeyStartstrEndstr_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.MAP) { { org.apache.thrift.protocol.TMap _map804 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map804.size); com.cinchapi.concourse.thrift.TObject _key805; Map> _val806; for (int _i807 = 0; _i807 < _map804.size; ++_i807) { _key805 = new com.cinchapi.concourse.thrift.TObject(); _key805.read(iprot); { org.apache.thrift.protocol.TMap _map808 = iprot.readMapBegin(); _val806 = new LinkedHashMap>(2*_map808.size); com.cinchapi.concourse.thrift.Diff _key809; Set _val810; for (int _i811 = 0; _i811 < _map808.size; ++_i811) { _key809 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set812 = iprot.readSetBegin(); _val810 = new LinkedHashSet(2*_set812.size); long _elem813; for (int _i814 = 0; _i814 < _set812.size; ++_i814) { _elem813 = iprot.readI64(); _val810.add(_elem813); } iprot.readSetEnd(); } _val806.put(_key809, _val810); } iprot.readMapEnd(); } struct.success.put(_key805, _val806); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, diffKeyStartstrEndstr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter815 : struct.success.entrySet()) { _iter815.getKey().write(oprot); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter815.getValue().size())); for (Map.Entry> _iter816 : _iter815.getValue().entrySet()) { oprot.writeI32(_iter816.getKey().getValue()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, _iter816.getValue().size())); for (long _iter817 : _iter816.getValue()) { oprot.writeI64(_iter817); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffKeyStartstrEndstr_resultTupleSchemeFactory implements SchemeFactory { public diffKeyStartstrEndstr_resultTupleScheme getScheme() { return new diffKeyStartstrEndstr_resultTupleScheme(); } } private static class diffKeyStartstrEndstr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffKeyStartstrEndstr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter818 : struct.success.entrySet()) { _iter818.getKey().write(oprot); { oprot.writeI32(_iter818.getValue().size()); for (Map.Entry> _iter819 : _iter818.getValue().entrySet()) { oprot.writeI32(_iter819.getKey().getValue()); { oprot.writeI32(_iter819.getValue().size()); for (long _iter820 : _iter819.getValue()) { oprot.writeI64(_iter820); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffKeyStartstrEndstr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map821 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map821.size); com.cinchapi.concourse.thrift.TObject _key822; Map> _val823; for (int _i824 = 0; _i824 < _map821.size; ++_i824) { _key822 = new com.cinchapi.concourse.thrift.TObject(); _key822.read(iprot); { org.apache.thrift.protocol.TMap _map825 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val823 = new LinkedHashMap>(2*_map825.size); com.cinchapi.concourse.thrift.Diff _key826; Set _val827; for (int _i828 = 0; _i828 < _map825.size; ++_i828) { _key826 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TSet _set829 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); _val827 = new LinkedHashSet(2*_set829.size); long _elem830; for (int _i831 = 0; _i831 < _set829.size; ++_i831) { _elem830 = iprot.readI64(); _val827.add(_elem830); } } _val823.put(_key826, _val827); } } struct.success.put(_key822, _val823); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class invokePlugin_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("invokePlugin_args"); private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField METHOD_FIELD_DESC = new org.apache.thrift.protocol.TField("method", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField PARAMS_FIELD_DESC = new org.apache.thrift.protocol.TField("params", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new invokePlugin_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new invokePlugin_argsTupleSchemeFactory()); } public String id; // required public String method; // required public List params; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ID((short)1, "id"), METHOD((short)2, "method"), PARAMS((short)3, "params"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // ID return ID; case 2: // METHOD return METHOD; case 3: // PARAMS return PARAMS; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.METHOD, new org.apache.thrift.meta_data.FieldMetaData("method", 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.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.ComplexTObject.class)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(invokePlugin_args.class, metaDataMap); } public invokePlugin_args() { } public invokePlugin_args( String id, String method, List params, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.id = id; this.method = method; this.params = params; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public invokePlugin_args(invokePlugin_args other) { if (other.isSetId()) { this.id = other.id; } if (other.isSetMethod()) { this.method = other.method; } if (other.isSetParams()) { List __this__params = new ArrayList(other.params.size()); for (com.cinchapi.concourse.thrift.ComplexTObject other_element : other.params) { __this__params.add(new com.cinchapi.concourse.thrift.ComplexTObject(other_element)); } this.params = __this__params; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public invokePlugin_args deepCopy() { return new invokePlugin_args(this); } @Override public void clear() { this.id = null; this.method = null; this.params = null; this.creds = null; this.transaction = null; this.environment = null; } public String getId() { return this.id; } public invokePlugin_args setId(String id) { this.id = id; return this; } public void unsetId() { this.id = null; } /** Returns true if field id is set (has been assigned a value) and false otherwise */ public boolean isSetId() { return this.id != null; } public void setIdIsSet(boolean value) { if (!value) { this.id = null; } } public String getMethod() { return this.method; } public invokePlugin_args setMethod(String method) { this.method = method; return this; } public void unsetMethod() { this.method = null; } /** Returns true if field method is set (has been assigned a value) and false otherwise */ public boolean isSetMethod() { return this.method != null; } public void setMethodIsSet(boolean value) { if (!value) { this.method = null; } } public int getParamsSize() { return (this.params == null) ? 0 : this.params.size(); } public java.util.Iterator getParamsIterator() { return (this.params == null) ? null : this.params.iterator(); } public void addToParams(com.cinchapi.concourse.thrift.ComplexTObject elem) { if (this.params == null) { this.params = new ArrayList(); } this.params.add(elem); } public List getParams() { return this.params; } public invokePlugin_args setParams(List 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 com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public invokePlugin_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public invokePlugin_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public invokePlugin_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case ID: if (value == null) { unsetId(); } else { setId((String)value); } break; case METHOD: if (value == null) { unsetMethod(); } else { setMethod((String)value); } break; case PARAMS: if (value == null) { unsetParams(); } else { setParams((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case ID: return getId(); case METHOD: return getMethod(); case PARAMS: return getParams(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case ID: return isSetId(); case METHOD: return isSetMethod(); case PARAMS: return isSetParams(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof invokePlugin_args) return this.equals((invokePlugin_args)that); return false; } public boolean equals(invokePlugin_args that) { if (that == null) return false; boolean this_present_id = true && this.isSetId(); boolean that_present_id = true && that.isSetId(); if (this_present_id || that_present_id) { if (!(this_present_id && that_present_id)) return false; if (!this.id.equals(that.id)) return false; } boolean this_present_method = true && this.isSetMethod(); boolean that_present_method = true && that.isSetMethod(); if (this_present_method || that_present_method) { if (!(this_present_method && that_present_method)) return false; if (!this.method.equals(that.method)) 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; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_id = true && (isSetId()); list.add(present_id); if (present_id) list.add(id); boolean present_method = true && (isSetMethod()); list.add(present_method); if (present_method) list.add(method); boolean present_params = true && (isSetParams()); list.add(present_params); if (present_params) list.add(params); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(invokePlugin_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); if (lastComparison != 0) { return lastComparison; } if (isSetId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetMethod()).compareTo(other.isSetMethod()); if (lastComparison != 0) { return lastComparison; } if (isSetMethod()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.method, other.method); 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; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("invokePlugin_args("); boolean first = true; sb.append("id:"); if (this.id == null) { sb.append("null"); } else { sb.append(this.id); } first = false; if (!first) sb.append(", "); sb.append("method:"); if (this.method == null) { sb.append("null"); } else { sb.append(this.method); } first = false; if (!first) sb.append(", "); sb.append("params:"); if (this.params == null) { sb.append("null"); } else { sb.append(this.params); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 invokePlugin_argsStandardSchemeFactory implements SchemeFactory { public invokePlugin_argsStandardScheme getScheme() { return new invokePlugin_argsStandardScheme(); } } private static class invokePlugin_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, invokePlugin_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.id = iprot.readString(); struct.setIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // METHOD if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.method = iprot.readString(); struct.setMethodIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // PARAMS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list832 = iprot.readListBegin(); struct.params = new ArrayList(_list832.size); com.cinchapi.concourse.thrift.ComplexTObject _elem833; for (int _i834 = 0; _i834 < _list832.size; ++_i834) { _elem833 = new com.cinchapi.concourse.thrift.ComplexTObject(); _elem833.read(iprot); struct.params.add(_elem833); } iprot.readListEnd(); } struct.setParamsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, invokePlugin_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.id != null) { oprot.writeFieldBegin(ID_FIELD_DESC); oprot.writeString(struct.id); oprot.writeFieldEnd(); } if (struct.method != null) { oprot.writeFieldBegin(METHOD_FIELD_DESC); oprot.writeString(struct.method); oprot.writeFieldEnd(); } if (struct.params != null) { oprot.writeFieldBegin(PARAMS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.params.size())); for (com.cinchapi.concourse.thrift.ComplexTObject _iter835 : struct.params) { _iter835.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class invokePlugin_argsTupleSchemeFactory implements SchemeFactory { public invokePlugin_argsTupleScheme getScheme() { return new invokePlugin_argsTupleScheme(); } } private static class invokePlugin_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, invokePlugin_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetId()) { optionals.set(0); } if (struct.isSetMethod()) { optionals.set(1); } if (struct.isSetParams()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetId()) { oprot.writeString(struct.id); } if (struct.isSetMethod()) { oprot.writeString(struct.method); } if (struct.isSetParams()) { { oprot.writeI32(struct.params.size()); for (com.cinchapi.concourse.thrift.ComplexTObject _iter836 : struct.params) { _iter836.write(oprot); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, invokePlugin_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.id = iprot.readString(); struct.setIdIsSet(true); } if (incoming.get(1)) { struct.method = iprot.readString(); struct.setMethodIsSet(true); } if (incoming.get(2)) { { org.apache.thrift.protocol.TList _list837 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.params = new ArrayList(_list837.size); com.cinchapi.concourse.thrift.ComplexTObject _elem838; for (int _i839 = 0; _i839 < _list837.size; ++_i839) { _elem838 = new com.cinchapi.concourse.thrift.ComplexTObject(); _elem838.read(iprot); struct.params.add(_elem838); } } struct.setParamsIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class invokePlugin_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("invokePlugin_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new invokePlugin_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new invokePlugin_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.ComplexTObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.InvalidArgumentException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.ComplexTObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(invokePlugin_result.class, metaDataMap); } public invokePlugin_result() { } public invokePlugin_result( com.cinchapi.concourse.thrift.ComplexTObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public invokePlugin_result(invokePlugin_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.ComplexTObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(other.ex3); } } public invokePlugin_result deepCopy() { return new invokePlugin_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public com.cinchapi.concourse.thrift.ComplexTObject getSuccess() { return this.success; } public invokePlugin_result setSuccess(com.cinchapi.concourse.thrift.ComplexTObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public invokePlugin_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public invokePlugin_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.InvalidArgumentException getEx3() { return this.ex3; } public invokePlugin_result setEx3(com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.ComplexTObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.InvalidArgumentException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof invokePlugin_result) return this.equals((invokePlugin_result)that); return false; } public boolean equals(invokePlugin_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(invokePlugin_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("invokePlugin_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 invokePlugin_resultStandardSchemeFactory implements SchemeFactory { public invokePlugin_resultStandardScheme getScheme() { return new invokePlugin_resultStandardScheme(); } } private static class invokePlugin_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, invokePlugin_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.ComplexTObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, invokePlugin_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class invokePlugin_resultTupleSchemeFactory implements SchemeFactory { public invokePlugin_resultTupleScheme getScheme() { return new invokePlugin_resultTupleScheme(); } } private static class invokePlugin_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, invokePlugin_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, invokePlugin_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.ComplexTObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class login_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("login_args"); private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new login_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new login_argsTupleSchemeFactory()); } public ByteBuffer username; // required public ByteBuffer password; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USERNAME((short)1, "username"), PASSWORD((short)2, "password"), ENVIRONMENT((short)3, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USERNAME return USERNAME; case 2: // PASSWORD return PASSWORD; case 3: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(login_args.class, metaDataMap); } public login_args() { } public login_args( ByteBuffer username, ByteBuffer password, String environment) { this(); this.username = org.apache.thrift.TBaseHelper.copyBinary(username); this.password = org.apache.thrift.TBaseHelper.copyBinary(password); this.environment = environment; } /** * Performs a deep copy on other. */ public login_args(login_args other) { if (other.isSetUsername()) { this.username = org.apache.thrift.TBaseHelper.copyBinary(other.username); } if (other.isSetPassword()) { this.password = org.apache.thrift.TBaseHelper.copyBinary(other.password); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public login_args deepCopy() { return new login_args(this); } @Override public void clear() { this.username = null; this.password = null; this.environment = null; } public byte[] getUsername() { setUsername(org.apache.thrift.TBaseHelper.rightSize(username)); return username == null ? null : username.array(); } public ByteBuffer bufferForUsername() { return org.apache.thrift.TBaseHelper.copyBinary(username); } public login_args setUsername(byte[] username) { this.username = username == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(username, username.length)); return this; } public login_args setUsername(ByteBuffer username) { this.username = org.apache.thrift.TBaseHelper.copyBinary(username); return this; } public void unsetUsername() { this.username = null; } /** Returns true if field username is set (has been assigned a value) and false otherwise */ public boolean isSetUsername() { return this.username != null; } public void setUsernameIsSet(boolean value) { if (!value) { this.username = null; } } public byte[] getPassword() { setPassword(org.apache.thrift.TBaseHelper.rightSize(password)); return password == null ? null : password.array(); } public ByteBuffer bufferForPassword() { return org.apache.thrift.TBaseHelper.copyBinary(password); } public login_args setPassword(byte[] password) { this.password = password == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(password, password.length)); return this; } public login_args setPassword(ByteBuffer password) { this.password = org.apache.thrift.TBaseHelper.copyBinary(password); return this; } public void unsetPassword() { this.password = null; } /** Returns true if field password is set (has been assigned a value) and false otherwise */ public boolean isSetPassword() { return this.password != null; } public void setPasswordIsSet(boolean value) { if (!value) { this.password = null; } } public String getEnvironment() { return this.environment; } public login_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case USERNAME: if (value == null) { unsetUsername(); } else { setUsername((ByteBuffer)value); } break; case PASSWORD: if (value == null) { unsetPassword(); } else { setPassword((ByteBuffer)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case USERNAME: return getUsername(); case PASSWORD: return getPassword(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case USERNAME: return isSetUsername(); case PASSWORD: return isSetPassword(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof login_args) return this.equals((login_args)that); return false; } public boolean equals(login_args that) { if (that == null) return false; boolean this_present_username = true && this.isSetUsername(); boolean that_present_username = true && that.isSetUsername(); if (this_present_username || that_present_username) { if (!(this_present_username && that_present_username)) return false; if (!this.username.equals(that.username)) return false; } boolean this_present_password = true && this.isSetPassword(); boolean that_present_password = true && that.isSetPassword(); if (this_present_password || that_present_password) { if (!(this_present_password && that_present_password)) return false; if (!this.password.equals(that.password)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_username = true && (isSetUsername()); list.add(present_username); if (present_username) list.add(username); boolean present_password = true && (isSetPassword()); list.add(present_password); if (present_password) list.add(password); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(login_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); if (lastComparison != 0) { return lastComparison; } if (isSetUsername()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPassword()).compareTo(other.isSetPassword()); if (lastComparison != 0) { return lastComparison; } if (isSetPassword()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, other.password); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("login_args("); boolean first = true; sb.append("username:"); if (this.username == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.username, sb); } first = false; if (!first) sb.append(", "); sb.append("password:"); if (this.password == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.password, sb); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class login_argsStandardSchemeFactory implements SchemeFactory { public login_argsStandardScheme getScheme() { return new login_argsStandardScheme(); } } private static class login_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, login_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // USERNAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.username = iprot.readBinary(); struct.setUsernameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // PASSWORD if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.password = iprot.readBinary(); struct.setPasswordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, login_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.username != null) { oprot.writeFieldBegin(USERNAME_FIELD_DESC); oprot.writeBinary(struct.username); oprot.writeFieldEnd(); } if (struct.password != null) { oprot.writeFieldBegin(PASSWORD_FIELD_DESC); oprot.writeBinary(struct.password); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class login_argsTupleSchemeFactory implements SchemeFactory { public login_argsTupleScheme getScheme() { return new login_argsTupleScheme(); } } private static class login_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, login_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUsername()) { optionals.set(0); } if (struct.isSetPassword()) { optionals.set(1); } if (struct.isSetEnvironment()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetUsername()) { oprot.writeBinary(struct.username); } if (struct.isSetPassword()) { oprot.writeBinary(struct.password); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, login_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.username = iprot.readBinary(); struct.setUsernameIsSet(true); } if (incoming.get(1)) { struct.password = iprot.readBinary(); struct.setPasswordIsSet(true); } if (incoming.get(2)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class login_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("login_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new login_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new login_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(login_result.class, metaDataMap); } public login_result() { } public login_result( com.cinchapi.concourse.thrift.AccessToken success, com.cinchapi.concourse.thrift.SecurityException ex) { this(); this.success = success; this.ex = ex; } /** * Performs a deep copy on other. */ public login_result(login_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.AccessToken(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } } public login_result deepCopy() { return new login_result(this); } @Override public void clear() { this.success = null; this.ex = null; } public com.cinchapi.concourse.thrift.AccessToken getSuccess() { return this.success; } public login_result setSuccess(com.cinchapi.concourse.thrift.AccessToken success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public login_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.AccessToken)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof login_result) return this.equals((login_result)that); return false; } public boolean equals(login_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); return list.hashCode(); } @Override public int compareTo(login_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("login_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (success != null) { success.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class login_resultStandardSchemeFactory implements SchemeFactory { public login_resultStandardScheme getScheme() { return new login_resultStandardScheme(); } } private static class login_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, login_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.AccessToken(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, login_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class login_resultTupleSchemeFactory implements SchemeFactory { public login_resultTupleScheme getScheme() { return new login_resultTupleScheme(); } } private static class login_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, login_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, login_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.AccessToken(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } } } } public static class logout_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("logout_args"); private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new logout_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new logout_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken token; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { TOKEN((short)1, "token"), ENVIRONMENT((short)2, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TOKEN return TOKEN; case 2: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(logout_args.class, metaDataMap); } public logout_args() { } public logout_args( com.cinchapi.concourse.thrift.AccessToken token, String environment) { this(); this.token = token; this.environment = environment; } /** * Performs a deep copy on other. */ public logout_args(logout_args other) { if (other.isSetToken()) { this.token = new com.cinchapi.concourse.thrift.AccessToken(other.token); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public logout_args deepCopy() { return new logout_args(this); } @Override public void clear() { this.token = null; this.environment = null; } public com.cinchapi.concourse.thrift.AccessToken getToken() { return this.token; } public logout_args setToken(com.cinchapi.concourse.thrift.AccessToken token) { this.token = token; return this; } public void unsetToken() { this.token = null; } /** Returns true if field token is set (has been assigned a value) and false otherwise */ public boolean isSetToken() { return this.token != null; } public void setTokenIsSet(boolean value) { if (!value) { this.token = null; } } public String getEnvironment() { return this.environment; } public logout_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case TOKEN: if (value == null) { unsetToken(); } else { setToken((com.cinchapi.concourse.thrift.AccessToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case TOKEN: return getToken(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case TOKEN: return isSetToken(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof logout_args) return this.equals((logout_args)that); return false; } public boolean equals(logout_args that) { if (that == null) return false; boolean this_present_token = true && this.isSetToken(); boolean that_present_token = true && that.isSetToken(); if (this_present_token || that_present_token) { if (!(this_present_token && that_present_token)) return false; if (!this.token.equals(that.token)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_token = true && (isSetToken()); list.add(present_token); if (present_token) list.add(token); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(logout_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } if (isSetToken()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("logout_args("); boolean first = true; sb.append("token:"); if (this.token == null) { sb.append("null"); } else { sb.append(this.token); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (token != null) { token.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class logout_argsStandardSchemeFactory implements SchemeFactory { public logout_argsStandardScheme getScheme() { return new logout_argsStandardScheme(); } } private static class logout_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, logout_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.token = new com.cinchapi.concourse.thrift.AccessToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, logout_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.token != null) { oprot.writeFieldBegin(TOKEN_FIELD_DESC); struct.token.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class logout_argsTupleSchemeFactory implements SchemeFactory { public logout_argsTupleScheme getScheme() { return new logout_argsTupleScheme(); } } private static class logout_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, logout_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetToken()) { optionals.set(0); } if (struct.isSetEnvironment()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetToken()) { struct.token.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, logout_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.token = new com.cinchapi.concourse.thrift.AccessToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } if (incoming.get(1)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class logout_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("logout_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new logout_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new logout_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(logout_result.class, metaDataMap); } public logout_result() { } public logout_result( com.cinchapi.concourse.thrift.SecurityException ex) { this(); this.ex = ex; } /** * Performs a deep copy on other. */ public logout_result(logout_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } } public logout_result deepCopy() { return new logout_result(this); } @Override public void clear() { this.ex = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public logout_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof logout_result) return this.equals((logout_result)that); return false; } public boolean equals(logout_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); return list.hashCode(); } @Override public int compareTo(logout_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("logout_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class logout_resultStandardSchemeFactory implements SchemeFactory { public logout_resultStandardScheme getScheme() { return new logout_resultStandardScheme(); } } private static class logout_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, logout_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, logout_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class logout_resultTupleSchemeFactory implements SchemeFactory { public logout_resultTupleScheme getScheme() { return new logout_resultTupleScheme(); } } private static class logout_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, logout_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetEx()) { struct.ex.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, logout_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } } } } public static class stage_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("stage_args"); private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new stage_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new stage_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken token; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { TOKEN((short)1, "token"), ENVIRONMENT((short)2, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TOKEN return TOKEN; case 2: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stage_args.class, metaDataMap); } public stage_args() { } public stage_args( com.cinchapi.concourse.thrift.AccessToken token, String environment) { this(); this.token = token; this.environment = environment; } /** * Performs a deep copy on other. */ public stage_args(stage_args other) { if (other.isSetToken()) { this.token = new com.cinchapi.concourse.thrift.AccessToken(other.token); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public stage_args deepCopy() { return new stage_args(this); } @Override public void clear() { this.token = null; this.environment = null; } public com.cinchapi.concourse.thrift.AccessToken getToken() { return this.token; } public stage_args setToken(com.cinchapi.concourse.thrift.AccessToken token) { this.token = token; return this; } public void unsetToken() { this.token = null; } /** Returns true if field token is set (has been assigned a value) and false otherwise */ public boolean isSetToken() { return this.token != null; } public void setTokenIsSet(boolean value) { if (!value) { this.token = null; } } public String getEnvironment() { return this.environment; } public stage_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case TOKEN: if (value == null) { unsetToken(); } else { setToken((com.cinchapi.concourse.thrift.AccessToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case TOKEN: return getToken(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case TOKEN: return isSetToken(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof stage_args) return this.equals((stage_args)that); return false; } public boolean equals(stage_args that) { if (that == null) return false; boolean this_present_token = true && this.isSetToken(); boolean that_present_token = true && that.isSetToken(); if (this_present_token || that_present_token) { if (!(this_present_token && that_present_token)) return false; if (!this.token.equals(that.token)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_token = true && (isSetToken()); list.add(present_token); if (present_token) list.add(token); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(stage_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } if (isSetToken()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("stage_args("); boolean first = true; sb.append("token:"); if (this.token == null) { sb.append("null"); } else { sb.append(this.token); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (token != null) { token.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class stage_argsStandardSchemeFactory implements SchemeFactory { public stage_argsStandardScheme getScheme() { return new stage_argsStandardScheme(); } } private static class stage_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, stage_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.token = new com.cinchapi.concourse.thrift.AccessToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, stage_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.token != null) { oprot.writeFieldBegin(TOKEN_FIELD_DESC); struct.token.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class stage_argsTupleSchemeFactory implements SchemeFactory { public stage_argsTupleScheme getScheme() { return new stage_argsTupleScheme(); } } private static class stage_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, stage_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetToken()) { optionals.set(0); } if (struct.isSetEnvironment()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetToken()) { struct.token.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, stage_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.token = new com.cinchapi.concourse.thrift.AccessToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } if (incoming.get(1)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class stage_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("stage_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new stage_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new stage_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TransactionToken success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stage_result.class, metaDataMap); } public stage_result() { } public stage_result( com.cinchapi.concourse.thrift.TransactionToken success, com.cinchapi.concourse.thrift.SecurityException ex) { this(); this.success = success; this.ex = ex; } /** * Performs a deep copy on other. */ public stage_result(stage_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TransactionToken(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } } public stage_result deepCopy() { return new stage_result(this); } @Override public void clear() { this.success = null; this.ex = null; } public com.cinchapi.concourse.thrift.TransactionToken getSuccess() { return this.success; } public stage_result setSuccess(com.cinchapi.concourse.thrift.TransactionToken success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public stage_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof stage_result) return this.equals((stage_result)that); return false; } public boolean equals(stage_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); return list.hashCode(); } @Override public int compareTo(stage_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("stage_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (success != null) { success.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class stage_resultStandardSchemeFactory implements SchemeFactory { public stage_resultStandardScheme getScheme() { return new stage_resultStandardScheme(); } } private static class stage_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, stage_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TransactionToken(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, stage_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class stage_resultTupleSchemeFactory implements SchemeFactory { public stage_resultTupleScheme getScheme() { return new stage_resultTupleScheme(); } } private static class stage_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, stage_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, stage_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TransactionToken(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } } } } public static class insertJson_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("insertJson_args"); private static final org.apache.thrift.protocol.TField JSON_FIELD_DESC = new org.apache.thrift.protocol.TField("json", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new insertJson_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new insertJson_argsTupleSchemeFactory()); } public String json; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { JSON((short)1, "json"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // JSON return JSON; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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.JSON, new org.apache.thrift.meta_data.FieldMetaData("json", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertJson_args.class, metaDataMap); } public insertJson_args() { } public insertJson_args( String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.json = json; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public insertJson_args(insertJson_args other) { if (other.isSetJson()) { this.json = other.json; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public insertJson_args deepCopy() { return new insertJson_args(this); } @Override public void clear() { this.json = null; this.creds = null; this.transaction = null; this.environment = null; } public String getJson() { return this.json; } public insertJson_args setJson(String json) { this.json = json; return this; } public void unsetJson() { this.json = null; } /** Returns true if field json is set (has been assigned a value) and false otherwise */ public boolean isSetJson() { return this.json != null; } public void setJsonIsSet(boolean value) { if (!value) { this.json = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public insertJson_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public insertJson_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public insertJson_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case JSON: if (value == null) { unsetJson(); } else { setJson((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case JSON: return getJson(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 JSON: return isSetJson(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof insertJson_args) return this.equals((insertJson_args)that); return false; } public boolean equals(insertJson_args that) { if (that == null) return false; boolean this_present_json = true && this.isSetJson(); boolean that_present_json = true && that.isSetJson(); if (this_present_json || that_present_json) { if (!(this_present_json && that_present_json)) return false; if (!this.json.equals(that.json)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_json = true && (isSetJson()); list.add(present_json); if (present_json) list.add(json); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(insertJson_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetJson()).compareTo(other.isSetJson()); if (lastComparison != 0) { return lastComparison; } if (isSetJson()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.json, other.json); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("insertJson_args("); boolean first = true; sb.append("json:"); if (this.json == null) { sb.append("null"); } else { sb.append(this.json); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 insertJson_argsStandardSchemeFactory implements SchemeFactory { public insertJson_argsStandardScheme getScheme() { return new insertJson_argsStandardScheme(); } } private static class insertJson_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, insertJson_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: // JSON if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.json = iprot.readString(); struct.setJsonIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, insertJson_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.json != null) { oprot.writeFieldBegin(JSON_FIELD_DESC); oprot.writeString(struct.json); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class insertJson_argsTupleSchemeFactory implements SchemeFactory { public insertJson_argsTupleScheme getScheme() { return new insertJson_argsTupleScheme(); } } private static class insertJson_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, insertJson_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetJson()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetJson()) { oprot.writeString(struct.json); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, insertJson_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.json = iprot.readString(); struct.setJsonIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class insertJson_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("insertJson_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new insertJson_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new insertJson_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.I64)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(insertJson_result.class, metaDataMap); } public insertJson_result() { } public insertJson_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public insertJson_result(insertJson_result other) { if (other.isSetSuccess()) { Set __this__success = new LinkedHashSet(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public insertJson_result deepCopy() { return new insertJson_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = 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(long elem) { if (this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public insertJson_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public insertJson_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public insertJson_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public insertJson_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof insertJson_result) return this.equals((insertJson_result)that); return false; } public boolean equals(insertJson_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(insertJson_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("insertJson_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 insertJson_resultStandardSchemeFactory implements SchemeFactory { public insertJson_resultStandardScheme getScheme() { return new insertJson_resultStandardScheme(); } } private static class insertJson_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, insertJson_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 _set840 = iprot.readSetBegin(); struct.success = new LinkedHashSet(2*_set840.size); long _elem841; for (int _i842 = 0; _i842 < _set840.size; ++_i842) { _elem841 = iprot.readI64(); struct.success.add(_elem841); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, insertJson_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.I64, struct.success.size())); for (long _iter843 : struct.success) { oprot.writeI64(_iter843); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class insertJson_resultTupleSchemeFactory implements SchemeFactory { public insertJson_resultTupleScheme getScheme() { return new insertJson_resultTupleScheme(); } } private static class insertJson_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, insertJson_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter844 : struct.success) { oprot.writeI64(_iter844); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, insertJson_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set845 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet(2*_set845.size); long _elem846; for (int _i847 = 0; _i847 < _set845.size; ++_i847) { _elem846 = iprot.readI64(); struct.success.add(_elem846); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class insertJsonRecord_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("insertJsonRecord_args"); private static final org.apache.thrift.protocol.TField JSON_FIELD_DESC = new org.apache.thrift.protocol.TField("json", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new insertJsonRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new insertJsonRecord_argsTupleSchemeFactory()); } public String json; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { JSON((short)1, "json"), RECORD((short)2, "record"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // JSON return JSON; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.JSON, new org.apache.thrift.meta_data.FieldMetaData("json", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertJsonRecord_args.class, metaDataMap); } public insertJsonRecord_args() { } public insertJsonRecord_args( String json, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.json = json; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public insertJsonRecord_args(insertJsonRecord_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetJson()) { this.json = other.json; } this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public insertJsonRecord_args deepCopy() { return new insertJsonRecord_args(this); } @Override public void clear() { this.json = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getJson() { return this.json; } public insertJsonRecord_args setJson(String json) { this.json = json; return this; } public void unsetJson() { this.json = null; } /** Returns true if field json is set (has been assigned a value) and false otherwise */ public boolean isSetJson() { return this.json != null; } public void setJsonIsSet(boolean value) { if (!value) { this.json = null; } } public long getRecord() { return this.record; } public insertJsonRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public insertJsonRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public insertJsonRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public insertJsonRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case JSON: if (value == null) { unsetJson(); } else { setJson((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case JSON: return getJson(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 JSON: return isSetJson(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof insertJsonRecord_args) return this.equals((insertJsonRecord_args)that); return false; } public boolean equals(insertJsonRecord_args that) { if (that == null) return false; boolean this_present_json = true && this.isSetJson(); boolean that_present_json = true && that.isSetJson(); if (this_present_json || that_present_json) { if (!(this_present_json && that_present_json)) return false; if (!this.json.equals(that.json)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_json = true && (isSetJson()); list.add(present_json); if (present_json) list.add(json); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(insertJsonRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetJson()).compareTo(other.isSetJson()); if (lastComparison != 0) { return lastComparison; } if (isSetJson()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.json, other.json); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("insertJsonRecord_args("); boolean first = true; sb.append("json:"); if (this.json == null) { sb.append("null"); } else { sb.append(this.json); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 insertJsonRecord_argsStandardSchemeFactory implements SchemeFactory { public insertJsonRecord_argsStandardScheme getScheme() { return new insertJsonRecord_argsStandardScheme(); } } private static class insertJsonRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, insertJsonRecord_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: // JSON if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.json = iprot.readString(); struct.setJsonIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, insertJsonRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.json != null) { oprot.writeFieldBegin(JSON_FIELD_DESC); oprot.writeString(struct.json); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class insertJsonRecord_argsTupleSchemeFactory implements SchemeFactory { public insertJsonRecord_argsTupleScheme getScheme() { return new insertJsonRecord_argsTupleScheme(); } } private static class insertJsonRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, insertJsonRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetJson()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetJson()) { oprot.writeString(struct.json); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, insertJsonRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.json = iprot.readString(); struct.setJsonIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class insertJsonRecord_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("insertJsonRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new insertJsonRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new insertJsonRecord_resultTupleSchemeFactory()); } public boolean success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(insertJsonRecord_result.class, metaDataMap); } public insertJsonRecord_result() { } public insertJsonRecord_result( boolean success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public insertJsonRecord_result(insertJsonRecord_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public insertJsonRecord_result deepCopy() { return new insertJsonRecord_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = false; this.ex = null; this.ex2 = null; this.ex3 = null; } public boolean isSuccess() { return this.success; } public insertJsonRecord_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public insertJsonRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public insertJsonRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public insertJsonRecord_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Boolean)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof insertJsonRecord_result) return this.equals((insertJsonRecord_result)that); return false; } public boolean equals(insertJsonRecord_result that) { if (that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if (present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(insertJsonRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("insertJsonRecord_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class insertJsonRecord_resultStandardSchemeFactory implements SchemeFactory { public insertJsonRecord_resultStandardScheme getScheme() { return new insertJsonRecord_resultStandardScheme(); } } private static class insertJsonRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, insertJsonRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, insertJsonRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class insertJsonRecord_resultTupleSchemeFactory implements SchemeFactory { public insertJsonRecord_resultTupleScheme getScheme() { return new insertJsonRecord_resultTupleScheme(); } } private static class insertJsonRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, insertJsonRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { oprot.writeBool(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, insertJsonRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class insertJsonRecords_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("insertJsonRecords_args"); private static final org.apache.thrift.protocol.TField JSON_FIELD_DESC = new org.apache.thrift.protocol.TField("json", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new insertJsonRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new insertJsonRecords_argsTupleSchemeFactory()); } public String json; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { JSON((short)1, "json"), RECORDS((short)2, "records"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // JSON return JSON; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.JSON, new org.apache.thrift.meta_data.FieldMetaData("json", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertJsonRecords_args.class, metaDataMap); } public insertJsonRecords_args() { } public insertJsonRecords_args( String json, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.json = json; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public insertJsonRecords_args(insertJsonRecords_args other) { if (other.isSetJson()) { this.json = other.json; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public insertJsonRecords_args deepCopy() { return new insertJsonRecords_args(this); } @Override public void clear() { this.json = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public String getJson() { return this.json; } public insertJsonRecords_args setJson(String json) { this.json = json; return this; } public void unsetJson() { this.json = null; } /** Returns true if field json is set (has been assigned a value) and false otherwise */ public boolean isSetJson() { return this.json != null; } public void setJsonIsSet(boolean value) { if (!value) { this.json = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public insertJsonRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public insertJsonRecords_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public insertJsonRecords_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public insertJsonRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case JSON: if (value == null) { unsetJson(); } else { setJson((String)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case JSON: return getJson(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 JSON: return isSetJson(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof insertJsonRecords_args) return this.equals((insertJsonRecords_args)that); return false; } public boolean equals(insertJsonRecords_args that) { if (that == null) return false; boolean this_present_json = true && this.isSetJson(); boolean that_present_json = true && that.isSetJson(); if (this_present_json || that_present_json) { if (!(this_present_json && that_present_json)) return false; if (!this.json.equals(that.json)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_json = true && (isSetJson()); list.add(present_json); if (present_json) list.add(json); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(insertJsonRecords_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetJson()).compareTo(other.isSetJson()); if (lastComparison != 0) { return lastComparison; } if (isSetJson()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.json, other.json); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("insertJsonRecords_args("); boolean first = true; sb.append("json:"); if (this.json == null) { sb.append("null"); } else { sb.append(this.json); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 insertJsonRecords_argsStandardSchemeFactory implements SchemeFactory { public insertJsonRecords_argsStandardScheme getScheme() { return new insertJsonRecords_argsStandardScheme(); } } private static class insertJsonRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, insertJsonRecords_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: // JSON if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.json = iprot.readString(); struct.setJsonIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list848 = iprot.readListBegin(); struct.records = new ArrayList(_list848.size); long _elem849; for (int _i850 = 0; _i850 < _list848.size; ++_i850) { _elem849 = iprot.readI64(); struct.records.add(_elem849); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, insertJsonRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.json != null) { oprot.writeFieldBegin(JSON_FIELD_DESC); oprot.writeString(struct.json); oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter851 : struct.records) { oprot.writeI64(_iter851); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class insertJsonRecords_argsTupleSchemeFactory implements SchemeFactory { public insertJsonRecords_argsTupleScheme getScheme() { return new insertJsonRecords_argsTupleScheme(); } } private static class insertJsonRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, insertJsonRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetJson()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetJson()) { oprot.writeString(struct.json); } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter852 : struct.records) { oprot.writeI64(_iter852); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, insertJsonRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.json = iprot.readString(); struct.setJsonIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list853 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list853.size); long _elem854; for (int _i855 = 0; _i855 < _list853.size; ++_i855) { _elem854 = iprot.readI64(); struct.records.add(_elem854); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class insertJsonRecords_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("insertJsonRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new insertJsonRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new insertJsonRecords_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(insertJsonRecords_result.class, metaDataMap); } public insertJsonRecords_result() { } public insertJsonRecords_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public insertJsonRecords_result(insertJsonRecords_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public insertJsonRecords_result deepCopy() { return new insertJsonRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, boolean val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public insertJsonRecords_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public insertJsonRecords_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public insertJsonRecords_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public insertJsonRecords_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof insertJsonRecords_result) return this.equals((insertJsonRecords_result)that); return false; } public boolean equals(insertJsonRecords_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(insertJsonRecords_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("insertJsonRecords_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 insertJsonRecords_resultStandardSchemeFactory implements SchemeFactory { public insertJsonRecords_resultStandardScheme getScheme() { return new insertJsonRecords_resultStandardScheme(); } } private static class insertJsonRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, insertJsonRecords_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.MAP) { { org.apache.thrift.protocol.TMap _map856 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map856.size); long _key857; boolean _val858; for (int _i859 = 0; _i859 < _map856.size; ++_i859) { _key857 = iprot.readI64(); _val858 = iprot.readBool(); struct.success.put(_key857, _val858); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, insertJsonRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, struct.success.size())); for (Map.Entry _iter860 : struct.success.entrySet()) { oprot.writeI64(_iter860.getKey()); oprot.writeBool(_iter860.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class insertJsonRecords_resultTupleSchemeFactory implements SchemeFactory { public insertJsonRecords_resultTupleScheme getScheme() { return new insertJsonRecords_resultTupleScheme(); } } private static class insertJsonRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, insertJsonRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter861 : struct.success.entrySet()) { oprot.writeI64(_iter861.getKey()); oprot.writeBool(_iter861.getValue()); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, insertJsonRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map862 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, iprot.readI32()); struct.success = new LinkedHashMap(2*_map862.size); long _key863; boolean _val864; for (int _i865 = 0; _i865 < _map862.size; ++_i865) { _key863 = iprot.readI64(); _val864 = iprot.readBool(); struct.success.put(_key863, _val864); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class removeKeyValueRecord_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("removeKeyValueRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new removeKeyValueRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new removeKeyValueRecord_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), VALUE((short)2, "value"), RECORD((short)3, "record"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // RECORD return RECORD; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeKeyValueRecord_args.class, metaDataMap); } public removeKeyValueRecord_args() { } public removeKeyValueRecord_args( String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public removeKeyValueRecord_args(removeKeyValueRecord_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject(other.value); } this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public removeKeyValueRecord_args deepCopy() { return new removeKeyValueRecord_args(this); } @Override public void clear() { this.key = null; this.value = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public removeKeyValueRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public removeKeyValueRecord_args setValue(com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** Returns true if field value is set (has been assigned a value) and false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if (!value) { this.value = null; } } public long getRecord() { return this.record; } public removeKeyValueRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public removeKeyValueRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public removeKeyValueRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public removeKeyValueRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case VALUE: if (value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case VALUE: return isSetValue(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof removeKeyValueRecord_args) return this.equals((removeKeyValueRecord_args)that); return false; } public boolean equals(removeKeyValueRecord_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (!this.value.equals(that.value)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if (present_value) list.add(value); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(removeKeyValueRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("removeKeyValueRecord_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("value:"); if (this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (value != null) { value.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 removeKeyValueRecord_argsStandardSchemeFactory implements SchemeFactory { public removeKeyValueRecord_argsStandardScheme getScheme() { return new removeKeyValueRecord_argsStandardScheme(); } } private static class removeKeyValueRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, removeKeyValueRecord_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, removeKeyValueRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class removeKeyValueRecord_argsTupleSchemeFactory implements SchemeFactory { public removeKeyValueRecord_argsTupleScheme getScheme() { return new removeKeyValueRecord_argsTupleScheme(); } } private static class removeKeyValueRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, removeKeyValueRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetRecord()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { struct.value.write(oprot); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeKeyValueRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if (incoming.get(2)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class removeKeyValueRecord_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("removeKeyValueRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new removeKeyValueRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new removeKeyValueRecord_resultTupleSchemeFactory()); } public boolean success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.InvalidArgumentException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(removeKeyValueRecord_result.class, metaDataMap); } public removeKeyValueRecord_result() { } public removeKeyValueRecord_result( boolean success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public removeKeyValueRecord_result(removeKeyValueRecord_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(other.ex3); } } public removeKeyValueRecord_result deepCopy() { return new removeKeyValueRecord_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = false; this.ex = null; this.ex2 = null; this.ex3 = null; } public boolean isSuccess() { return this.success; } public removeKeyValueRecord_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public removeKeyValueRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public removeKeyValueRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.InvalidArgumentException getEx3() { return this.ex3; } public removeKeyValueRecord_result setEx3(com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Boolean)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.InvalidArgumentException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof removeKeyValueRecord_result) return this.equals((removeKeyValueRecord_result)that); return false; } public boolean equals(removeKeyValueRecord_result that) { if (that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if (present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(removeKeyValueRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("removeKeyValueRecord_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class removeKeyValueRecord_resultStandardSchemeFactory implements SchemeFactory { public removeKeyValueRecord_resultStandardScheme getScheme() { return new removeKeyValueRecord_resultStandardScheme(); } } private static class removeKeyValueRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, removeKeyValueRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, removeKeyValueRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class removeKeyValueRecord_resultTupleSchemeFactory implements SchemeFactory { public removeKeyValueRecord_resultTupleScheme getScheme() { return new removeKeyValueRecord_resultTupleScheme(); } } private static class removeKeyValueRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, removeKeyValueRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { oprot.writeBool(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeKeyValueRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class removeKeyValueRecords_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("removeKeyValueRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new removeKeyValueRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new removeKeyValueRecords_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), VALUE((short)2, "value"), RECORDS((short)3, "records"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // RECORDS return RECORDS; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeKeyValueRecords_args.class, metaDataMap); } public removeKeyValueRecords_args() { } public removeKeyValueRecords_args( String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public removeKeyValueRecords_args(removeKeyValueRecords_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject(other.value); } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public removeKeyValueRecords_args deepCopy() { return new removeKeyValueRecords_args(this); } @Override public void clear() { this.key = null; this.value = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public removeKeyValueRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public removeKeyValueRecords_args setValue(com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** Returns true if field value is set (has been assigned a value) and false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if (!value) { this.value = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public removeKeyValueRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public removeKeyValueRecords_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public removeKeyValueRecords_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public removeKeyValueRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case VALUE: if (value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case VALUE: return isSetValue(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof removeKeyValueRecords_args) return this.equals((removeKeyValueRecords_args)that); return false; } public boolean equals(removeKeyValueRecords_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (!this.value.equals(that.value)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if (present_value) list.add(value); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(removeKeyValueRecords_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("removeKeyValueRecords_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("value:"); if (this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (value != null) { value.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 removeKeyValueRecords_argsStandardSchemeFactory implements SchemeFactory { public removeKeyValueRecords_argsStandardScheme getScheme() { return new removeKeyValueRecords_argsStandardScheme(); } } private static class removeKeyValueRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, removeKeyValueRecords_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list866 = iprot.readListBegin(); struct.records = new ArrayList(_list866.size); long _elem867; for (int _i868 = 0; _i868 < _list866.size; ++_i868) { _elem867 = iprot.readI64(); struct.records.add(_elem867); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, removeKeyValueRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter869 : struct.records) { oprot.writeI64(_iter869); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class removeKeyValueRecords_argsTupleSchemeFactory implements SchemeFactory { public removeKeyValueRecords_argsTupleScheme getScheme() { return new removeKeyValueRecords_argsTupleScheme(); } } private static class removeKeyValueRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, removeKeyValueRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetRecords()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { struct.value.write(oprot); } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter870 : struct.records) { oprot.writeI64(_iter870); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeKeyValueRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if (incoming.get(2)) { { org.apache.thrift.protocol.TList _list871 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list871.size); long _elem872; for (int _i873 = 0; _i873 < _list871.size; ++_i873) { _elem872 = iprot.readI64(); struct.records.add(_elem872); } } struct.setRecordsIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class removeKeyValueRecords_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("removeKeyValueRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new removeKeyValueRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new removeKeyValueRecords_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.InvalidArgumentException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(removeKeyValueRecords_result.class, metaDataMap); } public removeKeyValueRecords_result() { } public removeKeyValueRecords_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public removeKeyValueRecords_result(removeKeyValueRecords_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(other.ex3); } } public removeKeyValueRecords_result deepCopy() { return new removeKeyValueRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, boolean val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public removeKeyValueRecords_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public removeKeyValueRecords_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public removeKeyValueRecords_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.InvalidArgumentException getEx3() { return this.ex3; } public removeKeyValueRecords_result setEx3(com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.InvalidArgumentException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof removeKeyValueRecords_result) return this.equals((removeKeyValueRecords_result)that); return false; } public boolean equals(removeKeyValueRecords_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(removeKeyValueRecords_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("removeKeyValueRecords_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 removeKeyValueRecords_resultStandardSchemeFactory implements SchemeFactory { public removeKeyValueRecords_resultStandardScheme getScheme() { return new removeKeyValueRecords_resultStandardScheme(); } } private static class removeKeyValueRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, removeKeyValueRecords_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.MAP) { { org.apache.thrift.protocol.TMap _map874 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map874.size); long _key875; boolean _val876; for (int _i877 = 0; _i877 < _map874.size; ++_i877) { _key875 = iprot.readI64(); _val876 = iprot.readBool(); struct.success.put(_key875, _val876); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, removeKeyValueRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, struct.success.size())); for (Map.Entry _iter878 : struct.success.entrySet()) { oprot.writeI64(_iter878.getKey()); oprot.writeBool(_iter878.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class removeKeyValueRecords_resultTupleSchemeFactory implements SchemeFactory { public removeKeyValueRecords_resultTupleScheme getScheme() { return new removeKeyValueRecords_resultTupleScheme(); } } private static class removeKeyValueRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, removeKeyValueRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter879 : struct.success.entrySet()) { oprot.writeI64(_iter879.getKey()); oprot.writeBool(_iter879.getValue()); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeKeyValueRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map880 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, iprot.readI32()); struct.success = new LinkedHashMap(2*_map880.size); long _key881; boolean _val882; for (int _i883 = 0; _i883 < _map880.size; ++_i883) { _key881 = iprot.readI64(); _val882 = iprot.readBool(); struct.success.put(_key881, _val882); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class setKeyValueRecord_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("setKeyValueRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new setKeyValueRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new setKeyValueRecord_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), VALUE((short)2, "value"), RECORD((short)3, "record"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // RECORD return RECORD; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setKeyValueRecord_args.class, metaDataMap); } public setKeyValueRecord_args() { } public setKeyValueRecord_args( String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public setKeyValueRecord_args(setKeyValueRecord_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject(other.value); } this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public setKeyValueRecord_args deepCopy() { return new setKeyValueRecord_args(this); } @Override public void clear() { this.key = null; this.value = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public setKeyValueRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public setKeyValueRecord_args setValue(com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** Returns true if field value is set (has been assigned a value) and false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if (!value) { this.value = null; } } public long getRecord() { return this.record; } public setKeyValueRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public setKeyValueRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public setKeyValueRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public setKeyValueRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case VALUE: if (value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case VALUE: return isSetValue(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof setKeyValueRecord_args) return this.equals((setKeyValueRecord_args)that); return false; } public boolean equals(setKeyValueRecord_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (!this.value.equals(that.value)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if (present_value) list.add(value); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(setKeyValueRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("setKeyValueRecord_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("value:"); if (this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (value != null) { value.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 setKeyValueRecord_argsStandardSchemeFactory implements SchemeFactory { public setKeyValueRecord_argsStandardScheme getScheme() { return new setKeyValueRecord_argsStandardScheme(); } } private static class setKeyValueRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setKeyValueRecord_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, setKeyValueRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class setKeyValueRecord_argsTupleSchemeFactory implements SchemeFactory { public setKeyValueRecord_argsTupleScheme getScheme() { return new setKeyValueRecord_argsTupleScheme(); } } private static class setKeyValueRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, setKeyValueRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetRecord()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { struct.value.write(oprot); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, setKeyValueRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if (incoming.get(2)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class setKeyValueRecord_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("setKeyValueRecord_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new setKeyValueRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new setKeyValueRecord_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.InvalidArgumentException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(setKeyValueRecord_result.class, metaDataMap); } public setKeyValueRecord_result() { } public setKeyValueRecord_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public setKeyValueRecord_result(setKeyValueRecord_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(other.ex3); } } public setKeyValueRecord_result deepCopy() { return new setKeyValueRecord_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; this.ex3 = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public setKeyValueRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public setKeyValueRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.InvalidArgumentException getEx3() { return this.ex3; } public setKeyValueRecord_result setEx3(com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.InvalidArgumentException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof setKeyValueRecord_result) return this.equals((setKeyValueRecord_result)that); return false; } public boolean equals(setKeyValueRecord_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(setKeyValueRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("setKeyValueRecord_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 setKeyValueRecord_resultStandardSchemeFactory implements SchemeFactory { public setKeyValueRecord_resultStandardScheme getScheme() { return new setKeyValueRecord_resultStandardScheme(); } } private static class setKeyValueRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setKeyValueRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, setKeyValueRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class setKeyValueRecord_resultTupleSchemeFactory implements SchemeFactory { public setKeyValueRecord_resultTupleScheme getScheme() { return new setKeyValueRecord_resultTupleScheme(); } } private static class setKeyValueRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, setKeyValueRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } if (struct.isSetEx2()) { optionals.set(1); } if (struct.isSetEx3()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, setKeyValueRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(1)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(2)) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class setKeyValue_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("setKeyValue_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new setKeyValue_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new setKeyValue_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), VALUE((short)2, "value"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setKeyValue_args.class, metaDataMap); } public setKeyValue_args() { } public setKeyValue_args( String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public setKeyValue_args(setKeyValue_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject(other.value); } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public setKeyValue_args deepCopy() { return new setKeyValue_args(this); } @Override public void clear() { this.key = null; this.value = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public setKeyValue_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public setKeyValue_args setValue(com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** Returns true if field value is set (has been assigned a value) and false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if (!value) { this.value = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public setKeyValue_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public setKeyValue_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public setKeyValue_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case VALUE: if (value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case VALUE: return isSetValue(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof setKeyValue_args) return this.equals((setKeyValue_args)that); return false; } public boolean equals(setKeyValue_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (!this.value.equals(that.value)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if (present_value) list.add(value); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(setKeyValue_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("setKeyValue_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("value:"); if (this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (value != null) { value.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 setKeyValue_argsStandardSchemeFactory implements SchemeFactory { public setKeyValue_argsStandardScheme getScheme() { return new setKeyValue_argsStandardScheme(); } } private static class setKeyValue_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setKeyValue_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, setKeyValue_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class setKeyValue_argsTupleSchemeFactory implements SchemeFactory { public setKeyValue_argsTupleScheme getScheme() { return new setKeyValue_argsTupleScheme(); } } private static class setKeyValue_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, setKeyValue_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { struct.value.write(oprot); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, setKeyValue_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class setKeyValue_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("setKeyValue_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new setKeyValue_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new setKeyValue_resultTupleSchemeFactory()); } public long success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.InvalidArgumentException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(setKeyValue_result.class, metaDataMap); } public setKeyValue_result() { } public setKeyValue_result( long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public setKeyValue_result(setKeyValue_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(other.ex3); } } public setKeyValue_result deepCopy() { return new setKeyValue_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = 0; this.ex = null; this.ex2 = null; this.ex3 = null; } public long getSuccess() { return this.success; } public setKeyValue_result setSuccess(long success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public setKeyValue_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public setKeyValue_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.InvalidArgumentException getEx3() { return this.ex3; } public setKeyValue_result setEx3(com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Long)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.InvalidArgumentException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof setKeyValue_result) return this.equals((setKeyValue_result)that); return false; } public boolean equals(setKeyValue_result that) { if (that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if (present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(setKeyValue_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("setKeyValue_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class setKeyValue_resultStandardSchemeFactory implements SchemeFactory { public setKeyValue_resultStandardScheme getScheme() { return new setKeyValue_resultStandardScheme(); } } private static class setKeyValue_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setKeyValue_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.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, setKeyValue_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeI64(struct.success); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class setKeyValue_resultTupleSchemeFactory implements SchemeFactory { public setKeyValue_resultTupleScheme getScheme() { return new setKeyValue_resultTupleScheme(); } } private static class setKeyValue_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, setKeyValue_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { oprot.writeI64(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, setKeyValue_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class setKeyValueRecords_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("setKeyValueRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new setKeyValueRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new setKeyValueRecords_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), VALUE((short)2, "value"), RECORDS((short)3, "records"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // RECORDS return RECORDS; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setKeyValueRecords_args.class, metaDataMap); } public setKeyValueRecords_args() { } public setKeyValueRecords_args( String key, com.cinchapi.concourse.thrift.TObject value, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public setKeyValueRecords_args(setKeyValueRecords_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject(other.value); } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public setKeyValueRecords_args deepCopy() { return new setKeyValueRecords_args(this); } @Override public void clear() { this.key = null; this.value = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public setKeyValueRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public setKeyValueRecords_args setValue(com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** Returns true if field value is set (has been assigned a value) and false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if (!value) { this.value = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public setKeyValueRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public setKeyValueRecords_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public setKeyValueRecords_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public setKeyValueRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case VALUE: if (value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case VALUE: return isSetValue(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof setKeyValueRecords_args) return this.equals((setKeyValueRecords_args)that); return false; } public boolean equals(setKeyValueRecords_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (!this.value.equals(that.value)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if (present_value) list.add(value); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(setKeyValueRecords_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("setKeyValueRecords_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("value:"); if (this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (value != null) { value.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 setKeyValueRecords_argsStandardSchemeFactory implements SchemeFactory { public setKeyValueRecords_argsStandardScheme getScheme() { return new setKeyValueRecords_argsStandardScheme(); } } private static class setKeyValueRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setKeyValueRecords_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list884 = iprot.readListBegin(); struct.records = new ArrayList(_list884.size); long _elem885; for (int _i886 = 0; _i886 < _list884.size; ++_i886) { _elem885 = iprot.readI64(); struct.records.add(_elem885); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, setKeyValueRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter887 : struct.records) { oprot.writeI64(_iter887); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class setKeyValueRecords_argsTupleSchemeFactory implements SchemeFactory { public setKeyValueRecords_argsTupleScheme getScheme() { return new setKeyValueRecords_argsTupleScheme(); } } private static class setKeyValueRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, setKeyValueRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetRecords()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { struct.value.write(oprot); } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter888 : struct.records) { oprot.writeI64(_iter888); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, setKeyValueRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if (incoming.get(2)) { { org.apache.thrift.protocol.TList _list889 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list889.size); long _elem890; for (int _i891 = 0; _i891 < _list889.size; ++_i891) { _elem890 = iprot.readI64(); struct.records.add(_elem890); } } struct.setRecordsIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class setKeyValueRecords_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("setKeyValueRecords_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new setKeyValueRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new setKeyValueRecords_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.InvalidArgumentException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(setKeyValueRecords_result.class, metaDataMap); } public setKeyValueRecords_result() { } public setKeyValueRecords_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public setKeyValueRecords_result(setKeyValueRecords_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(other.ex3); } } public setKeyValueRecords_result deepCopy() { return new setKeyValueRecords_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; this.ex3 = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public setKeyValueRecords_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public setKeyValueRecords_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.InvalidArgumentException getEx3() { return this.ex3; } public setKeyValueRecords_result setEx3(com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.InvalidArgumentException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof setKeyValueRecords_result) return this.equals((setKeyValueRecords_result)that); return false; } public boolean equals(setKeyValueRecords_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(setKeyValueRecords_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("setKeyValueRecords_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 setKeyValueRecords_resultStandardSchemeFactory implements SchemeFactory { public setKeyValueRecords_resultStandardScheme getScheme() { return new setKeyValueRecords_resultStandardScheme(); } } private static class setKeyValueRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setKeyValueRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, setKeyValueRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class setKeyValueRecords_resultTupleSchemeFactory implements SchemeFactory { public setKeyValueRecords_resultTupleScheme getScheme() { return new setKeyValueRecords_resultTupleScheme(); } } private static class setKeyValueRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, setKeyValueRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } if (struct.isSetEx2()) { optionals.set(1); } if (struct.isSetEx3()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, setKeyValueRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(1)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(2)) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class reconcileKeyRecordValues_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("reconcileKeyRecordValues_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.SET, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new reconcileKeyRecordValues_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new reconcileKeyRecordValues_argsTupleSchemeFactory()); } public String key; // required public long record; // required public Set values; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), VALUES((short)3, "values"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // VALUES return VALUES; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.VALUES, new org.apache.thrift.meta_data.FieldMetaData("values", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reconcileKeyRecordValues_args.class, metaDataMap); } public reconcileKeyRecordValues_args() { } public reconcileKeyRecordValues_args( String key, long record, Set values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.values = values; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public reconcileKeyRecordValues_args(reconcileKeyRecordValues_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; if (other.isSetValues()) { Set __this__values = new LinkedHashSet(other.values.size()); for (com.cinchapi.concourse.thrift.TObject other_element : other.values) { __this__values.add(new com.cinchapi.concourse.thrift.TObject(other_element)); } this.values = __this__values; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public reconcileKeyRecordValues_args deepCopy() { return new reconcileKeyRecordValues_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.values = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public reconcileKeyRecordValues_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public reconcileKeyRecordValues_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public int getValuesSize() { return (this.values == null) ? 0 : this.values.size(); } public java.util.Iterator getValuesIterator() { return (this.values == null) ? null : this.values.iterator(); } public void addToValues(com.cinchapi.concourse.thrift.TObject elem) { if (this.values == null) { this.values = new LinkedHashSet(); } this.values.add(elem); } public Set getValues() { return this.values; } public reconcileKeyRecordValues_args setValues(Set values) { this.values = values; return this; } public void unsetValues() { this.values = null; } /** Returns true if field values is set (has been assigned a value) and false otherwise */ public boolean isSetValues() { return this.values != null; } public void setValuesIsSet(boolean value) { if (!value) { this.values = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public reconcileKeyRecordValues_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public reconcileKeyRecordValues_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public reconcileKeyRecordValues_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case VALUES: if (value == null) { unsetValues(); } else { setValues((Set)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case VALUES: return getValues(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case VALUES: return isSetValues(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof reconcileKeyRecordValues_args) return this.equals((reconcileKeyRecordValues_args)that); return false; } public boolean equals(reconcileKeyRecordValues_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_values = true && this.isSetValues(); boolean that_present_values = true && that.isSetValues(); if (this_present_values || that_present_values) { if (!(this_present_values && that_present_values)) return false; if (!this.values.equals(that.values)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_values = true && (isSetValues()); list.add(present_values); if (present_values) list.add(values); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(reconcileKeyRecordValues_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("reconcileKeyRecordValues_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("values:"); if (this.values == null) { sb.append("null"); } else { sb.append(this.values); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 reconcileKeyRecordValues_argsStandardSchemeFactory implements SchemeFactory { public reconcileKeyRecordValues_argsStandardScheme getScheme() { return new reconcileKeyRecordValues_argsStandardScheme(); } } private static class reconcileKeyRecordValues_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, reconcileKeyRecordValues_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { org.apache.thrift.protocol.TSet _set892 = iprot.readSetBegin(); struct.values = new LinkedHashSet(2*_set892.size); com.cinchapi.concourse.thrift.TObject _elem893; for (int _i894 = 0; _i894 < _set892.size; ++_i894) { _elem893 = new com.cinchapi.concourse.thrift.TObject(); _elem893.read(iprot); struct.values.add(_elem893); } iprot.readSetEnd(); } struct.setValuesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, reconcileKeyRecordValues_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.values != null) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, struct.values.size())); for (com.cinchapi.concourse.thrift.TObject _iter895 : struct.values) { _iter895.write(oprot); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class reconcileKeyRecordValues_argsTupleSchemeFactory implements SchemeFactory { public reconcileKeyRecordValues_argsTupleScheme getScheme() { return new reconcileKeyRecordValues_argsTupleScheme(); } } private static class reconcileKeyRecordValues_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, reconcileKeyRecordValues_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetValues()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetValues()) { { oprot.writeI32(struct.values.size()); for (com.cinchapi.concourse.thrift.TObject _iter896 : struct.values) { _iter896.write(oprot); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, reconcileKeyRecordValues_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { { org.apache.thrift.protocol.TSet _set897 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.values = new LinkedHashSet(2*_set897.size); com.cinchapi.concourse.thrift.TObject _elem898; for (int _i899 = 0; _i899 < _set897.size; ++_i899) { _elem898 = new com.cinchapi.concourse.thrift.TObject(); _elem898.read(iprot); struct.values.add(_elem898); } } struct.setValuesIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class reconcileKeyRecordValues_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("reconcileKeyRecordValues_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new reconcileKeyRecordValues_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new reconcileKeyRecordValues_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.InvalidArgumentException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(reconcileKeyRecordValues_result.class, metaDataMap); } public reconcileKeyRecordValues_result() { } public reconcileKeyRecordValues_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public reconcileKeyRecordValues_result(reconcileKeyRecordValues_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(other.ex3); } } public reconcileKeyRecordValues_result deepCopy() { return new reconcileKeyRecordValues_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; this.ex3 = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public reconcileKeyRecordValues_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public reconcileKeyRecordValues_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.InvalidArgumentException getEx3() { return this.ex3; } public reconcileKeyRecordValues_result setEx3(com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.InvalidArgumentException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof reconcileKeyRecordValues_result) return this.equals((reconcileKeyRecordValues_result)that); return false; } public boolean equals(reconcileKeyRecordValues_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(reconcileKeyRecordValues_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("reconcileKeyRecordValues_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 reconcileKeyRecordValues_resultStandardSchemeFactory implements SchemeFactory { public reconcileKeyRecordValues_resultStandardScheme getScheme() { return new reconcileKeyRecordValues_resultStandardScheme(); } } private static class reconcileKeyRecordValues_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, reconcileKeyRecordValues_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, reconcileKeyRecordValues_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class reconcileKeyRecordValues_resultTupleSchemeFactory implements SchemeFactory { public reconcileKeyRecordValues_resultTupleScheme getScheme() { return new reconcileKeyRecordValues_resultTupleScheme(); } } private static class reconcileKeyRecordValues_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, reconcileKeyRecordValues_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } if (struct.isSetEx2()) { optionals.set(1); } if (struct.isSetEx3()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, reconcileKeyRecordValues_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(1)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(2)) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class inventory_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("inventory_args"); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new inventory_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new inventory_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CREDS((short)1, "creds"), TRANSACTION((short)2, "transaction"), ENVIRONMENT((short)3, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // CREDS return CREDS; case 2: // TRANSACTION return TRANSACTION; case 3: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(inventory_args.class, metaDataMap); } public inventory_args() { } public inventory_args( com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public inventory_args(inventory_args other) { if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public inventory_args deepCopy() { return new inventory_args(this); } @Override public void clear() { this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public inventory_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public inventory_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public inventory_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof inventory_args) return this.equals((inventory_args)that); return false; } public boolean equals(inventory_args that) { if (that == null) return false; boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(inventory_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("inventory_args("); boolean first = true; sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 inventory_argsStandardSchemeFactory implements SchemeFactory { public inventory_argsStandardScheme getScheme() { return new inventory_argsStandardScheme(); } } private static class inventory_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, inventory_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, inventory_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class inventory_argsTupleSchemeFactory implements SchemeFactory { public inventory_argsTupleScheme getScheme() { return new inventory_argsTupleScheme(); } } private static class inventory_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, inventory_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCreds()) { optionals.set(0); } if (struct.isSetTransaction()) { optionals.set(1); } if (struct.isSetEnvironment()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, inventory_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(1)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(2)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class inventory_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("inventory_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new inventory_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new inventory_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.I64)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(inventory_result.class, metaDataMap); } public inventory_result() { } public inventory_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public inventory_result(inventory_result other) { if (other.isSetSuccess()) { Set __this__success = new LinkedHashSet(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public inventory_result deepCopy() { return new inventory_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = 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(long elem) { if (this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public inventory_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public inventory_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public inventory_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof inventory_result) return this.equals((inventory_result)that); return false; } public boolean equals(inventory_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(inventory_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("inventory_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 inventory_resultStandardSchemeFactory implements SchemeFactory { public inventory_resultStandardScheme getScheme() { return new inventory_resultStandardScheme(); } } private static class inventory_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, inventory_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 _set900 = iprot.readSetBegin(); struct.success = new LinkedHashSet(2*_set900.size); long _elem901; for (int _i902 = 0; _i902 < _set900.size; ++_i902) { _elem901 = iprot.readI64(); struct.success.add(_elem901); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, inventory_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.I64, struct.success.size())); for (long _iter903 : struct.success) { oprot.writeI64(_iter903); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class inventory_resultTupleSchemeFactory implements SchemeFactory { public inventory_resultTupleScheme getScheme() { return new inventory_resultTupleScheme(); } } private static class inventory_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, inventory_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter904 : struct.success) { oprot.writeI64(_iter904); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, inventory_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set905 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet(2*_set905.size); long _elem906; for (int _i907 = 0; _i907 < _set905.size; ++_i907) { _elem906 = iprot.readI64(); struct.success.add(_elem906); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class selectRecord_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("selectRecord_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecord_argsTupleSchemeFactory()); } public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short)1, "record"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORD return RECORD; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectRecord_args.class, metaDataMap); } public selectRecord_args() { } public selectRecord_args( long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectRecord_args(selectRecord_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectRecord_args deepCopy() { return new selectRecord_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public selectRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectRecord_args) return this.equals((selectRecord_args)that); return false; } public boolean equals(selectRecord_args that) { if (that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectRecord_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectRecord_argsStandardSchemeFactory implements SchemeFactory { public selectRecord_argsStandardScheme getScheme() { return new selectRecord_argsStandardScheme(); } } private static class selectRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecord_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: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecord_argsTupleSchemeFactory implements SchemeFactory { public selectRecord_argsTupleScheme getScheme() { return new selectRecord_argsTupleScheme(); } } private static class selectRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecord()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectRecord_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("selectRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecord_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(selectRecord_result.class, metaDataMap); } public selectRecord_result() { } public selectRecord_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public selectRecord_result(selectRecord_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { String other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); String __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public selectRecord_result deepCopy() { return new selectRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectRecord_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectRecord_result) return this.equals((selectRecord_result)that); return false; } public boolean equals(selectRecord_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(selectRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("selectRecord_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 selectRecord_resultStandardSchemeFactory implements SchemeFactory { public selectRecord_resultStandardScheme getScheme() { return new selectRecord_resultStandardScheme(); } } private static class selectRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecord_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.MAP) { { org.apache.thrift.protocol.TMap _map908 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map908.size); String _key909; Set _val910; for (int _i911 = 0; _i911 < _map908.size; ++_i911) { _key909 = iprot.readString(); { org.apache.thrift.protocol.TSet _set912 = iprot.readSetBegin(); _val910 = new LinkedHashSet(2*_set912.size); com.cinchapi.concourse.thrift.TObject _elem913; for (int _i914 = 0; _i914 < _set912.size; ++_i914) { _elem913 = new com.cinchapi.concourse.thrift.TObject(); _elem913.read(iprot); _val910.add(_elem913); } iprot.readSetEnd(); } struct.success.put(_key909, _val910); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, selectRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter915 : struct.success.entrySet()) { oprot.writeString(_iter915.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter915.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter916 : _iter915.getValue()) { _iter916.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecord_resultTupleSchemeFactory implements SchemeFactory { public selectRecord_resultTupleScheme getScheme() { return new selectRecord_resultTupleScheme(); } } private static class selectRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter917 : struct.success.entrySet()) { oprot.writeString(_iter917.getKey()); { oprot.writeI32(_iter917.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter918 : _iter917.getValue()) { _iter918.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map919 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map919.size); String _key920; Set _val921; for (int _i922 = 0; _i922 < _map919.size; ++_i922) { _key920 = iprot.readString(); { org.apache.thrift.protocol.TSet _set923 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val921 = new LinkedHashSet(2*_set923.size); com.cinchapi.concourse.thrift.TObject _elem924; for (int _i925 = 0; _i925 < _set923.size; ++_i925) { _elem924 = new com.cinchapi.concourse.thrift.TObject(); _elem924.read(iprot); _val921.add(_elem924); } } struct.success.put(_key920, _val921); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class selectRecords_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("selectRecords_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecords_argsTupleSchemeFactory()); } public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short)1, "records"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORDS return RECORDS; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectRecords_args.class, metaDataMap); } public selectRecords_args() { } public selectRecords_args( List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectRecords_args(selectRecords_args other) { if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectRecords_args deepCopy() { return new selectRecords_args(this); } @Override public void clear() { this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public selectRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectRecords_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectRecords_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectRecords_args) return this.equals((selectRecords_args)that); return false; } public boolean equals(selectRecords_args that) { if (that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectRecords_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectRecords_args("); boolean first = true; sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectRecords_argsStandardSchemeFactory implements SchemeFactory { public selectRecords_argsStandardScheme getScheme() { return new selectRecords_argsStandardScheme(); } } private static class selectRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecords_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: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list926 = iprot.readListBegin(); struct.records = new ArrayList(_list926.size); long _elem927; for (int _i928 = 0; _i928 < _list926.size; ++_i928) { _elem927 = iprot.readI64(); struct.records.add(_elem927); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter929 : struct.records) { oprot.writeI64(_iter929); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecords_argsTupleSchemeFactory implements SchemeFactory { public selectRecords_argsTupleScheme getScheme() { return new selectRecords_argsTupleScheme(); } } private static class selectRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecords()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter930 : struct.records) { oprot.writeI64(_iter930); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list931 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list931.size); long _elem932; for (int _i933 = 0; _i933 < _list931.size; ++_i933) { _elem932 = iprot.readI64(); struct.records.add(_elem932); } } struct.setRecordsIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectRecords_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("selectRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecords_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(selectRecords_result.class, metaDataMap); } public selectRecords_result() { } public selectRecords_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public selectRecords_result(selectRecords_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public selectRecords_result deepCopy() { return new selectRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectRecords_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectRecords_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectRecords_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectRecords_result) return this.equals((selectRecords_result)that); return false; } public boolean equals(selectRecords_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(selectRecords_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("selectRecords_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 selectRecords_resultStandardSchemeFactory implements SchemeFactory { public selectRecords_resultStandardScheme getScheme() { return new selectRecords_resultStandardScheme(); } } private static class selectRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecords_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.MAP) { { org.apache.thrift.protocol.TMap _map934 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map934.size); long _key935; Map> _val936; for (int _i937 = 0; _i937 < _map934.size; ++_i937) { _key935 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map938 = iprot.readMapBegin(); _val936 = new LinkedHashMap>(2*_map938.size); String _key939; Set _val940; for (int _i941 = 0; _i941 < _map938.size; ++_i941) { _key939 = iprot.readString(); { org.apache.thrift.protocol.TSet _set942 = iprot.readSetBegin(); _val940 = new LinkedHashSet(2*_set942.size); com.cinchapi.concourse.thrift.TObject _elem943; for (int _i944 = 0; _i944 < _set942.size; ++_i944) { _elem943 = new com.cinchapi.concourse.thrift.TObject(); _elem943.read(iprot); _val940.add(_elem943); } iprot.readSetEnd(); } _val936.put(_key939, _val940); } iprot.readMapEnd(); } struct.success.put(_key935, _val936); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, selectRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter945 : struct.success.entrySet()) { oprot.writeI64(_iter945.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter945.getValue().size())); for (Map.Entry> _iter946 : _iter945.getValue().entrySet()) { oprot.writeString(_iter946.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter946.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter947 : _iter946.getValue()) { _iter947.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecords_resultTupleSchemeFactory implements SchemeFactory { public selectRecords_resultTupleScheme getScheme() { return new selectRecords_resultTupleScheme(); } } private static class selectRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter948 : struct.success.entrySet()) { oprot.writeI64(_iter948.getKey()); { oprot.writeI32(_iter948.getValue().size()); for (Map.Entry> _iter949 : _iter948.getValue().entrySet()) { oprot.writeString(_iter949.getKey()); { oprot.writeI32(_iter949.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter950 : _iter949.getValue()) { _iter950.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map951 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map951.size); long _key952; Map> _val953; for (int _i954 = 0; _i954 < _map951.size; ++_i954) { _key952 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map955 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val953 = new LinkedHashMap>(2*_map955.size); String _key956; Set _val957; for (int _i958 = 0; _i958 < _map955.size; ++_i958) { _key956 = iprot.readString(); { org.apache.thrift.protocol.TSet _set959 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val957 = new LinkedHashSet(2*_set959.size); com.cinchapi.concourse.thrift.TObject _elem960; for (int _i961 = 0; _i961 < _set959.size; ++_i961) { _elem960 = new com.cinchapi.concourse.thrift.TObject(); _elem960.read(iprot); _val957.add(_elem960); } } _val953.put(_key956, _val957); } } struct.success.put(_key952, _val953); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class selectRecordTime_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("selectRecordTime_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecordTime_argsTupleSchemeFactory()); } public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short)1, "record"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORD return RECORD; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; 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.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectRecordTime_args.class, metaDataMap); } public selectRecordTime_args() { } public selectRecordTime_args( long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectRecordTime_args(selectRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectRecordTime_args deepCopy() { return new selectRecordTime_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public selectRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public selectRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectRecordTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectRecordTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectRecordTime_args) return this.equals((selectRecordTime_args)that); return false; } public boolean equals(selectRecordTime_args that) { if (that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectRecordTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectRecordTime_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectRecordTime_argsStandardSchemeFactory implements SchemeFactory { public selectRecordTime_argsStandardScheme getScheme() { return new selectRecordTime_argsStandardScheme(); } } private static class selectRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecordTime_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: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecordTime_argsTupleSchemeFactory implements SchemeFactory { public selectRecordTime_argsTupleScheme getScheme() { return new selectRecordTime_argsTupleScheme(); } } private static class selectRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecord()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectRecordTime_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("selectRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecordTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(selectRecordTime_result.class, metaDataMap); } public selectRecordTime_result() { } public selectRecordTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public selectRecordTime_result(selectRecordTime_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { String other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); String __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public selectRecordTime_result deepCopy() { return new selectRecordTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectRecordTime_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectRecordTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectRecordTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectRecordTime_result) return this.equals((selectRecordTime_result)that); return false; } public boolean equals(selectRecordTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(selectRecordTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("selectRecordTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 selectRecordTime_resultStandardSchemeFactory implements SchemeFactory { public selectRecordTime_resultStandardScheme getScheme() { return new selectRecordTime_resultStandardScheme(); } } private static class selectRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecordTime_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.MAP) { { org.apache.thrift.protocol.TMap _map962 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map962.size); String _key963; Set _val964; for (int _i965 = 0; _i965 < _map962.size; ++_i965) { _key963 = iprot.readString(); { org.apache.thrift.protocol.TSet _set966 = iprot.readSetBegin(); _val964 = new LinkedHashSet(2*_set966.size); com.cinchapi.concourse.thrift.TObject _elem967; for (int _i968 = 0; _i968 < _set966.size; ++_i968) { _elem967 = new com.cinchapi.concourse.thrift.TObject(); _elem967.read(iprot); _val964.add(_elem967); } iprot.readSetEnd(); } struct.success.put(_key963, _val964); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, selectRecordTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter969 : struct.success.entrySet()) { oprot.writeString(_iter969.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter969.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter970 : _iter969.getValue()) { _iter970.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecordTime_resultTupleSchemeFactory implements SchemeFactory { public selectRecordTime_resultTupleScheme getScheme() { return new selectRecordTime_resultTupleScheme(); } } private static class selectRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter971 : struct.success.entrySet()) { oprot.writeString(_iter971.getKey()); { oprot.writeI32(_iter971.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter972 : _iter971.getValue()) { _iter972.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map973 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map973.size); String _key974; Set _val975; for (int _i976 = 0; _i976 < _map973.size; ++_i976) { _key974 = iprot.readString(); { org.apache.thrift.protocol.TSet _set977 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val975 = new LinkedHashSet(2*_set977.size); com.cinchapi.concourse.thrift.TObject _elem978; for (int _i979 = 0; _i979 < _set977.size; ++_i979) { _elem978 = new com.cinchapi.concourse.thrift.TObject(); _elem978.read(iprot); _val975.add(_elem978); } } struct.success.put(_key974, _val975); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class selectRecordTimestr_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("selectRecordTimestr_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecordTimestr_argsTupleSchemeFactory()); } public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short)1, "record"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORD return RECORD; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectRecordTimestr_args.class, metaDataMap); } public selectRecordTimestr_args() { } public selectRecordTimestr_args( long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectRecordTimestr_args(selectRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectRecordTimestr_args deepCopy() { return new selectRecordTimestr_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public selectRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public selectRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectRecordTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectRecordTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectRecordTimestr_args) return this.equals((selectRecordTimestr_args)that); return false; } public boolean equals(selectRecordTimestr_args that) { if (that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectRecordTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectRecordTimestr_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectRecordTimestr_argsStandardScheme getScheme() { return new selectRecordTimestr_argsStandardScheme(); } } private static class selectRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecordTimestr_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: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectRecordTimestr_argsTupleScheme getScheme() { return new selectRecordTimestr_argsTupleScheme(); } } private static class selectRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecord()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectRecordTimestr_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("selectRecordTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecordTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(selectRecordTimestr_result.class, metaDataMap); } public selectRecordTimestr_result() { } public selectRecordTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectRecordTimestr_result(selectRecordTimestr_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { String other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); String __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public selectRecordTimestr_result deepCopy() { return new selectRecordTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectRecordTimestr_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectRecordTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectRecordTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectRecordTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectRecordTimestr_result) return this.equals((selectRecordTimestr_result)that); return false; } public boolean equals(selectRecordTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(selectRecordTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("selectRecordTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 selectRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectRecordTimestr_resultStandardScheme getScheme() { return new selectRecordTimestr_resultStandardScheme(); } } private static class selectRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecordTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map980 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map980.size); String _key981; Set _val982; for (int _i983 = 0; _i983 < _map980.size; ++_i983) { _key981 = iprot.readString(); { org.apache.thrift.protocol.TSet _set984 = iprot.readSetBegin(); _val982 = new LinkedHashSet(2*_set984.size); com.cinchapi.concourse.thrift.TObject _elem985; for (int _i986 = 0; _i986 < _set984.size; ++_i986) { _elem985 = new com.cinchapi.concourse.thrift.TObject(); _elem985.read(iprot); _val982.add(_elem985); } iprot.readSetEnd(); } struct.success.put(_key981, _val982); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, selectRecordTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter987 : struct.success.entrySet()) { oprot.writeString(_iter987.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter987.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter988 : _iter987.getValue()) { _iter988.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectRecordTimestr_resultTupleScheme getScheme() { return new selectRecordTimestr_resultTupleScheme(); } } private static class selectRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter989 : struct.success.entrySet()) { oprot.writeString(_iter989.getKey()); { oprot.writeI32(_iter989.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter990 : _iter989.getValue()) { _iter990.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map991 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map991.size); String _key992; Set _val993; for (int _i994 = 0; _i994 < _map991.size; ++_i994) { _key992 = iprot.readString(); { org.apache.thrift.protocol.TSet _set995 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val993 = new LinkedHashSet(2*_set995.size); com.cinchapi.concourse.thrift.TObject _elem996; for (int _i997 = 0; _i997 < _set995.size; ++_i997) { _elem996 = new com.cinchapi.concourse.thrift.TObject(); _elem996.read(iprot); _val993.add(_elem996); } } struct.success.put(_key992, _val993); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectRecordsTime_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("selectRecordsTime_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecordsTime_argsTupleSchemeFactory()); } public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short)1, "records"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORDS return RECORDS; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectRecordsTime_args.class, metaDataMap); } public selectRecordsTime_args() { } public selectRecordsTime_args( List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectRecordsTime_args(selectRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectRecordsTime_args deepCopy() { return new selectRecordsTime_args(this); } @Override public void clear() { this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public selectRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public selectRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectRecordsTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectRecordsTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectRecordsTime_args) return this.equals((selectRecordsTime_args)that); return false; } public boolean equals(selectRecordsTime_args that) { if (that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectRecordsTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectRecordsTime_args("); boolean first = true; sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public selectRecordsTime_argsStandardScheme getScheme() { return new selectRecordsTime_argsStandardScheme(); } } private static class selectRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecordsTime_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: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list998 = iprot.readListBegin(); struct.records = new ArrayList(_list998.size); long _elem999; for (int _i1000 = 0; _i1000 < _list998.size; ++_i1000) { _elem999 = iprot.readI64(); struct.records.add(_elem999); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1001 : struct.records) { oprot.writeI64(_iter1001); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public selectRecordsTime_argsTupleScheme getScheme() { return new selectRecordsTime_argsTupleScheme(); } } private static class selectRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecords()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1002 : struct.records) { oprot.writeI64(_iter1002); } } } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list1003 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1003.size); long _elem1004; for (int _i1005 = 0; _i1005 < _list1003.size; ++_i1005) { _elem1004 = iprot.readI64(); struct.records.add(_elem1004); } } struct.setRecordsIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectRecordsTime_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("selectRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecordsTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(selectRecordsTime_result.class, metaDataMap); } public selectRecordsTime_result() { } public selectRecordsTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public selectRecordsTime_result(selectRecordsTime_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public selectRecordsTime_result deepCopy() { return new selectRecordsTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectRecordsTime_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectRecordsTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectRecordsTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectRecordsTime_result) return this.equals((selectRecordsTime_result)that); return false; } public boolean equals(selectRecordsTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(selectRecordsTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("selectRecordsTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 selectRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public selectRecordsTime_resultStandardScheme getScheme() { return new selectRecordsTime_resultStandardScheme(); } } private static class selectRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecordsTime_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.MAP) { { org.apache.thrift.protocol.TMap _map1006 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map1006.size); long _key1007; Map> _val1008; for (int _i1009 = 0; _i1009 < _map1006.size; ++_i1009) { _key1007 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1010 = iprot.readMapBegin(); _val1008 = new LinkedHashMap>(2*_map1010.size); String _key1011; Set _val1012; for (int _i1013 = 0; _i1013 < _map1010.size; ++_i1013) { _key1011 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1014 = iprot.readSetBegin(); _val1012 = new LinkedHashSet(2*_set1014.size); com.cinchapi.concourse.thrift.TObject _elem1015; for (int _i1016 = 0; _i1016 < _set1014.size; ++_i1016) { _elem1015 = new com.cinchapi.concourse.thrift.TObject(); _elem1015.read(iprot); _val1012.add(_elem1015); } iprot.readSetEnd(); } _val1008.put(_key1011, _val1012); } iprot.readMapEnd(); } struct.success.put(_key1007, _val1008); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, selectRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1017 : struct.success.entrySet()) { oprot.writeI64(_iter1017.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1017.getValue().size())); for (Map.Entry> _iter1018 : _iter1017.getValue().entrySet()) { oprot.writeString(_iter1018.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1018.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1019 : _iter1018.getValue()) { _iter1019.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public selectRecordsTime_resultTupleScheme getScheme() { return new selectRecordsTime_resultTupleScheme(); } } private static class selectRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1020 : struct.success.entrySet()) { oprot.writeI64(_iter1020.getKey()); { oprot.writeI32(_iter1020.getValue().size()); for (Map.Entry> _iter1021 : _iter1020.getValue().entrySet()) { oprot.writeString(_iter1021.getKey()); { oprot.writeI32(_iter1021.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1022 : _iter1021.getValue()) { _iter1022.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1023 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map1023.size); long _key1024; Map> _val1025; for (int _i1026 = 0; _i1026 < _map1023.size; ++_i1026) { _key1024 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1027 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1025 = new LinkedHashMap>(2*_map1027.size); String _key1028; Set _val1029; for (int _i1030 = 0; _i1030 < _map1027.size; ++_i1030) { _key1028 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1031 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1029 = new LinkedHashSet(2*_set1031.size); com.cinchapi.concourse.thrift.TObject _elem1032; for (int _i1033 = 0; _i1033 < _set1031.size; ++_i1033) { _elem1032 = new com.cinchapi.concourse.thrift.TObject(); _elem1032.read(iprot); _val1029.add(_elem1032); } } _val1025.put(_key1028, _val1029); } } struct.success.put(_key1024, _val1025); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class selectRecordsTimestr_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("selectRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecordsTimestr_argsTupleSchemeFactory()); } public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short)1, "records"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORDS return RECORDS; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectRecordsTimestr_args.class, metaDataMap); } public selectRecordsTimestr_args() { } public selectRecordsTimestr_args( List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectRecordsTimestr_args(selectRecordsTimestr_args other) { if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectRecordsTimestr_args deepCopy() { return new selectRecordsTimestr_args(this); } @Override public void clear() { this.records = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public selectRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public selectRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectRecordsTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectRecordsTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectRecordsTimestr_args) return this.equals((selectRecordsTimestr_args)that); return false; } public boolean equals(selectRecordsTimestr_args that) { if (that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectRecordsTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectRecordsTimestr_args("); boolean first = true; sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectRecordsTimestr_argsStandardScheme getScheme() { return new selectRecordsTimestr_argsStandardScheme(); } } private static class selectRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecordsTimestr_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: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1034 = iprot.readListBegin(); struct.records = new ArrayList(_list1034.size); long _elem1035; for (int _i1036 = 0; _i1036 < _list1034.size; ++_i1036) { _elem1035 = iprot.readI64(); struct.records.add(_elem1035); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1037 : struct.records) { oprot.writeI64(_iter1037); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectRecordsTimestr_argsTupleScheme getScheme() { return new selectRecordsTimestr_argsTupleScheme(); } } private static class selectRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecords()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1038 : struct.records) { oprot.writeI64(_iter1038); } } } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list1039 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1039.size); long _elem1040; for (int _i1041 = 0; _i1041 < _list1039.size; ++_i1041) { _elem1040 = iprot.readI64(); struct.records.add(_elem1040); } } struct.setRecordsIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectRecordsTimestr_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("selectRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectRecordsTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(selectRecordsTimestr_result.class, metaDataMap); } public selectRecordsTimestr_result() { } public selectRecordsTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectRecordsTimestr_result(selectRecordsTimestr_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public selectRecordsTimestr_result deepCopy() { return new selectRecordsTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectRecordsTimestr_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectRecordsTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectRecordsTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectRecordsTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectRecordsTimestr_result) return this.equals((selectRecordsTimestr_result)that); return false; } public boolean equals(selectRecordsTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(selectRecordsTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("selectRecordsTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 selectRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectRecordsTimestr_resultStandardScheme getScheme() { return new selectRecordsTimestr_resultStandardScheme(); } } private static class selectRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectRecordsTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map1042 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map1042.size); long _key1043; Map> _val1044; for (int _i1045 = 0; _i1045 < _map1042.size; ++_i1045) { _key1043 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1046 = iprot.readMapBegin(); _val1044 = new LinkedHashMap>(2*_map1046.size); String _key1047; Set _val1048; for (int _i1049 = 0; _i1049 < _map1046.size; ++_i1049) { _key1047 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1050 = iprot.readSetBegin(); _val1048 = new LinkedHashSet(2*_set1050.size); com.cinchapi.concourse.thrift.TObject _elem1051; for (int _i1052 = 0; _i1052 < _set1050.size; ++_i1052) { _elem1051 = new com.cinchapi.concourse.thrift.TObject(); _elem1051.read(iprot); _val1048.add(_elem1051); } iprot.readSetEnd(); } _val1044.put(_key1047, _val1048); } iprot.readMapEnd(); } struct.success.put(_key1043, _val1044); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, selectRecordsTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1053 : struct.success.entrySet()) { oprot.writeI64(_iter1053.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1053.getValue().size())); for (Map.Entry> _iter1054 : _iter1053.getValue().entrySet()) { oprot.writeString(_iter1054.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1054.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1055 : _iter1054.getValue()) { _iter1055.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectRecordsTimestr_resultTupleScheme getScheme() { return new selectRecordsTimestr_resultTupleScheme(); } } private static class selectRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1056 : struct.success.entrySet()) { oprot.writeI64(_iter1056.getKey()); { oprot.writeI32(_iter1056.getValue().size()); for (Map.Entry> _iter1057 : _iter1056.getValue().entrySet()) { oprot.writeString(_iter1057.getKey()); { oprot.writeI32(_iter1057.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1058 : _iter1057.getValue()) { _iter1058.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1059 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map1059.size); long _key1060; Map> _val1061; for (int _i1062 = 0; _i1062 < _map1059.size; ++_i1062) { _key1060 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1063 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1061 = new LinkedHashMap>(2*_map1063.size); String _key1064; Set _val1065; for (int _i1066 = 0; _i1066 < _map1063.size; ++_i1066) { _key1064 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1067 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1065 = new LinkedHashSet(2*_set1067.size); com.cinchapi.concourse.thrift.TObject _elem1068; for (int _i1069 = 0; _i1069 < _set1067.size; ++_i1069) { _elem1068 = new com.cinchapi.concourse.thrift.TObject(); _elem1068.read(iprot); _val1065.add(_elem1068); } } _val1061.put(_key1064, _val1065); } } struct.success.put(_key1060, _val1061); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeyRecord_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("selectKeyRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecord_argsTupleSchemeFactory()); } public String key; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeyRecord_args.class, metaDataMap); } public selectKeyRecord_args() { } public selectKeyRecord_args( String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyRecord_args(selectKeyRecord_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyRecord_args deepCopy() { return new selectKeyRecord_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public selectKeyRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyRecord_args) return this.equals((selectKeyRecord_args)that); return false; } public boolean equals(selectKeyRecord_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeyRecord_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeyRecord_argsStandardSchemeFactory implements SchemeFactory { public selectKeyRecord_argsStandardScheme getScheme() { return new selectKeyRecord_argsStandardScheme(); } } private static class selectKeyRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecord_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeyRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecord_argsTupleSchemeFactory implements SchemeFactory { public selectKeyRecord_argsTupleScheme getScheme() { return new selectKeyRecord_argsTupleScheme(); } } private static class selectKeyRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyRecord_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("selectKeyRecord_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecord_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(selectKeyRecord_result.class, metaDataMap); } public selectKeyRecord_result() { } public selectKeyRecord_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public selectKeyRecord_result(selectKeyRecord_result other) { if (other.isSetSuccess()) { Set __this__success = new LinkedHashSet(other.success.size()); for (com.cinchapi.concourse.thrift.TObject other_element : other.success) { __this__success.add(new com.cinchapi.concourse.thrift.TObject(other_element)); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public selectKeyRecord_result deepCopy() { return new selectKeyRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = 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(com.cinchapi.concourse.thrift.TObject elem) { if (this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public selectKeyRecord_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyRecord_result) return this.equals((selectKeyRecord_result)that); return false; } public boolean equals(selectKeyRecord_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(selectKeyRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("selectKeyRecord_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 selectKeyRecord_resultStandardSchemeFactory implements SchemeFactory { public selectKeyRecord_resultStandardScheme getScheme() { return new selectKeyRecord_resultStandardScheme(); } } private static class selectKeyRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecord_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 _set1070 = iprot.readSetBegin(); struct.success = new LinkedHashSet(2*_set1070.size); com.cinchapi.concourse.thrift.TObject _elem1071; for (int _i1072 = 0; _i1072 < _set1070.size; ++_i1072) { _elem1071 = new com.cinchapi.concourse.thrift.TObject(); _elem1071.read(iprot); struct.success.add(_elem1071); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, selectKeyRecord_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.STRUCT, struct.success.size())); for (com.cinchapi.concourse.thrift.TObject _iter1073 : struct.success) { _iter1073.write(oprot); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecord_resultTupleSchemeFactory implements SchemeFactory { public selectKeyRecord_resultTupleScheme getScheme() { return new selectKeyRecord_resultTupleScheme(); } } private static class selectKeyRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (com.cinchapi.concourse.thrift.TObject _iter1074 : struct.success) { _iter1074.write(oprot); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set1075 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashSet(2*_set1075.size); com.cinchapi.concourse.thrift.TObject _elem1076; for (int _i1077 = 0; _i1077 < _set1075.size; ++_i1077) { _elem1076 = new com.cinchapi.concourse.thrift.TObject(); _elem1076.read(iprot); struct.success.add(_elem1076); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class selectKeyRecordTime_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("selectKeyRecordTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecordTime_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeyRecordTime_args.class, metaDataMap); } public selectKeyRecordTime_args() { } public selectKeyRecordTime_args( String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyRecordTime_args(selectKeyRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyRecordTime_args deepCopy() { return new selectKeyRecordTime_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyRecordTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public selectKeyRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public selectKeyRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyRecordTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyRecordTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyRecordTime_args) return this.equals((selectKeyRecordTime_args)that); return false; } public boolean equals(selectKeyRecordTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyRecordTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeyRecordTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeyRecordTime_argsStandardSchemeFactory implements SchemeFactory { public selectKeyRecordTime_argsStandardScheme getScheme() { return new selectKeyRecordTime_argsStandardScheme(); } } private static class selectKeyRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecordTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeyRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecordTime_argsTupleSchemeFactory implements SchemeFactory { public selectKeyRecordTime_argsTupleScheme getScheme() { return new selectKeyRecordTime_argsTupleScheme(); } } private static class selectKeyRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyRecordTime_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("selectKeyRecordTime_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecordTime_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(selectKeyRecordTime_result.class, metaDataMap); } public selectKeyRecordTime_result() { } public selectKeyRecordTime_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public selectKeyRecordTime_result(selectKeyRecordTime_result other) { if (other.isSetSuccess()) { Set __this__success = new LinkedHashSet(other.success.size()); for (com.cinchapi.concourse.thrift.TObject other_element : other.success) { __this__success.add(new com.cinchapi.concourse.thrift.TObject(other_element)); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public selectKeyRecordTime_result deepCopy() { return new selectKeyRecordTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = 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(com.cinchapi.concourse.thrift.TObject elem) { if (this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public selectKeyRecordTime_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyRecordTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyRecordTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyRecordTime_result) return this.equals((selectKeyRecordTime_result)that); return false; } public boolean equals(selectKeyRecordTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(selectKeyRecordTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("selectKeyRecordTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 selectKeyRecordTime_resultStandardSchemeFactory implements SchemeFactory { public selectKeyRecordTime_resultStandardScheme getScheme() { return new selectKeyRecordTime_resultStandardScheme(); } } private static class selectKeyRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecordTime_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 _set1078 = iprot.readSetBegin(); struct.success = new LinkedHashSet(2*_set1078.size); com.cinchapi.concourse.thrift.TObject _elem1079; for (int _i1080 = 0; _i1080 < _set1078.size; ++_i1080) { _elem1079 = new com.cinchapi.concourse.thrift.TObject(); _elem1079.read(iprot); struct.success.add(_elem1079); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, selectKeyRecordTime_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.STRUCT, struct.success.size())); for (com.cinchapi.concourse.thrift.TObject _iter1081 : struct.success) { _iter1081.write(oprot); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecordTime_resultTupleSchemeFactory implements SchemeFactory { public selectKeyRecordTime_resultTupleScheme getScheme() { return new selectKeyRecordTime_resultTupleScheme(); } } private static class selectKeyRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (com.cinchapi.concourse.thrift.TObject _iter1082 : struct.success) { _iter1082.write(oprot); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set1083 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashSet(2*_set1083.size); com.cinchapi.concourse.thrift.TObject _elem1084; for (int _i1085 = 0; _i1085 < _set1083.size; ++_i1085) { _elem1084 = new com.cinchapi.concourse.thrift.TObject(); _elem1084.read(iprot); struct.success.add(_elem1084); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class selectKeyRecordTimestr_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("selectKeyRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecordTimestr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeyRecordTimestr_args.class, metaDataMap); } public selectKeyRecordTimestr_args() { } public selectKeyRecordTimestr_args( String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyRecordTimestr_args(selectKeyRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyRecordTimestr_args deepCopy() { return new selectKeyRecordTimestr_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyRecordTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public selectKeyRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public selectKeyRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyRecordTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyRecordTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyRecordTimestr_args) return this.equals((selectKeyRecordTimestr_args)that); return false; } public boolean equals(selectKeyRecordTimestr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyRecordTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeyRecordTimestr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeyRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectKeyRecordTimestr_argsStandardScheme getScheme() { return new selectKeyRecordTimestr_argsStandardScheme(); } } private static class selectKeyRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecordTimestr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeyRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectKeyRecordTimestr_argsTupleScheme getScheme() { return new selectKeyRecordTimestr_argsTupleScheme(); } } private static class selectKeyRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyRecordTimestr_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("selectKeyRecordTimestr_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecordTimestr_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(selectKeyRecordTimestr_result.class, metaDataMap); } public selectKeyRecordTimestr_result() { } public selectKeyRecordTimestr_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeyRecordTimestr_result(selectKeyRecordTimestr_result other) { if (other.isSetSuccess()) { Set __this__success = new LinkedHashSet(other.success.size()); for (com.cinchapi.concourse.thrift.TObject other_element : other.success) { __this__success.add(new com.cinchapi.concourse.thrift.TObject(other_element)); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public selectKeyRecordTimestr_result deepCopy() { return new selectKeyRecordTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = 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(com.cinchapi.concourse.thrift.TObject elem) { if (this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public selectKeyRecordTimestr_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyRecordTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyRecordTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeyRecordTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyRecordTimestr_result) return this.equals((selectKeyRecordTimestr_result)that); return false; } public boolean equals(selectKeyRecordTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(selectKeyRecordTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("selectKeyRecordTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 selectKeyRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectKeyRecordTimestr_resultStandardScheme getScheme() { return new selectKeyRecordTimestr_resultStandardScheme(); } } private static class selectKeyRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecordTimestr_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 _set1086 = iprot.readSetBegin(); struct.success = new LinkedHashSet(2*_set1086.size); com.cinchapi.concourse.thrift.TObject _elem1087; for (int _i1088 = 0; _i1088 < _set1086.size; ++_i1088) { _elem1087 = new com.cinchapi.concourse.thrift.TObject(); _elem1087.read(iprot); struct.success.add(_elem1087); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, selectKeyRecordTimestr_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.STRUCT, struct.success.size())); for (com.cinchapi.concourse.thrift.TObject _iter1089 : struct.success) { _iter1089.write(oprot); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectKeyRecordTimestr_resultTupleScheme getScheme() { return new selectKeyRecordTimestr_resultTupleScheme(); } } private static class selectKeyRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (com.cinchapi.concourse.thrift.TObject _iter1090 : struct.success) { _iter1090.write(oprot); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set1091 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashSet(2*_set1091.size); com.cinchapi.concourse.thrift.TObject _elem1092; for (int _i1093 = 0; _i1093 < _set1091.size; ++_i1093) { _elem1092 = new com.cinchapi.concourse.thrift.TObject(); _elem1092.read(iprot); struct.success.add(_elem1092); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeysRecord_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("selectKeysRecord_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecord_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORD((short)2, "record"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeysRecord_args.class, metaDataMap); } public selectKeysRecord_args() { } public selectKeysRecord_args( List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysRecord_args(selectKeysRecord_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysRecord_args deepCopy() { return new selectKeysRecord_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysRecord_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public long getRecord() { return this.record; } public selectKeysRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysRecord_args) return this.equals((selectKeysRecord_args)that); return false; } public boolean equals(selectKeysRecord_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeysRecord_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeysRecord_argsStandardSchemeFactory implements SchemeFactory { public selectKeysRecord_argsStandardScheme getScheme() { return new selectKeysRecord_argsStandardScheme(); } } private static class selectKeysRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecord_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1094 = iprot.readListBegin(); struct.keys = new ArrayList(_list1094.size); String _elem1095; for (int _i1096 = 0; _i1096 < _list1094.size; ++_i1096) { _elem1095 = iprot.readString(); struct.keys.add(_elem1095); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeysRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1097 : struct.keys) { oprot.writeString(_iter1097); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecord_argsTupleSchemeFactory implements SchemeFactory { public selectKeysRecord_argsTupleScheme getScheme() { return new selectKeysRecord_argsTupleScheme(); } } private static class selectKeysRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1098 : struct.keys) { oprot.writeString(_iter1098); } } } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list1099 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1099.size); String _elem1100; for (int _i1101 = 0; _i1101 < _list1099.size; ++_i1101) { _elem1100 = iprot.readString(); struct.keys.add(_elem1100); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysRecord_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("selectKeysRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecord_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(selectKeysRecord_result.class, metaDataMap); } public selectKeysRecord_result() { } public selectKeysRecord_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public selectKeysRecord_result(selectKeysRecord_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { String other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); String __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public selectKeysRecord_result deepCopy() { return new selectKeysRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeysRecord_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysRecord_result) return this.equals((selectKeysRecord_result)that); return false; } public boolean equals(selectKeysRecord_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(selectKeysRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("selectKeysRecord_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 selectKeysRecord_resultStandardSchemeFactory implements SchemeFactory { public selectKeysRecord_resultStandardScheme getScheme() { return new selectKeysRecord_resultStandardScheme(); } } private static class selectKeysRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecord_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.MAP) { { org.apache.thrift.protocol.TMap _map1102 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map1102.size); String _key1103; Set _val1104; for (int _i1105 = 0; _i1105 < _map1102.size; ++_i1105) { _key1103 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1106 = iprot.readSetBegin(); _val1104 = new LinkedHashSet(2*_set1106.size); com.cinchapi.concourse.thrift.TObject _elem1107; for (int _i1108 = 0; _i1108 < _set1106.size; ++_i1108) { _elem1107 = new com.cinchapi.concourse.thrift.TObject(); _elem1107.read(iprot); _val1104.add(_elem1107); } iprot.readSetEnd(); } struct.success.put(_key1103, _val1104); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, selectKeysRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1109 : struct.success.entrySet()) { oprot.writeString(_iter1109.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1109.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1110 : _iter1109.getValue()) { _iter1110.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecord_resultTupleSchemeFactory implements SchemeFactory { public selectKeysRecord_resultTupleScheme getScheme() { return new selectKeysRecord_resultTupleScheme(); } } private static class selectKeysRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1111 : struct.success.entrySet()) { oprot.writeString(_iter1111.getKey()); { oprot.writeI32(_iter1111.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1112 : _iter1111.getValue()) { _iter1112.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1113 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map1113.size); String _key1114; Set _val1115; for (int _i1116 = 0; _i1116 < _map1113.size; ++_i1116) { _key1114 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1117 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1115 = new LinkedHashSet(2*_set1117.size); com.cinchapi.concourse.thrift.TObject _elem1118; for (int _i1119 = 0; _i1119 < _set1117.size; ++_i1119) { _elem1118 = new com.cinchapi.concourse.thrift.TObject(); _elem1118.read(iprot); _val1115.add(_elem1118); } } struct.success.put(_key1114, _val1115); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class selectKeysRecordTime_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("selectKeysRecordTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecordTime_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORD((short)2, "record"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeysRecordTime_args.class, metaDataMap); } public selectKeysRecordTime_args() { } public selectKeysRecordTime_args( List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysRecordTime_args(selectKeysRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysRecordTime_args deepCopy() { return new selectKeysRecordTime_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysRecordTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public long getRecord() { return this.record; } public selectKeysRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public selectKeysRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysRecordTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysRecordTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysRecordTime_args) return this.equals((selectKeysRecordTime_args)that); return false; } public boolean equals(selectKeysRecordTime_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysRecordTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeysRecordTime_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeysRecordTime_argsStandardSchemeFactory implements SchemeFactory { public selectKeysRecordTime_argsStandardScheme getScheme() { return new selectKeysRecordTime_argsStandardScheme(); } } private static class selectKeysRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecordTime_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1120 = iprot.readListBegin(); struct.keys = new ArrayList(_list1120.size); String _elem1121; for (int _i1122 = 0; _i1122 < _list1120.size; ++_i1122) { _elem1121 = iprot.readString(); struct.keys.add(_elem1121); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeysRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1123 : struct.keys) { oprot.writeString(_iter1123); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecordTime_argsTupleSchemeFactory implements SchemeFactory { public selectKeysRecordTime_argsTupleScheme getScheme() { return new selectKeysRecordTime_argsTupleScheme(); } } private static class selectKeysRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1124 : struct.keys) { oprot.writeString(_iter1124); } } } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list1125 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1125.size); String _elem1126; for (int _i1127 = 0; _i1127 < _list1125.size; ++_i1127) { _elem1126 = iprot.readString(); struct.keys.add(_elem1126); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysRecordTime_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("selectKeysRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecordTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(selectKeysRecordTime_result.class, metaDataMap); } public selectKeysRecordTime_result() { } public selectKeysRecordTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public selectKeysRecordTime_result(selectKeysRecordTime_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { String other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); String __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public selectKeysRecordTime_result deepCopy() { return new selectKeysRecordTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeysRecordTime_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysRecordTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysRecordTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysRecordTime_result) return this.equals((selectKeysRecordTime_result)that); return false; } public boolean equals(selectKeysRecordTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(selectKeysRecordTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("selectKeysRecordTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 selectKeysRecordTime_resultStandardSchemeFactory implements SchemeFactory { public selectKeysRecordTime_resultStandardScheme getScheme() { return new selectKeysRecordTime_resultStandardScheme(); } } private static class selectKeysRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecordTime_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.MAP) { { org.apache.thrift.protocol.TMap _map1128 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map1128.size); String _key1129; Set _val1130; for (int _i1131 = 0; _i1131 < _map1128.size; ++_i1131) { _key1129 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1132 = iprot.readSetBegin(); _val1130 = new LinkedHashSet(2*_set1132.size); com.cinchapi.concourse.thrift.TObject _elem1133; for (int _i1134 = 0; _i1134 < _set1132.size; ++_i1134) { _elem1133 = new com.cinchapi.concourse.thrift.TObject(); _elem1133.read(iprot); _val1130.add(_elem1133); } iprot.readSetEnd(); } struct.success.put(_key1129, _val1130); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, selectKeysRecordTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1135 : struct.success.entrySet()) { oprot.writeString(_iter1135.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1135.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1136 : _iter1135.getValue()) { _iter1136.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecordTime_resultTupleSchemeFactory implements SchemeFactory { public selectKeysRecordTime_resultTupleScheme getScheme() { return new selectKeysRecordTime_resultTupleScheme(); } } private static class selectKeysRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1137 : struct.success.entrySet()) { oprot.writeString(_iter1137.getKey()); { oprot.writeI32(_iter1137.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1138 : _iter1137.getValue()) { _iter1138.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1139 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map1139.size); String _key1140; Set _val1141; for (int _i1142 = 0; _i1142 < _map1139.size; ++_i1142) { _key1140 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1143 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1141 = new LinkedHashSet(2*_set1143.size); com.cinchapi.concourse.thrift.TObject _elem1144; for (int _i1145 = 0; _i1145 < _set1143.size; ++_i1145) { _elem1144 = new com.cinchapi.concourse.thrift.TObject(); _elem1144.read(iprot); _val1141.add(_elem1144); } } struct.success.put(_key1140, _val1141); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class selectKeysRecordTimestr_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("selectKeysRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecordTimestr_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORD((short)2, "record"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeysRecordTimestr_args.class, metaDataMap); } public selectKeysRecordTimestr_args() { } public selectKeysRecordTimestr_args( List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysRecordTimestr_args(selectKeysRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysRecordTimestr_args deepCopy() { return new selectKeysRecordTimestr_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysRecordTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public long getRecord() { return this.record; } public selectKeysRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public selectKeysRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysRecordTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysRecordTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysRecordTimestr_args) return this.equals((selectKeysRecordTimestr_args)that); return false; } public boolean equals(selectKeysRecordTimestr_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysRecordTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeysRecordTimestr_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeysRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectKeysRecordTimestr_argsStandardScheme getScheme() { return new selectKeysRecordTimestr_argsStandardScheme(); } } private static class selectKeysRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecordTimestr_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1146 = iprot.readListBegin(); struct.keys = new ArrayList(_list1146.size); String _elem1147; for (int _i1148 = 0; _i1148 < _list1146.size; ++_i1148) { _elem1147 = iprot.readString(); struct.keys.add(_elem1147); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeysRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1149 : struct.keys) { oprot.writeString(_iter1149); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectKeysRecordTimestr_argsTupleScheme getScheme() { return new selectKeysRecordTimestr_argsTupleScheme(); } } private static class selectKeysRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1150 : struct.keys) { oprot.writeString(_iter1150); } } } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list1151 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1151.size); String _elem1152; for (int _i1153 = 0; _i1153 < _list1151.size; ++_i1153) { _elem1152 = iprot.readString(); struct.keys.add(_elem1152); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysRecordTimestr_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("selectKeysRecordTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecordTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(selectKeysRecordTimestr_result.class, metaDataMap); } public selectKeysRecordTimestr_result() { } public selectKeysRecordTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeysRecordTimestr_result(selectKeysRecordTimestr_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { String other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); String __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public selectKeysRecordTimestr_result deepCopy() { return new selectKeysRecordTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeysRecordTimestr_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysRecordTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysRecordTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeysRecordTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysRecordTimestr_result) return this.equals((selectKeysRecordTimestr_result)that); return false; } public boolean equals(selectKeysRecordTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(selectKeysRecordTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("selectKeysRecordTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 selectKeysRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectKeysRecordTimestr_resultStandardScheme getScheme() { return new selectKeysRecordTimestr_resultStandardScheme(); } } private static class selectKeysRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecordTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map1154 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map1154.size); String _key1155; Set _val1156; for (int _i1157 = 0; _i1157 < _map1154.size; ++_i1157) { _key1155 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1158 = iprot.readSetBegin(); _val1156 = new LinkedHashSet(2*_set1158.size); com.cinchapi.concourse.thrift.TObject _elem1159; for (int _i1160 = 0; _i1160 < _set1158.size; ++_i1160) { _elem1159 = new com.cinchapi.concourse.thrift.TObject(); _elem1159.read(iprot); _val1156.add(_elem1159); } iprot.readSetEnd(); } struct.success.put(_key1155, _val1156); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, selectKeysRecordTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1161 : struct.success.entrySet()) { oprot.writeString(_iter1161.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1161.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1162 : _iter1161.getValue()) { _iter1162.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectKeysRecordTimestr_resultTupleScheme getScheme() { return new selectKeysRecordTimestr_resultTupleScheme(); } } private static class selectKeysRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1163 : struct.success.entrySet()) { oprot.writeString(_iter1163.getKey()); { oprot.writeI32(_iter1163.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1164 : _iter1163.getValue()) { _iter1164.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1165 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map1165.size); String _key1166; Set _val1167; for (int _i1168 = 0; _i1168 < _map1165.size; ++_i1168) { _key1166 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1169 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1167 = new LinkedHashSet(2*_set1169.size); com.cinchapi.concourse.thrift.TObject _elem1170; for (int _i1171 = 0; _i1171 < _set1169.size; ++_i1171) { _elem1170 = new com.cinchapi.concourse.thrift.TObject(); _elem1170.read(iprot); _val1167.add(_elem1170); } } struct.success.put(_key1166, _val1167); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeysRecords_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("selectKeysRecords_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecords_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORDS((short)2, "records"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeysRecords_args.class, metaDataMap); } public selectKeysRecords_args() { } public selectKeysRecords_args( List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysRecords_args(selectKeysRecords_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysRecords_args deepCopy() { return new selectKeysRecords_args(this); } @Override public void clear() { this.keys = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysRecords_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public selectKeysRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysRecords_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysRecords_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysRecords_args) return this.equals((selectKeysRecords_args)that); return false; } public boolean equals(selectKeysRecords_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysRecords_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeysRecords_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeysRecords_argsStandardSchemeFactory implements SchemeFactory { public selectKeysRecords_argsStandardScheme getScheme() { return new selectKeysRecords_argsStandardScheme(); } } private static class selectKeysRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecords_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1172 = iprot.readListBegin(); struct.keys = new ArrayList(_list1172.size); String _elem1173; for (int _i1174 = 0; _i1174 < _list1172.size; ++_i1174) { _elem1173 = iprot.readString(); struct.keys.add(_elem1173); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1175 = iprot.readListBegin(); struct.records = new ArrayList(_list1175.size); long _elem1176; for (int _i1177 = 0; _i1177 < _list1175.size; ++_i1177) { _elem1176 = iprot.readI64(); struct.records.add(_elem1176); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeysRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1178 : struct.keys) { oprot.writeString(_iter1178); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1179 : struct.records) { oprot.writeI64(_iter1179); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecords_argsTupleSchemeFactory implements SchemeFactory { public selectKeysRecords_argsTupleScheme getScheme() { return new selectKeysRecords_argsTupleScheme(); } } private static class selectKeysRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1180 : struct.keys) { oprot.writeString(_iter1180); } } } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1181 : struct.records) { oprot.writeI64(_iter1181); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list1182 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1182.size); String _elem1183; for (int _i1184 = 0; _i1184 < _list1182.size; ++_i1184) { _elem1183 = iprot.readString(); struct.keys.add(_elem1183); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list1185 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1185.size); long _elem1186; for (int _i1187 = 0; _i1187 < _list1185.size; ++_i1187) { _elem1186 = iprot.readI64(); struct.records.add(_elem1186); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysRecords_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("selectKeysRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecords_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(selectKeysRecords_result.class, metaDataMap); } public selectKeysRecords_result() { } public selectKeysRecords_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public selectKeysRecords_result(selectKeysRecords_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public selectKeysRecords_result deepCopy() { return new selectKeysRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectKeysRecords_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysRecords_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysRecords_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysRecords_result) return this.equals((selectKeysRecords_result)that); return false; } public boolean equals(selectKeysRecords_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(selectKeysRecords_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("selectKeysRecords_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 selectKeysRecords_resultStandardSchemeFactory implements SchemeFactory { public selectKeysRecords_resultStandardScheme getScheme() { return new selectKeysRecords_resultStandardScheme(); } } private static class selectKeysRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecords_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.MAP) { { org.apache.thrift.protocol.TMap _map1188 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map1188.size); long _key1189; Map> _val1190; for (int _i1191 = 0; _i1191 < _map1188.size; ++_i1191) { _key1189 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1192 = iprot.readMapBegin(); _val1190 = new LinkedHashMap>(2*_map1192.size); String _key1193; Set _val1194; for (int _i1195 = 0; _i1195 < _map1192.size; ++_i1195) { _key1193 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1196 = iprot.readSetBegin(); _val1194 = new LinkedHashSet(2*_set1196.size); com.cinchapi.concourse.thrift.TObject _elem1197; for (int _i1198 = 0; _i1198 < _set1196.size; ++_i1198) { _elem1197 = new com.cinchapi.concourse.thrift.TObject(); _elem1197.read(iprot); _val1194.add(_elem1197); } iprot.readSetEnd(); } _val1190.put(_key1193, _val1194); } iprot.readMapEnd(); } struct.success.put(_key1189, _val1190); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, selectKeysRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1199 : struct.success.entrySet()) { oprot.writeI64(_iter1199.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1199.getValue().size())); for (Map.Entry> _iter1200 : _iter1199.getValue().entrySet()) { oprot.writeString(_iter1200.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1200.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1201 : _iter1200.getValue()) { _iter1201.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecords_resultTupleSchemeFactory implements SchemeFactory { public selectKeysRecords_resultTupleScheme getScheme() { return new selectKeysRecords_resultTupleScheme(); } } private static class selectKeysRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1202 : struct.success.entrySet()) { oprot.writeI64(_iter1202.getKey()); { oprot.writeI32(_iter1202.getValue().size()); for (Map.Entry> _iter1203 : _iter1202.getValue().entrySet()) { oprot.writeString(_iter1203.getKey()); { oprot.writeI32(_iter1203.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1204 : _iter1203.getValue()) { _iter1204.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1205 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map1205.size); long _key1206; Map> _val1207; for (int _i1208 = 0; _i1208 < _map1205.size; ++_i1208) { _key1206 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1209 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1207 = new LinkedHashMap>(2*_map1209.size); String _key1210; Set _val1211; for (int _i1212 = 0; _i1212 < _map1209.size; ++_i1212) { _key1210 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1213 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1211 = new LinkedHashSet(2*_set1213.size); com.cinchapi.concourse.thrift.TObject _elem1214; for (int _i1215 = 0; _i1215 < _set1213.size; ++_i1215) { _elem1214 = new com.cinchapi.concourse.thrift.TObject(); _elem1214.read(iprot); _val1211.add(_elem1214); } } _val1207.put(_key1210, _val1211); } } struct.success.put(_key1206, _val1207); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class selectKeyRecords_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("selectKeyRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecords_argsTupleSchemeFactory()); } public String key; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORDS((short)2, "records"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeyRecords_args.class, metaDataMap); } public selectKeyRecords_args() { } public selectKeyRecords_args( String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyRecords_args(selectKeyRecords_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyRecords_args deepCopy() { return new selectKeyRecords_args(this); } @Override public void clear() { this.key = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public selectKeyRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyRecords_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyRecords_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyRecords_args) return this.equals((selectKeyRecords_args)that); return false; } public boolean equals(selectKeyRecords_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyRecords_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeyRecords_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeyRecords_argsStandardSchemeFactory implements SchemeFactory { public selectKeyRecords_argsStandardScheme getScheme() { return new selectKeyRecords_argsStandardScheme(); } } private static class selectKeyRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecords_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1216 = iprot.readListBegin(); struct.records = new ArrayList(_list1216.size); long _elem1217; for (int _i1218 = 0; _i1218 < _list1216.size; ++_i1218) { _elem1217 = iprot.readI64(); struct.records.add(_elem1217); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeyRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1219 : struct.records) { oprot.writeI64(_iter1219); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecords_argsTupleSchemeFactory implements SchemeFactory { public selectKeyRecords_argsTupleScheme getScheme() { return new selectKeyRecords_argsTupleScheme(); } } private static class selectKeyRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1220 : struct.records) { oprot.writeI64(_iter1220); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list1221 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1221.size); long _elem1222; for (int _i1223 = 0; _i1223 < _list1221.size; ++_i1223) { _elem1222 = iprot.readI64(); struct.records.add(_elem1222); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyRecords_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("selectKeyRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecords_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(selectKeyRecords_result.class, metaDataMap); } public selectKeyRecords_result() { } public selectKeyRecords_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public selectKeyRecords_result(selectKeyRecords_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public selectKeyRecords_result deepCopy() { return new selectKeyRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeyRecords_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyRecords_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyRecords_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyRecords_result) return this.equals((selectKeyRecords_result)that); return false; } public boolean equals(selectKeyRecords_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(selectKeyRecords_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("selectKeyRecords_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 selectKeyRecords_resultStandardSchemeFactory implements SchemeFactory { public selectKeyRecords_resultStandardScheme getScheme() { return new selectKeyRecords_resultStandardScheme(); } } private static class selectKeyRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecords_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.MAP) { { org.apache.thrift.protocol.TMap _map1224 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map1224.size); long _key1225; Set _val1226; for (int _i1227 = 0; _i1227 < _map1224.size; ++_i1227) { _key1225 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1228 = iprot.readSetBegin(); _val1226 = new LinkedHashSet(2*_set1228.size); com.cinchapi.concourse.thrift.TObject _elem1229; for (int _i1230 = 0; _i1230 < _set1228.size; ++_i1230) { _elem1229 = new com.cinchapi.concourse.thrift.TObject(); _elem1229.read(iprot); _val1226.add(_elem1229); } iprot.readSetEnd(); } struct.success.put(_key1225, _val1226); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, selectKeyRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1231 : struct.success.entrySet()) { oprot.writeI64(_iter1231.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1231.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1232 : _iter1231.getValue()) { _iter1232.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecords_resultTupleSchemeFactory implements SchemeFactory { public selectKeyRecords_resultTupleScheme getScheme() { return new selectKeyRecords_resultTupleScheme(); } } private static class selectKeyRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1233 : struct.success.entrySet()) { oprot.writeI64(_iter1233.getKey()); { oprot.writeI32(_iter1233.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1234 : _iter1233.getValue()) { _iter1234.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1235 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map1235.size); long _key1236; Set _val1237; for (int _i1238 = 0; _i1238 < _map1235.size; ++_i1238) { _key1236 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1239 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1237 = new LinkedHashSet(2*_set1239.size); com.cinchapi.concourse.thrift.TObject _elem1240; for (int _i1241 = 0; _i1241 < _set1239.size; ++_i1241) { _elem1240 = new com.cinchapi.concourse.thrift.TObject(); _elem1240.read(iprot); _val1237.add(_elem1240); } } struct.success.put(_key1236, _val1237); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class selectKeyRecordsTime_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("selectKeyRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecordsTime_argsTupleSchemeFactory()); } public String key; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORDS((short)2, "records"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeyRecordsTime_args.class, metaDataMap); } public selectKeyRecordsTime_args() { } public selectKeyRecordsTime_args( String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyRecordsTime_args(selectKeyRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyRecordsTime_args deepCopy() { return new selectKeyRecordsTime_args(this); } @Override public void clear() { this.key = null; this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyRecordsTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public selectKeyRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public selectKeyRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyRecordsTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyRecordsTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyRecordsTime_args) return this.equals((selectKeyRecordsTime_args)that); return false; } public boolean equals(selectKeyRecordsTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyRecordsTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeyRecordsTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeyRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public selectKeyRecordsTime_argsStandardScheme getScheme() { return new selectKeyRecordsTime_argsStandardScheme(); } } private static class selectKeyRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecordsTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1242 = iprot.readListBegin(); struct.records = new ArrayList(_list1242.size); long _elem1243; for (int _i1244 = 0; _i1244 < _list1242.size; ++_i1244) { _elem1243 = iprot.readI64(); struct.records.add(_elem1243); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeyRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1245 : struct.records) { oprot.writeI64(_iter1245); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public selectKeyRecordsTime_argsTupleScheme getScheme() { return new selectKeyRecordsTime_argsTupleScheme(); } } private static class selectKeyRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1246 : struct.records) { oprot.writeI64(_iter1246); } } } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list1247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1247.size); long _elem1248; for (int _i1249 = 0; _i1249 < _list1247.size; ++_i1249) { _elem1248 = iprot.readI64(); struct.records.add(_elem1248); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyRecordsTime_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("selectKeyRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecordsTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(selectKeyRecordsTime_result.class, metaDataMap); } public selectKeyRecordsTime_result() { } public selectKeyRecordsTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public selectKeyRecordsTime_result(selectKeyRecordsTime_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public selectKeyRecordsTime_result deepCopy() { return new selectKeyRecordsTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeyRecordsTime_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyRecordsTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyRecordsTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyRecordsTime_result) return this.equals((selectKeyRecordsTime_result)that); return false; } public boolean equals(selectKeyRecordsTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(selectKeyRecordsTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("selectKeyRecordsTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 selectKeyRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public selectKeyRecordsTime_resultStandardScheme getScheme() { return new selectKeyRecordsTime_resultStandardScheme(); } } private static class selectKeyRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecordsTime_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.MAP) { { org.apache.thrift.protocol.TMap _map1250 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map1250.size); long _key1251; Set _val1252; for (int _i1253 = 0; _i1253 < _map1250.size; ++_i1253) { _key1251 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1254 = iprot.readSetBegin(); _val1252 = new LinkedHashSet(2*_set1254.size); com.cinchapi.concourse.thrift.TObject _elem1255; for (int _i1256 = 0; _i1256 < _set1254.size; ++_i1256) { _elem1255 = new com.cinchapi.concourse.thrift.TObject(); _elem1255.read(iprot); _val1252.add(_elem1255); } iprot.readSetEnd(); } struct.success.put(_key1251, _val1252); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, selectKeyRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1257 : struct.success.entrySet()) { oprot.writeI64(_iter1257.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1257.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1258 : _iter1257.getValue()) { _iter1258.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public selectKeyRecordsTime_resultTupleScheme getScheme() { return new selectKeyRecordsTime_resultTupleScheme(); } } private static class selectKeyRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1259 : struct.success.entrySet()) { oprot.writeI64(_iter1259.getKey()); { oprot.writeI32(_iter1259.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1260 : _iter1259.getValue()) { _iter1260.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1261 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map1261.size); long _key1262; Set _val1263; for (int _i1264 = 0; _i1264 < _map1261.size; ++_i1264) { _key1262 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1265 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1263 = new LinkedHashSet(2*_set1265.size); com.cinchapi.concourse.thrift.TObject _elem1266; for (int _i1267 = 0; _i1267 < _set1265.size; ++_i1267) { _elem1266 = new com.cinchapi.concourse.thrift.TObject(); _elem1266.read(iprot); _val1263.add(_elem1266); } } struct.success.put(_key1262, _val1263); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class selectKeyRecordsTimestr_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("selectKeyRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecordsTimestr_argsTupleSchemeFactory()); } public String key; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORDS((short)2, "records"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeyRecordsTimestr_args.class, metaDataMap); } public selectKeyRecordsTimestr_args() { } public selectKeyRecordsTimestr_args( String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyRecordsTimestr_args(selectKeyRecordsTimestr_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyRecordsTimestr_args deepCopy() { return new selectKeyRecordsTimestr_args(this); } @Override public void clear() { this.key = null; this.records = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyRecordsTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public selectKeyRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public selectKeyRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyRecordsTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyRecordsTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyRecordsTimestr_args) return this.equals((selectKeyRecordsTimestr_args)that); return false; } public boolean equals(selectKeyRecordsTimestr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyRecordsTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeyRecordsTimestr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeyRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectKeyRecordsTimestr_argsStandardScheme getScheme() { return new selectKeyRecordsTimestr_argsStandardScheme(); } } private static class selectKeyRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecordsTimestr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1268 = iprot.readListBegin(); struct.records = new ArrayList(_list1268.size); long _elem1269; for (int _i1270 = 0; _i1270 < _list1268.size; ++_i1270) { _elem1269 = iprot.readI64(); struct.records.add(_elem1269); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1271 : struct.records) { oprot.writeI64(_iter1271); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectKeyRecordsTimestr_argsTupleScheme getScheme() { return new selectKeyRecordsTimestr_argsTupleScheme(); } } private static class selectKeyRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1272 : struct.records) { oprot.writeI64(_iter1272); } } } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list1273 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1273.size); long _elem1274; for (int _i1275 = 0; _i1275 < _list1273.size; ++_i1275) { _elem1274 = iprot.readI64(); struct.records.add(_elem1274); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyRecordsTimestr_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("selectKeyRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyRecordsTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(selectKeyRecordsTimestr_result.class, metaDataMap); } public selectKeyRecordsTimestr_result() { } public selectKeyRecordsTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeyRecordsTimestr_result(selectKeyRecordsTimestr_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public selectKeyRecordsTimestr_result deepCopy() { return new selectKeyRecordsTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeyRecordsTimestr_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyRecordsTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyRecordsTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeyRecordsTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyRecordsTimestr_result) return this.equals((selectKeyRecordsTimestr_result)that); return false; } public boolean equals(selectKeyRecordsTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(selectKeyRecordsTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("selectKeyRecordsTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 selectKeyRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectKeyRecordsTimestr_resultStandardScheme getScheme() { return new selectKeyRecordsTimestr_resultStandardScheme(); } } private static class selectKeyRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyRecordsTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map1276 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map1276.size); long _key1277; Set _val1278; for (int _i1279 = 0; _i1279 < _map1276.size; ++_i1279) { _key1277 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1280 = iprot.readSetBegin(); _val1278 = new LinkedHashSet(2*_set1280.size); com.cinchapi.concourse.thrift.TObject _elem1281; for (int _i1282 = 0; _i1282 < _set1280.size; ++_i1282) { _elem1281 = new com.cinchapi.concourse.thrift.TObject(); _elem1281.read(iprot); _val1278.add(_elem1281); } iprot.readSetEnd(); } struct.success.put(_key1277, _val1278); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, selectKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1283 : struct.success.entrySet()) { oprot.writeI64(_iter1283.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1283.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1284 : _iter1283.getValue()) { _iter1284.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectKeyRecordsTimestr_resultTupleScheme getScheme() { return new selectKeyRecordsTimestr_resultTupleScheme(); } } private static class selectKeyRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1285 : struct.success.entrySet()) { oprot.writeI64(_iter1285.getKey()); { oprot.writeI32(_iter1285.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1286 : _iter1285.getValue()) { _iter1286.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1287 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map1287.size); long _key1288; Set _val1289; for (int _i1290 = 0; _i1290 < _map1287.size; ++_i1290) { _key1288 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1291 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1289 = new LinkedHashSet(2*_set1291.size); com.cinchapi.concourse.thrift.TObject _elem1292; for (int _i1293 = 0; _i1293 < _set1291.size; ++_i1293) { _elem1292 = new com.cinchapi.concourse.thrift.TObject(); _elem1292.read(iprot); _val1289.add(_elem1292); } } struct.success.put(_key1288, _val1289); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeysRecordsTime_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("selectKeysRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecordsTime_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORDS((short)2, "records"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeysRecordsTime_args.class, metaDataMap); } public selectKeysRecordsTime_args() { } public selectKeysRecordsTime_args( List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysRecordsTime_args(selectKeysRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysRecordsTime_args deepCopy() { return new selectKeysRecordsTime_args(this); } @Override public void clear() { this.keys = null; this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysRecordsTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public selectKeysRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public selectKeysRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysRecordsTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysRecordsTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysRecordsTime_args) return this.equals((selectKeysRecordsTime_args)that); return false; } public boolean equals(selectKeysRecordsTime_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysRecordsTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeysRecordsTime_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeysRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public selectKeysRecordsTime_argsStandardScheme getScheme() { return new selectKeysRecordsTime_argsStandardScheme(); } } private static class selectKeysRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecordsTime_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1294 = iprot.readListBegin(); struct.keys = new ArrayList(_list1294.size); String _elem1295; for (int _i1296 = 0; _i1296 < _list1294.size; ++_i1296) { _elem1295 = iprot.readString(); struct.keys.add(_elem1295); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1297 = iprot.readListBegin(); struct.records = new ArrayList(_list1297.size); long _elem1298; for (int _i1299 = 0; _i1299 < _list1297.size; ++_i1299) { _elem1298 = iprot.readI64(); struct.records.add(_elem1298); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeysRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1300 : struct.keys) { oprot.writeString(_iter1300); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1301 : struct.records) { oprot.writeI64(_iter1301); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public selectKeysRecordsTime_argsTupleScheme getScheme() { return new selectKeysRecordsTime_argsTupleScheme(); } } private static class selectKeysRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1302 : struct.keys) { oprot.writeString(_iter1302); } } } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1303 : struct.records) { oprot.writeI64(_iter1303); } } } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list1304 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1304.size); String _elem1305; for (int _i1306 = 0; _i1306 < _list1304.size; ++_i1306) { _elem1305 = iprot.readString(); struct.keys.add(_elem1305); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list1307 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1307.size); long _elem1308; for (int _i1309 = 0; _i1309 < _list1307.size; ++_i1309) { _elem1308 = iprot.readI64(); struct.records.add(_elem1308); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysRecordsTime_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("selectKeysRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecordsTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(selectKeysRecordsTime_result.class, metaDataMap); } public selectKeysRecordsTime_result() { } public selectKeysRecordsTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public selectKeysRecordsTime_result(selectKeysRecordsTime_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public selectKeysRecordsTime_result deepCopy() { return new selectKeysRecordsTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectKeysRecordsTime_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysRecordsTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysRecordsTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysRecordsTime_result) return this.equals((selectKeysRecordsTime_result)that); return false; } public boolean equals(selectKeysRecordsTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(selectKeysRecordsTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("selectKeysRecordsTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 selectKeysRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public selectKeysRecordsTime_resultStandardScheme getScheme() { return new selectKeysRecordsTime_resultStandardScheme(); } } private static class selectKeysRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecordsTime_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.MAP) { { org.apache.thrift.protocol.TMap _map1310 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map1310.size); long _key1311; Map> _val1312; for (int _i1313 = 0; _i1313 < _map1310.size; ++_i1313) { _key1311 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1314 = iprot.readMapBegin(); _val1312 = new LinkedHashMap>(2*_map1314.size); String _key1315; Set _val1316; for (int _i1317 = 0; _i1317 < _map1314.size; ++_i1317) { _key1315 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1318 = iprot.readSetBegin(); _val1316 = new LinkedHashSet(2*_set1318.size); com.cinchapi.concourse.thrift.TObject _elem1319; for (int _i1320 = 0; _i1320 < _set1318.size; ++_i1320) { _elem1319 = new com.cinchapi.concourse.thrift.TObject(); _elem1319.read(iprot); _val1316.add(_elem1319); } iprot.readSetEnd(); } _val1312.put(_key1315, _val1316); } iprot.readMapEnd(); } struct.success.put(_key1311, _val1312); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, selectKeysRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1321 : struct.success.entrySet()) { oprot.writeI64(_iter1321.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1321.getValue().size())); for (Map.Entry> _iter1322 : _iter1321.getValue().entrySet()) { oprot.writeString(_iter1322.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1322.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1323 : _iter1322.getValue()) { _iter1323.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public selectKeysRecordsTime_resultTupleScheme getScheme() { return new selectKeysRecordsTime_resultTupleScheme(); } } private static class selectKeysRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1324 : struct.success.entrySet()) { oprot.writeI64(_iter1324.getKey()); { oprot.writeI32(_iter1324.getValue().size()); for (Map.Entry> _iter1325 : _iter1324.getValue().entrySet()) { oprot.writeString(_iter1325.getKey()); { oprot.writeI32(_iter1325.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1326 : _iter1325.getValue()) { _iter1326.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1327 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map1327.size); long _key1328; Map> _val1329; for (int _i1330 = 0; _i1330 < _map1327.size; ++_i1330) { _key1328 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1331 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1329 = new LinkedHashMap>(2*_map1331.size); String _key1332; Set _val1333; for (int _i1334 = 0; _i1334 < _map1331.size; ++_i1334) { _key1332 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1335 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1333 = new LinkedHashSet(2*_set1335.size); com.cinchapi.concourse.thrift.TObject _elem1336; for (int _i1337 = 0; _i1337 < _set1335.size; ++_i1337) { _elem1336 = new com.cinchapi.concourse.thrift.TObject(); _elem1336.read(iprot); _val1333.add(_elem1336); } } _val1329.put(_key1332, _val1333); } } struct.success.put(_key1328, _val1329); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class selectKeysRecordsTimestr_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("selectKeysRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecordsTimestr_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORDS((short)2, "records"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeysRecordsTimestr_args.class, metaDataMap); } public selectKeysRecordsTimestr_args() { } public selectKeysRecordsTimestr_args( List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysRecordsTimestr_args(selectKeysRecordsTimestr_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysRecordsTimestr_args deepCopy() { return new selectKeysRecordsTimestr_args(this); } @Override public void clear() { this.keys = null; this.records = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysRecordsTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public selectKeysRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public selectKeysRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysRecordsTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysRecordsTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysRecordsTimestr_args) return this.equals((selectKeysRecordsTimestr_args)that); return false; } public boolean equals(selectKeysRecordsTimestr_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysRecordsTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeysRecordsTimestr_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeysRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectKeysRecordsTimestr_argsStandardScheme getScheme() { return new selectKeysRecordsTimestr_argsStandardScheme(); } } private static class selectKeysRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecordsTimestr_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1338 = iprot.readListBegin(); struct.keys = new ArrayList(_list1338.size); String _elem1339; for (int _i1340 = 0; _i1340 < _list1338.size; ++_i1340) { _elem1339 = iprot.readString(); struct.keys.add(_elem1339); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1341 = iprot.readListBegin(); struct.records = new ArrayList(_list1341.size); long _elem1342; for (int _i1343 = 0; _i1343 < _list1341.size; ++_i1343) { _elem1342 = iprot.readI64(); struct.records.add(_elem1342); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1344 : struct.keys) { oprot.writeString(_iter1344); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1345 : struct.records) { oprot.writeI64(_iter1345); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectKeysRecordsTimestr_argsTupleScheme getScheme() { return new selectKeysRecordsTimestr_argsTupleScheme(); } } private static class selectKeysRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1346 : struct.keys) { oprot.writeString(_iter1346); } } } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1347 : struct.records) { oprot.writeI64(_iter1347); } } } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list1348 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1348.size); String _elem1349; for (int _i1350 = 0; _i1350 < _list1348.size; ++_i1350) { _elem1349 = iprot.readString(); struct.keys.add(_elem1349); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list1351 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1351.size); long _elem1352; for (int _i1353 = 0; _i1353 < _list1351.size; ++_i1353) { _elem1352 = iprot.readI64(); struct.records.add(_elem1352); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysRecordsTimestr_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("selectKeysRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysRecordsTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(selectKeysRecordsTimestr_result.class, metaDataMap); } public selectKeysRecordsTimestr_result() { } public selectKeysRecordsTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeysRecordsTimestr_result(selectKeysRecordsTimestr_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public selectKeysRecordsTimestr_result deepCopy() { return new selectKeysRecordsTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectKeysRecordsTimestr_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysRecordsTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysRecordsTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeysRecordsTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysRecordsTimestr_result) return this.equals((selectKeysRecordsTimestr_result)that); return false; } public boolean equals(selectKeysRecordsTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(selectKeysRecordsTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("selectKeysRecordsTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 selectKeysRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectKeysRecordsTimestr_resultStandardScheme getScheme() { return new selectKeysRecordsTimestr_resultStandardScheme(); } } private static class selectKeysRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysRecordsTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map1354 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map1354.size); long _key1355; Map> _val1356; for (int _i1357 = 0; _i1357 < _map1354.size; ++_i1357) { _key1355 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1358 = iprot.readMapBegin(); _val1356 = new LinkedHashMap>(2*_map1358.size); String _key1359; Set _val1360; for (int _i1361 = 0; _i1361 < _map1358.size; ++_i1361) { _key1359 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1362 = iprot.readSetBegin(); _val1360 = new LinkedHashSet(2*_set1362.size); com.cinchapi.concourse.thrift.TObject _elem1363; for (int _i1364 = 0; _i1364 < _set1362.size; ++_i1364) { _elem1363 = new com.cinchapi.concourse.thrift.TObject(); _elem1363.read(iprot); _val1360.add(_elem1363); } iprot.readSetEnd(); } _val1356.put(_key1359, _val1360); } iprot.readMapEnd(); } struct.success.put(_key1355, _val1356); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, selectKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1365 : struct.success.entrySet()) { oprot.writeI64(_iter1365.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1365.getValue().size())); for (Map.Entry> _iter1366 : _iter1365.getValue().entrySet()) { oprot.writeString(_iter1366.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1366.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1367 : _iter1366.getValue()) { _iter1367.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectKeysRecordsTimestr_resultTupleScheme getScheme() { return new selectKeysRecordsTimestr_resultTupleScheme(); } } private static class selectKeysRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1368 : struct.success.entrySet()) { oprot.writeI64(_iter1368.getKey()); { oprot.writeI32(_iter1368.getValue().size()); for (Map.Entry> _iter1369 : _iter1368.getValue().entrySet()) { oprot.writeString(_iter1369.getKey()); { oprot.writeI32(_iter1369.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1370 : _iter1369.getValue()) { _iter1370.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1371 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map1371.size); long _key1372; Map> _val1373; for (int _i1374 = 0; _i1374 < _map1371.size; ++_i1374) { _key1372 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1375 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1373 = new LinkedHashMap>(2*_map1375.size); String _key1376; Set _val1377; for (int _i1378 = 0; _i1378 < _map1375.size; ++_i1378) { _key1376 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1379 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1377 = new LinkedHashSet(2*_set1379.size); com.cinchapi.concourse.thrift.TObject _elem1380; for (int _i1381 = 0; _i1381 < _set1379.size; ++_i1381) { _elem1380 = new com.cinchapi.concourse.thrift.TObject(); _elem1380.read(iprot); _val1377.add(_elem1380); } } _val1373.put(_key1376, _val1377); } } struct.success.put(_key1372, _val1373); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectCriteria_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("selectCriteria_args"); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCriteria_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CRITERIA((short)1, "criteria"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // CRITERIA return CRITERIA; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectCriteria_args.class, metaDataMap); } public selectCriteria_args() { } public selectCriteria_args( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectCriteria_args(selectCriteria_args other) { if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectCriteria_args deepCopy() { return new selectCriteria_args(this); } @Override public void clear() { this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public selectCriteria_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectCriteria_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectCriteria_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectCriteria_args) return this.equals((selectCriteria_args)that); return false; } public boolean equals(selectCriteria_args that) { if (that == null) return false; boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectCriteria_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectCriteria_args("); boolean first = true; sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectCriteria_argsStandardSchemeFactory implements SchemeFactory { public selectCriteria_argsStandardScheme getScheme() { return new selectCriteria_argsStandardScheme(); } } private static class selectCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCriteria_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: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCriteria_argsTupleSchemeFactory implements SchemeFactory { public selectCriteria_argsTupleScheme getScheme() { return new selectCriteria_argsTupleScheme(); } } private static class selectCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCriteria()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectCriteria_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("selectCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCriteria_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(selectCriteria_result.class, metaDataMap); } public selectCriteria_result() { } public selectCriteria_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public selectCriteria_result(selectCriteria_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public selectCriteria_result deepCopy() { return new selectCriteria_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectCriteria_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectCriteria_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectCriteria_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectCriteria_result) return this.equals((selectCriteria_result)that); return false; } public boolean equals(selectCriteria_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(selectCriteria_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("selectCriteria_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 selectCriteria_resultStandardSchemeFactory implements SchemeFactory { public selectCriteria_resultStandardScheme getScheme() { return new selectCriteria_resultStandardScheme(); } } private static class selectCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCriteria_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.MAP) { { org.apache.thrift.protocol.TMap _map1382 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map1382.size); long _key1383; Map> _val1384; for (int _i1385 = 0; _i1385 < _map1382.size; ++_i1385) { _key1383 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1386 = iprot.readMapBegin(); _val1384 = new LinkedHashMap>(2*_map1386.size); String _key1387; Set _val1388; for (int _i1389 = 0; _i1389 < _map1386.size; ++_i1389) { _key1387 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1390 = iprot.readSetBegin(); _val1388 = new LinkedHashSet(2*_set1390.size); com.cinchapi.concourse.thrift.TObject _elem1391; for (int _i1392 = 0; _i1392 < _set1390.size; ++_i1392) { _elem1391 = new com.cinchapi.concourse.thrift.TObject(); _elem1391.read(iprot); _val1388.add(_elem1391); } iprot.readSetEnd(); } _val1384.put(_key1387, _val1388); } iprot.readMapEnd(); } struct.success.put(_key1383, _val1384); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, selectCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1393 : struct.success.entrySet()) { oprot.writeI64(_iter1393.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1393.getValue().size())); for (Map.Entry> _iter1394 : _iter1393.getValue().entrySet()) { oprot.writeString(_iter1394.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1394.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1395 : _iter1394.getValue()) { _iter1395.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCriteria_resultTupleSchemeFactory implements SchemeFactory { public selectCriteria_resultTupleScheme getScheme() { return new selectCriteria_resultTupleScheme(); } } private static class selectCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1396 : struct.success.entrySet()) { oprot.writeI64(_iter1396.getKey()); { oprot.writeI32(_iter1396.getValue().size()); for (Map.Entry> _iter1397 : _iter1396.getValue().entrySet()) { oprot.writeString(_iter1397.getKey()); { oprot.writeI32(_iter1397.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1398 : _iter1397.getValue()) { _iter1398.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1399 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map1399.size); long _key1400; Map> _val1401; for (int _i1402 = 0; _i1402 < _map1399.size; ++_i1402) { _key1400 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1403 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1401 = new LinkedHashMap>(2*_map1403.size); String _key1404; Set _val1405; for (int _i1406 = 0; _i1406 < _map1403.size; ++_i1406) { _key1404 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1407 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1405 = new LinkedHashSet(2*_set1407.size); com.cinchapi.concourse.thrift.TObject _elem1408; for (int _i1409 = 0; _i1409 < _set1407.size; ++_i1409) { _elem1408 = new com.cinchapi.concourse.thrift.TObject(); _elem1408.read(iprot); _val1405.add(_elem1408); } } _val1401.put(_key1404, _val1405); } } struct.success.put(_key1400, _val1401); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class selectCcl_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("selectCcl_args"); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCcl_argsTupleSchemeFactory()); } public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CCL((short)1, "ccl"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // CCL return CCL; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectCcl_args.class, metaDataMap); } public selectCcl_args() { } public selectCcl_args( String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectCcl_args(selectCcl_args other) { if (other.isSetCcl()) { this.ccl = other.ccl; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectCcl_args deepCopy() { return new selectCcl_args(this); } @Override public void clear() { this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public String getCcl() { return this.ccl; } public selectCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectCcl_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectCcl_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectCcl_args) return this.equals((selectCcl_args)that); return false; } public boolean equals(selectCcl_args that) { if (that == null) return false; boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectCcl_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectCcl_args("); boolean first = true; sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectCcl_argsStandardSchemeFactory implements SchemeFactory { public selectCcl_argsStandardScheme getScheme() { return new selectCcl_argsStandardScheme(); } } private static class selectCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCcl_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: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCcl_argsTupleSchemeFactory implements SchemeFactory { public selectCcl_argsTupleScheme getScheme() { return new selectCcl_argsTupleScheme(); } } private static class selectCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCcl()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectCcl_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("selectCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCcl_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(selectCcl_result.class, metaDataMap); } public selectCcl_result() { } public selectCcl_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectCcl_result(selectCcl_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public selectCcl_result deepCopy() { return new selectCcl_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectCcl_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectCcl_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectCcl_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectCcl_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectCcl_result) return this.equals((selectCcl_result)that); return false; } public boolean equals(selectCcl_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(selectCcl_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("selectCcl_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 selectCcl_resultStandardSchemeFactory implements SchemeFactory { public selectCcl_resultStandardScheme getScheme() { return new selectCcl_resultStandardScheme(); } } private static class selectCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCcl_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.MAP) { { org.apache.thrift.protocol.TMap _map1410 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map1410.size); long _key1411; Map> _val1412; for (int _i1413 = 0; _i1413 < _map1410.size; ++_i1413) { _key1411 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1414 = iprot.readMapBegin(); _val1412 = new LinkedHashMap>(2*_map1414.size); String _key1415; Set _val1416; for (int _i1417 = 0; _i1417 < _map1414.size; ++_i1417) { _key1415 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1418 = iprot.readSetBegin(); _val1416 = new LinkedHashSet(2*_set1418.size); com.cinchapi.concourse.thrift.TObject _elem1419; for (int _i1420 = 0; _i1420 < _set1418.size; ++_i1420) { _elem1419 = new com.cinchapi.concourse.thrift.TObject(); _elem1419.read(iprot); _val1416.add(_elem1419); } iprot.readSetEnd(); } _val1412.put(_key1415, _val1416); } iprot.readMapEnd(); } struct.success.put(_key1411, _val1412); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, selectCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1421 : struct.success.entrySet()) { oprot.writeI64(_iter1421.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1421.getValue().size())); for (Map.Entry> _iter1422 : _iter1421.getValue().entrySet()) { oprot.writeString(_iter1422.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1422.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1423 : _iter1422.getValue()) { _iter1423.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCcl_resultTupleSchemeFactory implements SchemeFactory { public selectCcl_resultTupleScheme getScheme() { return new selectCcl_resultTupleScheme(); } } private static class selectCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1424 : struct.success.entrySet()) { oprot.writeI64(_iter1424.getKey()); { oprot.writeI32(_iter1424.getValue().size()); for (Map.Entry> _iter1425 : _iter1424.getValue().entrySet()) { oprot.writeString(_iter1425.getKey()); { oprot.writeI32(_iter1425.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1426 : _iter1425.getValue()) { _iter1426.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1427 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map1427.size); long _key1428; Map> _val1429; for (int _i1430 = 0; _i1430 < _map1427.size; ++_i1430) { _key1428 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1431 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1429 = new LinkedHashMap>(2*_map1431.size); String _key1432; Set _val1433; for (int _i1434 = 0; _i1434 < _map1431.size; ++_i1434) { _key1432 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1435 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1433 = new LinkedHashSet(2*_set1435.size); com.cinchapi.concourse.thrift.TObject _elem1436; for (int _i1437 = 0; _i1437 < _set1435.size; ++_i1437) { _elem1436 = new com.cinchapi.concourse.thrift.TObject(); _elem1436.read(iprot); _val1433.add(_elem1436); } } _val1429.put(_key1432, _val1433); } } struct.success.put(_key1428, _val1429); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectCriteriaTime_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("selectCriteriaTime_args"); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCriteriaTime_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CRITERIA((short)1, "criteria"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // CRITERIA return CRITERIA; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectCriteriaTime_args.class, metaDataMap); } public selectCriteriaTime_args() { } public selectCriteriaTime_args( com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectCriteriaTime_args(selectCriteriaTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectCriteriaTime_args deepCopy() { return new selectCriteriaTime_args(this); } @Override public void clear() { this.criteria = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public selectCriteriaTime_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public long getTimestamp() { return this.timestamp; } public selectCriteriaTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectCriteriaTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectCriteriaTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectCriteriaTime_args) return this.equals((selectCriteriaTime_args)that); return false; } public boolean equals(selectCriteriaTime_args that) { if (that == null) return false; boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectCriteriaTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectCriteriaTime_args("); boolean first = true; sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public selectCriteriaTime_argsStandardScheme getScheme() { return new selectCriteriaTime_argsStandardScheme(); } } private static class selectCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCriteriaTime_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: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectCriteriaTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public selectCriteriaTime_argsTupleScheme getScheme() { return new selectCriteriaTime_argsTupleScheme(); } } private static class selectCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCriteria()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectCriteriaTime_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("selectCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCriteriaTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(selectCriteriaTime_result.class, metaDataMap); } public selectCriteriaTime_result() { } public selectCriteriaTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public selectCriteriaTime_result(selectCriteriaTime_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public selectCriteriaTime_result deepCopy() { return new selectCriteriaTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectCriteriaTime_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectCriteriaTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectCriteriaTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectCriteriaTime_result) return this.equals((selectCriteriaTime_result)that); return false; } public boolean equals(selectCriteriaTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(selectCriteriaTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("selectCriteriaTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 selectCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public selectCriteriaTime_resultStandardScheme getScheme() { return new selectCriteriaTime_resultStandardScheme(); } } private static class selectCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCriteriaTime_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.MAP) { { org.apache.thrift.protocol.TMap _map1438 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map1438.size); long _key1439; Map> _val1440; for (int _i1441 = 0; _i1441 < _map1438.size; ++_i1441) { _key1439 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1442 = iprot.readMapBegin(); _val1440 = new LinkedHashMap>(2*_map1442.size); String _key1443; Set _val1444; for (int _i1445 = 0; _i1445 < _map1442.size; ++_i1445) { _key1443 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1446 = iprot.readSetBegin(); _val1444 = new LinkedHashSet(2*_set1446.size); com.cinchapi.concourse.thrift.TObject _elem1447; for (int _i1448 = 0; _i1448 < _set1446.size; ++_i1448) { _elem1447 = new com.cinchapi.concourse.thrift.TObject(); _elem1447.read(iprot); _val1444.add(_elem1447); } iprot.readSetEnd(); } _val1440.put(_key1443, _val1444); } iprot.readMapEnd(); } struct.success.put(_key1439, _val1440); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, selectCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1449 : struct.success.entrySet()) { oprot.writeI64(_iter1449.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1449.getValue().size())); for (Map.Entry> _iter1450 : _iter1449.getValue().entrySet()) { oprot.writeString(_iter1450.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1450.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1451 : _iter1450.getValue()) { _iter1451.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public selectCriteriaTime_resultTupleScheme getScheme() { return new selectCriteriaTime_resultTupleScheme(); } } private static class selectCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1452 : struct.success.entrySet()) { oprot.writeI64(_iter1452.getKey()); { oprot.writeI32(_iter1452.getValue().size()); for (Map.Entry> _iter1453 : _iter1452.getValue().entrySet()) { oprot.writeString(_iter1453.getKey()); { oprot.writeI32(_iter1453.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1454 : _iter1453.getValue()) { _iter1454.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1455 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map1455.size); long _key1456; Map> _val1457; for (int _i1458 = 0; _i1458 < _map1455.size; ++_i1458) { _key1456 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1459 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1457 = new LinkedHashMap>(2*_map1459.size); String _key1460; Set _val1461; for (int _i1462 = 0; _i1462 < _map1459.size; ++_i1462) { _key1460 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1463 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1461 = new LinkedHashSet(2*_set1463.size); com.cinchapi.concourse.thrift.TObject _elem1464; for (int _i1465 = 0; _i1465 < _set1463.size; ++_i1465) { _elem1464 = new com.cinchapi.concourse.thrift.TObject(); _elem1464.read(iprot); _val1461.add(_elem1464); } } _val1457.put(_key1460, _val1461); } } struct.success.put(_key1456, _val1457); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class selectCriteriaTimestr_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("selectCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCriteriaTimestr_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CRITERIA((short)1, "criteria"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // CRITERIA return CRITERIA; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectCriteriaTimestr_args.class, metaDataMap); } public selectCriteriaTimestr_args() { } public selectCriteriaTimestr_args( com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectCriteriaTimestr_args(selectCriteriaTimestr_args other) { if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectCriteriaTimestr_args deepCopy() { return new selectCriteriaTimestr_args(this); } @Override public void clear() { this.criteria = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public selectCriteriaTimestr_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public String getTimestamp() { return this.timestamp; } public selectCriteriaTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectCriteriaTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectCriteriaTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectCriteriaTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectCriteriaTimestr_args) return this.equals((selectCriteriaTimestr_args)that); return false; } public boolean equals(selectCriteriaTimestr_args that) { if (that == null) return false; boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectCriteriaTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectCriteriaTimestr_args("); boolean first = true; sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectCriteriaTimestr_argsStandardScheme getScheme() { return new selectCriteriaTimestr_argsStandardScheme(); } } private static class selectCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCriteriaTimestr_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: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectCriteriaTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectCriteriaTimestr_argsTupleScheme getScheme() { return new selectCriteriaTimestr_argsTupleScheme(); } } private static class selectCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCriteria()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectCriteriaTimestr_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("selectCriteriaTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCriteriaTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(selectCriteriaTimestr_result.class, metaDataMap); } public selectCriteriaTimestr_result() { } public selectCriteriaTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectCriteriaTimestr_result(selectCriteriaTimestr_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public selectCriteriaTimestr_result deepCopy() { return new selectCriteriaTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectCriteriaTimestr_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectCriteriaTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectCriteriaTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectCriteriaTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectCriteriaTimestr_result) return this.equals((selectCriteriaTimestr_result)that); return false; } public boolean equals(selectCriteriaTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(selectCriteriaTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("selectCriteriaTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 selectCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectCriteriaTimestr_resultStandardScheme getScheme() { return new selectCriteriaTimestr_resultStandardScheme(); } } private static class selectCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCriteriaTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map1466 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map1466.size); long _key1467; Map> _val1468; for (int _i1469 = 0; _i1469 < _map1466.size; ++_i1469) { _key1467 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1470 = iprot.readMapBegin(); _val1468 = new LinkedHashMap>(2*_map1470.size); String _key1471; Set _val1472; for (int _i1473 = 0; _i1473 < _map1470.size; ++_i1473) { _key1471 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1474 = iprot.readSetBegin(); _val1472 = new LinkedHashSet(2*_set1474.size); com.cinchapi.concourse.thrift.TObject _elem1475; for (int _i1476 = 0; _i1476 < _set1474.size; ++_i1476) { _elem1475 = new com.cinchapi.concourse.thrift.TObject(); _elem1475.read(iprot); _val1472.add(_elem1475); } iprot.readSetEnd(); } _val1468.put(_key1471, _val1472); } iprot.readMapEnd(); } struct.success.put(_key1467, _val1468); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, selectCriteriaTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1477 : struct.success.entrySet()) { oprot.writeI64(_iter1477.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1477.getValue().size())); for (Map.Entry> _iter1478 : _iter1477.getValue().entrySet()) { oprot.writeString(_iter1478.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1478.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1479 : _iter1478.getValue()) { _iter1479.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectCriteriaTimestr_resultTupleScheme getScheme() { return new selectCriteriaTimestr_resultTupleScheme(); } } private static class selectCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1480 : struct.success.entrySet()) { oprot.writeI64(_iter1480.getKey()); { oprot.writeI32(_iter1480.getValue().size()); for (Map.Entry> _iter1481 : _iter1480.getValue().entrySet()) { oprot.writeString(_iter1481.getKey()); { oprot.writeI32(_iter1481.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1482 : _iter1481.getValue()) { _iter1482.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1483 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map1483.size); long _key1484; Map> _val1485; for (int _i1486 = 0; _i1486 < _map1483.size; ++_i1486) { _key1484 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1487 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1485 = new LinkedHashMap>(2*_map1487.size); String _key1488; Set _val1489; for (int _i1490 = 0; _i1490 < _map1487.size; ++_i1490) { _key1488 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1491 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1489 = new LinkedHashSet(2*_set1491.size); com.cinchapi.concourse.thrift.TObject _elem1492; for (int _i1493 = 0; _i1493 < _set1491.size; ++_i1493) { _elem1492 = new com.cinchapi.concourse.thrift.TObject(); _elem1492.read(iprot); _val1489.add(_elem1492); } } _val1485.put(_key1488, _val1489); } } struct.success.put(_key1484, _val1485); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectCclTime_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("selectCclTime_args"); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCclTime_argsTupleSchemeFactory()); } public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CCL((short)1, "ccl"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // CCL return CCL; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectCclTime_args.class, metaDataMap); } public selectCclTime_args() { } public selectCclTime_args( String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectCclTime_args(selectCclTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetCcl()) { this.ccl = other.ccl; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectCclTime_args deepCopy() { return new selectCclTime_args(this); } @Override public void clear() { this.ccl = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getCcl() { return this.ccl; } public selectCclTime_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public long getTimestamp() { return this.timestamp; } public selectCclTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectCclTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectCclTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectCclTime_args) return this.equals((selectCclTime_args)that); return false; } public boolean equals(selectCclTime_args that) { if (that == null) return false; boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectCclTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectCclTime_args("); boolean first = true; sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectCclTime_argsStandardSchemeFactory implements SchemeFactory { public selectCclTime_argsStandardScheme getScheme() { return new selectCclTime_argsStandardScheme(); } } private static class selectCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCclTime_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: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectCclTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCclTime_argsTupleSchemeFactory implements SchemeFactory { public selectCclTime_argsTupleScheme getScheme() { return new selectCclTime_argsTupleScheme(); } } private static class selectCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCcl()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectCclTime_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("selectCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCclTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(selectCclTime_result.class, metaDataMap); } public selectCclTime_result() { } public selectCclTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectCclTime_result(selectCclTime_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public selectCclTime_result deepCopy() { return new selectCclTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectCclTime_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectCclTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectCclTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectCclTime_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectCclTime_result) return this.equals((selectCclTime_result)that); return false; } public boolean equals(selectCclTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(selectCclTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("selectCclTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 selectCclTime_resultStandardSchemeFactory implements SchemeFactory { public selectCclTime_resultStandardScheme getScheme() { return new selectCclTime_resultStandardScheme(); } } private static class selectCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCclTime_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.MAP) { { org.apache.thrift.protocol.TMap _map1494 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map1494.size); long _key1495; Map> _val1496; for (int _i1497 = 0; _i1497 < _map1494.size; ++_i1497) { _key1495 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1498 = iprot.readMapBegin(); _val1496 = new LinkedHashMap>(2*_map1498.size); String _key1499; Set _val1500; for (int _i1501 = 0; _i1501 < _map1498.size; ++_i1501) { _key1499 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1502 = iprot.readSetBegin(); _val1500 = new LinkedHashSet(2*_set1502.size); com.cinchapi.concourse.thrift.TObject _elem1503; for (int _i1504 = 0; _i1504 < _set1502.size; ++_i1504) { _elem1503 = new com.cinchapi.concourse.thrift.TObject(); _elem1503.read(iprot); _val1500.add(_elem1503); } iprot.readSetEnd(); } _val1496.put(_key1499, _val1500); } iprot.readMapEnd(); } struct.success.put(_key1495, _val1496); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, selectCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1505 : struct.success.entrySet()) { oprot.writeI64(_iter1505.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1505.getValue().size())); for (Map.Entry> _iter1506 : _iter1505.getValue().entrySet()) { oprot.writeString(_iter1506.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1506.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1507 : _iter1506.getValue()) { _iter1507.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCclTime_resultTupleSchemeFactory implements SchemeFactory { public selectCclTime_resultTupleScheme getScheme() { return new selectCclTime_resultTupleScheme(); } } private static class selectCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1508 : struct.success.entrySet()) { oprot.writeI64(_iter1508.getKey()); { oprot.writeI32(_iter1508.getValue().size()); for (Map.Entry> _iter1509 : _iter1508.getValue().entrySet()) { oprot.writeString(_iter1509.getKey()); { oprot.writeI32(_iter1509.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1510 : _iter1509.getValue()) { _iter1510.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1511 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map1511.size); long _key1512; Map> _val1513; for (int _i1514 = 0; _i1514 < _map1511.size; ++_i1514) { _key1512 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1515 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1513 = new LinkedHashMap>(2*_map1515.size); String _key1516; Set _val1517; for (int _i1518 = 0; _i1518 < _map1515.size; ++_i1518) { _key1516 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1519 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1517 = new LinkedHashSet(2*_set1519.size); com.cinchapi.concourse.thrift.TObject _elem1520; for (int _i1521 = 0; _i1521 < _set1519.size; ++_i1521) { _elem1520 = new com.cinchapi.concourse.thrift.TObject(); _elem1520.read(iprot); _val1517.add(_elem1520); } } _val1513.put(_key1516, _val1517); } } struct.success.put(_key1512, _val1513); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectCclTimestr_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("selectCclTimestr_args"); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCclTimestr_argsTupleSchemeFactory()); } public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CCL((short)1, "ccl"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // CCL return CCL; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectCclTimestr_args.class, metaDataMap); } public selectCclTimestr_args() { } public selectCclTimestr_args( String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectCclTimestr_args(selectCclTimestr_args other) { if (other.isSetCcl()) { this.ccl = other.ccl; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectCclTimestr_args deepCopy() { return new selectCclTimestr_args(this); } @Override public void clear() { this.ccl = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getCcl() { return this.ccl; } public selectCclTimestr_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public String getTimestamp() { return this.timestamp; } public selectCclTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectCclTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectCclTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectCclTimestr_args) return this.equals((selectCclTimestr_args)that); return false; } public boolean equals(selectCclTimestr_args that) { if (that == null) return false; boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectCclTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectCclTimestr_args("); boolean first = true; sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectCclTimestr_argsStandardScheme getScheme() { return new selectCclTimestr_argsStandardScheme(); } } private static class selectCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCclTimestr_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: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectCclTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectCclTimestr_argsTupleScheme getScheme() { return new selectCclTimestr_argsTupleScheme(); } } private static class selectCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCcl()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectCclTimestr_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("selectCclTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectCclTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(selectCclTimestr_result.class, metaDataMap); } public selectCclTimestr_result() { } public selectCclTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectCclTimestr_result(selectCclTimestr_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public selectCclTimestr_result deepCopy() { return new selectCclTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectCclTimestr_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectCclTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectCclTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectCclTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectCclTimestr_result) return this.equals((selectCclTimestr_result)that); return false; } public boolean equals(selectCclTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(selectCclTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("selectCclTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 selectCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectCclTimestr_resultStandardScheme getScheme() { return new selectCclTimestr_resultStandardScheme(); } } private static class selectCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectCclTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map1522 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map1522.size); long _key1523; Map> _val1524; for (int _i1525 = 0; _i1525 < _map1522.size; ++_i1525) { _key1523 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1526 = iprot.readMapBegin(); _val1524 = new LinkedHashMap>(2*_map1526.size); String _key1527; Set _val1528; for (int _i1529 = 0; _i1529 < _map1526.size; ++_i1529) { _key1527 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1530 = iprot.readSetBegin(); _val1528 = new LinkedHashSet(2*_set1530.size); com.cinchapi.concourse.thrift.TObject _elem1531; for (int _i1532 = 0; _i1532 < _set1530.size; ++_i1532) { _elem1531 = new com.cinchapi.concourse.thrift.TObject(); _elem1531.read(iprot); _val1528.add(_elem1531); } iprot.readSetEnd(); } _val1524.put(_key1527, _val1528); } iprot.readMapEnd(); } struct.success.put(_key1523, _val1524); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, selectCclTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1533 : struct.success.entrySet()) { oprot.writeI64(_iter1533.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1533.getValue().size())); for (Map.Entry> _iter1534 : _iter1533.getValue().entrySet()) { oprot.writeString(_iter1534.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1534.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1535 : _iter1534.getValue()) { _iter1535.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectCclTimestr_resultTupleScheme getScheme() { return new selectCclTimestr_resultTupleScheme(); } } private static class selectCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1536 : struct.success.entrySet()) { oprot.writeI64(_iter1536.getKey()); { oprot.writeI32(_iter1536.getValue().size()); for (Map.Entry> _iter1537 : _iter1536.getValue().entrySet()) { oprot.writeString(_iter1537.getKey()); { oprot.writeI32(_iter1537.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1538 : _iter1537.getValue()) { _iter1538.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1539 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map1539.size); long _key1540; Map> _val1541; for (int _i1542 = 0; _i1542 < _map1539.size; ++_i1542) { _key1540 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1543 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1541 = new LinkedHashMap>(2*_map1543.size); String _key1544; Set _val1545; for (int _i1546 = 0; _i1546 < _map1543.size; ++_i1546) { _key1544 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1547 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1545 = new LinkedHashSet(2*_set1547.size); com.cinchapi.concourse.thrift.TObject _elem1548; for (int _i1549 = 0; _i1549 < _set1547.size; ++_i1549) { _elem1548 = new com.cinchapi.concourse.thrift.TObject(); _elem1548.read(iprot); _val1545.add(_elem1548); } } _val1541.put(_key1544, _val1545); } } struct.success.put(_key1540, _val1541); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeyCriteria_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("selectKeyCriteria_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCriteria_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CRITERIA((short)2, "criteria"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeyCriteria_args.class, metaDataMap); } public selectKeyCriteria_args() { } public selectKeyCriteria_args( String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyCriteria_args(selectKeyCriteria_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyCriteria_args deepCopy() { return new selectKeyCriteria_args(this); } @Override public void clear() { this.key = null; this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyCriteria_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public selectKeyCriteria_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyCriteria_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyCriteria_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyCriteria_args) return this.equals((selectKeyCriteria_args)that); return false; } public boolean equals(selectKeyCriteria_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyCriteria_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeyCriteria_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeyCriteria_argsStandardSchemeFactory implements SchemeFactory { public selectKeyCriteria_argsStandardScheme getScheme() { return new selectKeyCriteria_argsStandardScheme(); } } private static class selectKeyCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCriteria_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeyCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCriteria_argsTupleSchemeFactory implements SchemeFactory { public selectKeyCriteria_argsTupleScheme getScheme() { return new selectKeyCriteria_argsTupleScheme(); } } private static class selectKeyCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyCriteria_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("selectKeyCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCriteria_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(selectKeyCriteria_result.class, metaDataMap); } public selectKeyCriteria_result() { } public selectKeyCriteria_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public selectKeyCriteria_result(selectKeyCriteria_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public selectKeyCriteria_result deepCopy() { return new selectKeyCriteria_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeyCriteria_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyCriteria_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyCriteria_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyCriteria_result) return this.equals((selectKeyCriteria_result)that); return false; } public boolean equals(selectKeyCriteria_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(selectKeyCriteria_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("selectKeyCriteria_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 selectKeyCriteria_resultStandardSchemeFactory implements SchemeFactory { public selectKeyCriteria_resultStandardScheme getScheme() { return new selectKeyCriteria_resultStandardScheme(); } } private static class selectKeyCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCriteria_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.MAP) { { org.apache.thrift.protocol.TMap _map1550 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map1550.size); long _key1551; Set _val1552; for (int _i1553 = 0; _i1553 < _map1550.size; ++_i1553) { _key1551 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1554 = iprot.readSetBegin(); _val1552 = new LinkedHashSet(2*_set1554.size); com.cinchapi.concourse.thrift.TObject _elem1555; for (int _i1556 = 0; _i1556 < _set1554.size; ++_i1556) { _elem1555 = new com.cinchapi.concourse.thrift.TObject(); _elem1555.read(iprot); _val1552.add(_elem1555); } iprot.readSetEnd(); } struct.success.put(_key1551, _val1552); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, selectKeyCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1557 : struct.success.entrySet()) { oprot.writeI64(_iter1557.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1557.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1558 : _iter1557.getValue()) { _iter1558.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCriteria_resultTupleSchemeFactory implements SchemeFactory { public selectKeyCriteria_resultTupleScheme getScheme() { return new selectKeyCriteria_resultTupleScheme(); } } private static class selectKeyCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1559 : struct.success.entrySet()) { oprot.writeI64(_iter1559.getKey()); { oprot.writeI32(_iter1559.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1560 : _iter1559.getValue()) { _iter1560.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1561 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map1561.size); long _key1562; Set _val1563; for (int _i1564 = 0; _i1564 < _map1561.size; ++_i1564) { _key1562 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1565 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1563 = new LinkedHashSet(2*_set1565.size); com.cinchapi.concourse.thrift.TObject _elem1566; for (int _i1567 = 0; _i1567 < _set1565.size; ++_i1567) { _elem1566 = new com.cinchapi.concourse.thrift.TObject(); _elem1566.read(iprot); _val1563.add(_elem1566); } } struct.success.put(_key1562, _val1563); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class selectKeyCcl_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("selectKeyCcl_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCcl_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CCL((short)2, "ccl"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CCL return CCL; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeyCcl_args.class, metaDataMap); } public selectKeyCcl_args() { } public selectKeyCcl_args( String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyCcl_args(selectKeyCcl_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetCcl()) { this.ccl = other.ccl; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyCcl_args deepCopy() { return new selectKeyCcl_args(this); } @Override public void clear() { this.key = null; this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyCcl_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public String getCcl() { return this.ccl; } public selectKeyCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyCcl_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyCcl_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyCcl_args) return this.equals((selectKeyCcl_args)that); return false; } public boolean equals(selectKeyCcl_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyCcl_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeyCcl_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeyCcl_argsStandardSchemeFactory implements SchemeFactory { public selectKeyCcl_argsStandardScheme getScheme() { return new selectKeyCcl_argsStandardScheme(); } } private static class selectKeyCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCcl_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeyCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCcl_argsTupleSchemeFactory implements SchemeFactory { public selectKeyCcl_argsTupleScheme getScheme() { return new selectKeyCcl_argsTupleScheme(); } } private static class selectKeyCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyCcl_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("selectKeyCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCcl_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(selectKeyCcl_result.class, metaDataMap); } public selectKeyCcl_result() { } public selectKeyCcl_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeyCcl_result(selectKeyCcl_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public selectKeyCcl_result deepCopy() { return new selectKeyCcl_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeyCcl_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyCcl_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyCcl_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeyCcl_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyCcl_result) return this.equals((selectKeyCcl_result)that); return false; } public boolean equals(selectKeyCcl_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(selectKeyCcl_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("selectKeyCcl_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 selectKeyCcl_resultStandardSchemeFactory implements SchemeFactory { public selectKeyCcl_resultStandardScheme getScheme() { return new selectKeyCcl_resultStandardScheme(); } } private static class selectKeyCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCcl_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.MAP) { { org.apache.thrift.protocol.TMap _map1568 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map1568.size); long _key1569; Set _val1570; for (int _i1571 = 0; _i1571 < _map1568.size; ++_i1571) { _key1569 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1572 = iprot.readSetBegin(); _val1570 = new LinkedHashSet(2*_set1572.size); com.cinchapi.concourse.thrift.TObject _elem1573; for (int _i1574 = 0; _i1574 < _set1572.size; ++_i1574) { _elem1573 = new com.cinchapi.concourse.thrift.TObject(); _elem1573.read(iprot); _val1570.add(_elem1573); } iprot.readSetEnd(); } struct.success.put(_key1569, _val1570); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, selectKeyCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1575 : struct.success.entrySet()) { oprot.writeI64(_iter1575.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1575.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1576 : _iter1575.getValue()) { _iter1576.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCcl_resultTupleSchemeFactory implements SchemeFactory { public selectKeyCcl_resultTupleScheme getScheme() { return new selectKeyCcl_resultTupleScheme(); } } private static class selectKeyCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1577 : struct.success.entrySet()) { oprot.writeI64(_iter1577.getKey()); { oprot.writeI32(_iter1577.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1578 : _iter1577.getValue()) { _iter1578.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1579 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map1579.size); long _key1580; Set _val1581; for (int _i1582 = 0; _i1582 < _map1579.size; ++_i1582) { _key1580 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1583 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1581 = new LinkedHashSet(2*_set1583.size); com.cinchapi.concourse.thrift.TObject _elem1584; for (int _i1585 = 0; _i1585 < _set1583.size; ++_i1585) { _elem1584 = new com.cinchapi.concourse.thrift.TObject(); _elem1584.read(iprot); _val1581.add(_elem1584); } } struct.success.put(_key1580, _val1581); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeyCriteriaTime_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("selectKeyCriteriaTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCriteriaTime_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CRITERIA((short)2, "criteria"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeyCriteriaTime_args.class, metaDataMap); } public selectKeyCriteriaTime_args() { } public selectKeyCriteriaTime_args( String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyCriteriaTime_args(selectKeyCriteriaTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyCriteriaTime_args deepCopy() { return new selectKeyCriteriaTime_args(this); } @Override public void clear() { this.key = null; this.criteria = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyCriteriaTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public selectKeyCriteriaTime_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public long getTimestamp() { return this.timestamp; } public selectKeyCriteriaTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyCriteriaTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyCriteriaTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyCriteriaTime_args) return this.equals((selectKeyCriteriaTime_args)that); return false; } public boolean equals(selectKeyCriteriaTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyCriteriaTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeyCriteriaTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeyCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public selectKeyCriteriaTime_argsStandardScheme getScheme() { return new selectKeyCriteriaTime_argsStandardScheme(); } } private static class selectKeyCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCriteriaTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeyCriteriaTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public selectKeyCriteriaTime_argsTupleScheme getScheme() { return new selectKeyCriteriaTime_argsTupleScheme(); } } private static class selectKeyCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyCriteriaTime_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("selectKeyCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCriteriaTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(selectKeyCriteriaTime_result.class, metaDataMap); } public selectKeyCriteriaTime_result() { } public selectKeyCriteriaTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public selectKeyCriteriaTime_result(selectKeyCriteriaTime_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public selectKeyCriteriaTime_result deepCopy() { return new selectKeyCriteriaTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeyCriteriaTime_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyCriteriaTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyCriteriaTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyCriteriaTime_result) return this.equals((selectKeyCriteriaTime_result)that); return false; } public boolean equals(selectKeyCriteriaTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(selectKeyCriteriaTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("selectKeyCriteriaTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 selectKeyCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public selectKeyCriteriaTime_resultStandardScheme getScheme() { return new selectKeyCriteriaTime_resultStandardScheme(); } } private static class selectKeyCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCriteriaTime_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.MAP) { { org.apache.thrift.protocol.TMap _map1586 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map1586.size); long _key1587; Set _val1588; for (int _i1589 = 0; _i1589 < _map1586.size; ++_i1589) { _key1587 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1590 = iprot.readSetBegin(); _val1588 = new LinkedHashSet(2*_set1590.size); com.cinchapi.concourse.thrift.TObject _elem1591; for (int _i1592 = 0; _i1592 < _set1590.size; ++_i1592) { _elem1591 = new com.cinchapi.concourse.thrift.TObject(); _elem1591.read(iprot); _val1588.add(_elem1591); } iprot.readSetEnd(); } struct.success.put(_key1587, _val1588); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, selectKeyCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1593 : struct.success.entrySet()) { oprot.writeI64(_iter1593.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1593.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1594 : _iter1593.getValue()) { _iter1594.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public selectKeyCriteriaTime_resultTupleScheme getScheme() { return new selectKeyCriteriaTime_resultTupleScheme(); } } private static class selectKeyCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1595 : struct.success.entrySet()) { oprot.writeI64(_iter1595.getKey()); { oprot.writeI32(_iter1595.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1596 : _iter1595.getValue()) { _iter1596.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1597 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map1597.size); long _key1598; Set _val1599; for (int _i1600 = 0; _i1600 < _map1597.size; ++_i1600) { _key1598 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1601 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1599 = new LinkedHashSet(2*_set1601.size); com.cinchapi.concourse.thrift.TObject _elem1602; for (int _i1603 = 0; _i1603 < _set1601.size; ++_i1603) { _elem1602 = new com.cinchapi.concourse.thrift.TObject(); _elem1602.read(iprot); _val1599.add(_elem1602); } } struct.success.put(_key1598, _val1599); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class selectKeyCriteriaTimestr_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("selectKeyCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCriteriaTimestr_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CRITERIA((short)2, "criteria"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeyCriteriaTimestr_args.class, metaDataMap); } public selectKeyCriteriaTimestr_args() { } public selectKeyCriteriaTimestr_args( String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyCriteriaTimestr_args(selectKeyCriteriaTimestr_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyCriteriaTimestr_args deepCopy() { return new selectKeyCriteriaTimestr_args(this); } @Override public void clear() { this.key = null; this.criteria = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyCriteriaTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public selectKeyCriteriaTimestr_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public String getTimestamp() { return this.timestamp; } public selectKeyCriteriaTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyCriteriaTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyCriteriaTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyCriteriaTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyCriteriaTimestr_args) return this.equals((selectKeyCriteriaTimestr_args)that); return false; } public boolean equals(selectKeyCriteriaTimestr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyCriteriaTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeyCriteriaTimestr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeyCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectKeyCriteriaTimestr_argsStandardScheme getScheme() { return new selectKeyCriteriaTimestr_argsStandardScheme(); } } private static class selectKeyCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCriteriaTimestr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectKeyCriteriaTimestr_argsTupleScheme getScheme() { return new selectKeyCriteriaTimestr_argsTupleScheme(); } } private static class selectKeyCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyCriteriaTimestr_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("selectKeyCriteriaTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCriteriaTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(selectKeyCriteriaTimestr_result.class, metaDataMap); } public selectKeyCriteriaTimestr_result() { } public selectKeyCriteriaTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeyCriteriaTimestr_result(selectKeyCriteriaTimestr_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public selectKeyCriteriaTimestr_result deepCopy() { return new selectKeyCriteriaTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeyCriteriaTimestr_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyCriteriaTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyCriteriaTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeyCriteriaTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyCriteriaTimestr_result) return this.equals((selectKeyCriteriaTimestr_result)that); return false; } public boolean equals(selectKeyCriteriaTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(selectKeyCriteriaTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("selectKeyCriteriaTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 selectKeyCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectKeyCriteriaTimestr_resultStandardScheme getScheme() { return new selectKeyCriteriaTimestr_resultStandardScheme(); } } private static class selectKeyCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCriteriaTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map1604 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map1604.size); long _key1605; Set _val1606; for (int _i1607 = 0; _i1607 < _map1604.size; ++_i1607) { _key1605 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1608 = iprot.readSetBegin(); _val1606 = new LinkedHashSet(2*_set1608.size); com.cinchapi.concourse.thrift.TObject _elem1609; for (int _i1610 = 0; _i1610 < _set1608.size; ++_i1610) { _elem1609 = new com.cinchapi.concourse.thrift.TObject(); _elem1609.read(iprot); _val1606.add(_elem1609); } iprot.readSetEnd(); } struct.success.put(_key1605, _val1606); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, selectKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1611 : struct.success.entrySet()) { oprot.writeI64(_iter1611.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1611.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1612 : _iter1611.getValue()) { _iter1612.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectKeyCriteriaTimestr_resultTupleScheme getScheme() { return new selectKeyCriteriaTimestr_resultTupleScheme(); } } private static class selectKeyCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1613 : struct.success.entrySet()) { oprot.writeI64(_iter1613.getKey()); { oprot.writeI32(_iter1613.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1614 : _iter1613.getValue()) { _iter1614.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1615 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map1615.size); long _key1616; Set _val1617; for (int _i1618 = 0; _i1618 < _map1615.size; ++_i1618) { _key1616 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1619 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1617 = new LinkedHashSet(2*_set1619.size); com.cinchapi.concourse.thrift.TObject _elem1620; for (int _i1621 = 0; _i1621 < _set1619.size; ++_i1621) { _elem1620 = new com.cinchapi.concourse.thrift.TObject(); _elem1620.read(iprot); _val1617.add(_elem1620); } } struct.success.put(_key1616, _val1617); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeyCclTime_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("selectKeyCclTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCclTime_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CCL((short)2, "ccl"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeyCclTime_args.class, metaDataMap); } public selectKeyCclTime_args() { } public selectKeyCclTime_args( String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyCclTime_args(selectKeyCclTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetCcl()) { this.ccl = other.ccl; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyCclTime_args deepCopy() { return new selectKeyCclTime_args(this); } @Override public void clear() { this.key = null; this.ccl = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyCclTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public String getCcl() { return this.ccl; } public selectKeyCclTime_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public long getTimestamp() { return this.timestamp; } public selectKeyCclTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyCclTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyCclTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyCclTime_args) return this.equals((selectKeyCclTime_args)that); return false; } public boolean equals(selectKeyCclTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyCclTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeyCclTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeyCclTime_argsStandardSchemeFactory implements SchemeFactory { public selectKeyCclTime_argsStandardScheme getScheme() { return new selectKeyCclTime_argsStandardScheme(); } } private static class selectKeyCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCclTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeyCclTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCclTime_argsTupleSchemeFactory implements SchemeFactory { public selectKeyCclTime_argsTupleScheme getScheme() { return new selectKeyCclTime_argsTupleScheme(); } } private static class selectKeyCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyCclTime_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("selectKeyCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCclTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(selectKeyCclTime_result.class, metaDataMap); } public selectKeyCclTime_result() { } public selectKeyCclTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeyCclTime_result(selectKeyCclTime_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public selectKeyCclTime_result deepCopy() { return new selectKeyCclTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeyCclTime_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyCclTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyCclTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeyCclTime_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyCclTime_result) return this.equals((selectKeyCclTime_result)that); return false; } public boolean equals(selectKeyCclTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(selectKeyCclTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("selectKeyCclTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 selectKeyCclTime_resultStandardSchemeFactory implements SchemeFactory { public selectKeyCclTime_resultStandardScheme getScheme() { return new selectKeyCclTime_resultStandardScheme(); } } private static class selectKeyCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCclTime_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.MAP) { { org.apache.thrift.protocol.TMap _map1622 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map1622.size); long _key1623; Set _val1624; for (int _i1625 = 0; _i1625 < _map1622.size; ++_i1625) { _key1623 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1626 = iprot.readSetBegin(); _val1624 = new LinkedHashSet(2*_set1626.size); com.cinchapi.concourse.thrift.TObject _elem1627; for (int _i1628 = 0; _i1628 < _set1626.size; ++_i1628) { _elem1627 = new com.cinchapi.concourse.thrift.TObject(); _elem1627.read(iprot); _val1624.add(_elem1627); } iprot.readSetEnd(); } struct.success.put(_key1623, _val1624); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, selectKeyCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1629 : struct.success.entrySet()) { oprot.writeI64(_iter1629.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1629.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1630 : _iter1629.getValue()) { _iter1630.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCclTime_resultTupleSchemeFactory implements SchemeFactory { public selectKeyCclTime_resultTupleScheme getScheme() { return new selectKeyCclTime_resultTupleScheme(); } } private static class selectKeyCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1631 : struct.success.entrySet()) { oprot.writeI64(_iter1631.getKey()); { oprot.writeI32(_iter1631.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1632 : _iter1631.getValue()) { _iter1632.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1633 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map1633.size); long _key1634; Set _val1635; for (int _i1636 = 0; _i1636 < _map1633.size; ++_i1636) { _key1634 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1637 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1635 = new LinkedHashSet(2*_set1637.size); com.cinchapi.concourse.thrift.TObject _elem1638; for (int _i1639 = 0; _i1639 < _set1637.size; ++_i1639) { _elem1638 = new com.cinchapi.concourse.thrift.TObject(); _elem1638.read(iprot); _val1635.add(_elem1638); } } struct.success.put(_key1634, _val1635); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeyCclTimestr_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("selectKeyCclTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCclTimestr_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CCL((short)2, "ccl"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeyCclTimestr_args.class, metaDataMap); } public selectKeyCclTimestr_args() { } public selectKeyCclTimestr_args( String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeyCclTimestr_args(selectKeyCclTimestr_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetCcl()) { this.ccl = other.ccl; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeyCclTimestr_args deepCopy() { return new selectKeyCclTimestr_args(this); } @Override public void clear() { this.key = null; this.ccl = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public selectKeyCclTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public String getCcl() { return this.ccl; } public selectKeyCclTimestr_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public String getTimestamp() { return this.timestamp; } public selectKeyCclTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeyCclTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeyCclTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeyCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyCclTimestr_args) return this.equals((selectKeyCclTimestr_args)that); return false; } public boolean equals(selectKeyCclTimestr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeyCclTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeyCclTimestr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeyCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectKeyCclTimestr_argsStandardScheme getScheme() { return new selectKeyCclTimestr_argsStandardScheme(); } } private static class selectKeyCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCclTimestr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeyCclTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectKeyCclTimestr_argsTupleScheme getScheme() { return new selectKeyCclTimestr_argsTupleScheme(); } } private static class selectKeyCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeyCclTimestr_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("selectKeyCclTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeyCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeyCclTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(selectKeyCclTimestr_result.class, metaDataMap); } public selectKeyCclTimestr_result() { } public selectKeyCclTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeyCclTimestr_result(selectKeyCclTimestr_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public selectKeyCclTimestr_result deepCopy() { return new selectKeyCclTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public selectKeyCclTimestr_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeyCclTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeyCclTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeyCclTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeyCclTimestr_result) return this.equals((selectKeyCclTimestr_result)that); return false; } public boolean equals(selectKeyCclTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(selectKeyCclTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("selectKeyCclTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 selectKeyCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectKeyCclTimestr_resultStandardScheme getScheme() { return new selectKeyCclTimestr_resultStandardScheme(); } } private static class selectKeyCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeyCclTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map1640 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map1640.size); long _key1641; Set _val1642; for (int _i1643 = 0; _i1643 < _map1640.size; ++_i1643) { _key1641 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1644 = iprot.readSetBegin(); _val1642 = new LinkedHashSet(2*_set1644.size); com.cinchapi.concourse.thrift.TObject _elem1645; for (int _i1646 = 0; _i1646 < _set1644.size; ++_i1646) { _elem1645 = new com.cinchapi.concourse.thrift.TObject(); _elem1645.read(iprot); _val1642.add(_elem1645); } iprot.readSetEnd(); } struct.success.put(_key1641, _val1642); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, selectKeyCclTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter1647 : struct.success.entrySet()) { oprot.writeI64(_iter1647.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1647.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1648 : _iter1647.getValue()) { _iter1648.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeyCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectKeyCclTimestr_resultTupleScheme getScheme() { return new selectKeyCclTimestr_resultTupleScheme(); } } private static class selectKeyCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeyCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1649 : struct.success.entrySet()) { oprot.writeI64(_iter1649.getKey()); { oprot.writeI32(_iter1649.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1650 : _iter1649.getValue()) { _iter1650.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeyCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1651 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map1651.size); long _key1652; Set _val1653; for (int _i1654 = 0; _i1654 < _map1651.size; ++_i1654) { _key1652 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set1655 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1653 = new LinkedHashSet(2*_set1655.size); com.cinchapi.concourse.thrift.TObject _elem1656; for (int _i1657 = 0; _i1657 < _set1655.size; ++_i1657) { _elem1656 = new com.cinchapi.concourse.thrift.TObject(); _elem1656.read(iprot); _val1653.add(_elem1656); } } struct.success.put(_key1652, _val1653); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeysCriteria_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("selectKeysCriteria_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCriteria_argsTupleSchemeFactory()); } public List keys; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), CRITERIA((short)2, "criteria"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // CRITERIA return CRITERIA; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeysCriteria_args.class, metaDataMap); } public selectKeysCriteria_args() { } public selectKeysCriteria_args( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysCriteria_args(selectKeysCriteria_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysCriteria_args deepCopy() { return new selectKeysCriteria_args(this); } @Override public void clear() { this.keys = null; this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysCriteria_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public selectKeysCriteria_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysCriteria_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysCriteria_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysCriteria_args) return this.equals((selectKeysCriteria_args)that); return false; } public boolean equals(selectKeysCriteria_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysCriteria_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeysCriteria_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeysCriteria_argsStandardSchemeFactory implements SchemeFactory { public selectKeysCriteria_argsStandardScheme getScheme() { return new selectKeysCriteria_argsStandardScheme(); } } private static class selectKeysCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCriteria_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1658 = iprot.readListBegin(); struct.keys = new ArrayList(_list1658.size); String _elem1659; for (int _i1660 = 0; _i1660 < _list1658.size; ++_i1660) { _elem1659 = iprot.readString(); struct.keys.add(_elem1659); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeysCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1661 : struct.keys) { oprot.writeString(_iter1661); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCriteria_argsTupleSchemeFactory implements SchemeFactory { public selectKeysCriteria_argsTupleScheme getScheme() { return new selectKeysCriteria_argsTupleScheme(); } } private static class selectKeysCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1662 : struct.keys) { oprot.writeString(_iter1662); } } } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list1663 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1663.size); String _elem1664; for (int _i1665 = 0; _i1665 < _list1663.size; ++_i1665) { _elem1664 = iprot.readString(); struct.keys.add(_elem1664); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysCriteria_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("selectKeysCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCriteria_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(selectKeysCriteria_result.class, metaDataMap); } public selectKeysCriteria_result() { } public selectKeysCriteria_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public selectKeysCriteria_result(selectKeysCriteria_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public selectKeysCriteria_result deepCopy() { return new selectKeysCriteria_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectKeysCriteria_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysCriteria_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysCriteria_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysCriteria_result) return this.equals((selectKeysCriteria_result)that); return false; } public boolean equals(selectKeysCriteria_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(selectKeysCriteria_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("selectKeysCriteria_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 selectKeysCriteria_resultStandardSchemeFactory implements SchemeFactory { public selectKeysCriteria_resultStandardScheme getScheme() { return new selectKeysCriteria_resultStandardScheme(); } } private static class selectKeysCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCriteria_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.MAP) { { org.apache.thrift.protocol.TMap _map1666 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map1666.size); long _key1667; Map> _val1668; for (int _i1669 = 0; _i1669 < _map1666.size; ++_i1669) { _key1667 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1670 = iprot.readMapBegin(); _val1668 = new LinkedHashMap>(2*_map1670.size); String _key1671; Set _val1672; for (int _i1673 = 0; _i1673 < _map1670.size; ++_i1673) { _key1671 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1674 = iprot.readSetBegin(); _val1672 = new LinkedHashSet(2*_set1674.size); com.cinchapi.concourse.thrift.TObject _elem1675; for (int _i1676 = 0; _i1676 < _set1674.size; ++_i1676) { _elem1675 = new com.cinchapi.concourse.thrift.TObject(); _elem1675.read(iprot); _val1672.add(_elem1675); } iprot.readSetEnd(); } _val1668.put(_key1671, _val1672); } iprot.readMapEnd(); } struct.success.put(_key1667, _val1668); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, selectKeysCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1677 : struct.success.entrySet()) { oprot.writeI64(_iter1677.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1677.getValue().size())); for (Map.Entry> _iter1678 : _iter1677.getValue().entrySet()) { oprot.writeString(_iter1678.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1678.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1679 : _iter1678.getValue()) { _iter1679.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCriteria_resultTupleSchemeFactory implements SchemeFactory { public selectKeysCriteria_resultTupleScheme getScheme() { return new selectKeysCriteria_resultTupleScheme(); } } private static class selectKeysCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1680 : struct.success.entrySet()) { oprot.writeI64(_iter1680.getKey()); { oprot.writeI32(_iter1680.getValue().size()); for (Map.Entry> _iter1681 : _iter1680.getValue().entrySet()) { oprot.writeString(_iter1681.getKey()); { oprot.writeI32(_iter1681.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1682 : _iter1681.getValue()) { _iter1682.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1683 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map1683.size); long _key1684; Map> _val1685; for (int _i1686 = 0; _i1686 < _map1683.size; ++_i1686) { _key1684 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1687 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1685 = new LinkedHashMap>(2*_map1687.size); String _key1688; Set _val1689; for (int _i1690 = 0; _i1690 < _map1687.size; ++_i1690) { _key1688 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1691 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1689 = new LinkedHashSet(2*_set1691.size); com.cinchapi.concourse.thrift.TObject _elem1692; for (int _i1693 = 0; _i1693 < _set1691.size; ++_i1693) { _elem1692 = new com.cinchapi.concourse.thrift.TObject(); _elem1692.read(iprot); _val1689.add(_elem1692); } } _val1685.put(_key1688, _val1689); } } struct.success.put(_key1684, _val1685); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class selectKeysCcl_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("selectKeysCcl_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCcl_argsTupleSchemeFactory()); } public List keys; // required public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), CCL((short)2, "ccl"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // CCL return CCL; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeysCcl_args.class, metaDataMap); } public selectKeysCcl_args() { } public selectKeysCcl_args( List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysCcl_args(selectKeysCcl_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetCcl()) { this.ccl = other.ccl; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysCcl_args deepCopy() { return new selectKeysCcl_args(this); } @Override public void clear() { this.keys = null; this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysCcl_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public String getCcl() { return this.ccl; } public selectKeysCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysCcl_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysCcl_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysCcl_args) return this.equals((selectKeysCcl_args)that); return false; } public boolean equals(selectKeysCcl_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysCcl_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeysCcl_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeysCcl_argsStandardSchemeFactory implements SchemeFactory { public selectKeysCcl_argsStandardScheme getScheme() { return new selectKeysCcl_argsStandardScheme(); } } private static class selectKeysCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCcl_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1694 = iprot.readListBegin(); struct.keys = new ArrayList(_list1694.size); String _elem1695; for (int _i1696 = 0; _i1696 < _list1694.size; ++_i1696) { _elem1695 = iprot.readString(); struct.keys.add(_elem1695); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeysCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1697 : struct.keys) { oprot.writeString(_iter1697); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCcl_argsTupleSchemeFactory implements SchemeFactory { public selectKeysCcl_argsTupleScheme getScheme() { return new selectKeysCcl_argsTupleScheme(); } } private static class selectKeysCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1698 : struct.keys) { oprot.writeString(_iter1698); } } } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list1699 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1699.size); String _elem1700; for (int _i1701 = 0; _i1701 < _list1699.size; ++_i1701) { _elem1700 = iprot.readString(); struct.keys.add(_elem1700); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysCcl_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("selectKeysCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCcl_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(selectKeysCcl_result.class, metaDataMap); } public selectKeysCcl_result() { } public selectKeysCcl_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeysCcl_result(selectKeysCcl_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public selectKeysCcl_result deepCopy() { return new selectKeysCcl_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectKeysCcl_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysCcl_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysCcl_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeysCcl_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysCcl_result) return this.equals((selectKeysCcl_result)that); return false; } public boolean equals(selectKeysCcl_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(selectKeysCcl_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("selectKeysCcl_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 selectKeysCcl_resultStandardSchemeFactory implements SchemeFactory { public selectKeysCcl_resultStandardScheme getScheme() { return new selectKeysCcl_resultStandardScheme(); } } private static class selectKeysCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCcl_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.MAP) { { org.apache.thrift.protocol.TMap _map1702 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map1702.size); long _key1703; Map> _val1704; for (int _i1705 = 0; _i1705 < _map1702.size; ++_i1705) { _key1703 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1706 = iprot.readMapBegin(); _val1704 = new LinkedHashMap>(2*_map1706.size); String _key1707; Set _val1708; for (int _i1709 = 0; _i1709 < _map1706.size; ++_i1709) { _key1707 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1710 = iprot.readSetBegin(); _val1708 = new LinkedHashSet(2*_set1710.size); com.cinchapi.concourse.thrift.TObject _elem1711; for (int _i1712 = 0; _i1712 < _set1710.size; ++_i1712) { _elem1711 = new com.cinchapi.concourse.thrift.TObject(); _elem1711.read(iprot); _val1708.add(_elem1711); } iprot.readSetEnd(); } _val1704.put(_key1707, _val1708); } iprot.readMapEnd(); } struct.success.put(_key1703, _val1704); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, selectKeysCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1713 : struct.success.entrySet()) { oprot.writeI64(_iter1713.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1713.getValue().size())); for (Map.Entry> _iter1714 : _iter1713.getValue().entrySet()) { oprot.writeString(_iter1714.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1714.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1715 : _iter1714.getValue()) { _iter1715.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCcl_resultTupleSchemeFactory implements SchemeFactory { public selectKeysCcl_resultTupleScheme getScheme() { return new selectKeysCcl_resultTupleScheme(); } } private static class selectKeysCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1716 : struct.success.entrySet()) { oprot.writeI64(_iter1716.getKey()); { oprot.writeI32(_iter1716.getValue().size()); for (Map.Entry> _iter1717 : _iter1716.getValue().entrySet()) { oprot.writeString(_iter1717.getKey()); { oprot.writeI32(_iter1717.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1718 : _iter1717.getValue()) { _iter1718.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1719 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map1719.size); long _key1720; Map> _val1721; for (int _i1722 = 0; _i1722 < _map1719.size; ++_i1722) { _key1720 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1723 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1721 = new LinkedHashMap>(2*_map1723.size); String _key1724; Set _val1725; for (int _i1726 = 0; _i1726 < _map1723.size; ++_i1726) { _key1724 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1727 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1725 = new LinkedHashSet(2*_set1727.size); com.cinchapi.concourse.thrift.TObject _elem1728; for (int _i1729 = 0; _i1729 < _set1727.size; ++_i1729) { _elem1728 = new com.cinchapi.concourse.thrift.TObject(); _elem1728.read(iprot); _val1725.add(_elem1728); } } _val1721.put(_key1724, _val1725); } } struct.success.put(_key1720, _val1721); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeysCriteriaTime_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("selectKeysCriteriaTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCriteriaTime_argsTupleSchemeFactory()); } public List keys; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), CRITERIA((short)2, "criteria"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeysCriteriaTime_args.class, metaDataMap); } public selectKeysCriteriaTime_args() { } public selectKeysCriteriaTime_args( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysCriteriaTime_args(selectKeysCriteriaTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysCriteriaTime_args deepCopy() { return new selectKeysCriteriaTime_args(this); } @Override public void clear() { this.keys = null; this.criteria = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysCriteriaTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public selectKeysCriteriaTime_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public long getTimestamp() { return this.timestamp; } public selectKeysCriteriaTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysCriteriaTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysCriteriaTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysCriteriaTime_args) return this.equals((selectKeysCriteriaTime_args)that); return false; } public boolean equals(selectKeysCriteriaTime_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysCriteriaTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeysCriteriaTime_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeysCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public selectKeysCriteriaTime_argsStandardScheme getScheme() { return new selectKeysCriteriaTime_argsStandardScheme(); } } private static class selectKeysCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCriteriaTime_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1730 = iprot.readListBegin(); struct.keys = new ArrayList(_list1730.size); String _elem1731; for (int _i1732 = 0; _i1732 < _list1730.size; ++_i1732) { _elem1731 = iprot.readString(); struct.keys.add(_elem1731); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeysCriteriaTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1733 : struct.keys) { oprot.writeString(_iter1733); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public selectKeysCriteriaTime_argsTupleScheme getScheme() { return new selectKeysCriteriaTime_argsTupleScheme(); } } private static class selectKeysCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1734 : struct.keys) { oprot.writeString(_iter1734); } } } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list1735 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1735.size); String _elem1736; for (int _i1737 = 0; _i1737 < _list1735.size; ++_i1737) { _elem1736 = iprot.readString(); struct.keys.add(_elem1736); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysCriteriaTime_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("selectKeysCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCriteriaTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(selectKeysCriteriaTime_result.class, metaDataMap); } public selectKeysCriteriaTime_result() { } public selectKeysCriteriaTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public selectKeysCriteriaTime_result(selectKeysCriteriaTime_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public selectKeysCriteriaTime_result deepCopy() { return new selectKeysCriteriaTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectKeysCriteriaTime_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysCriteriaTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysCriteriaTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysCriteriaTime_result) return this.equals((selectKeysCriteriaTime_result)that); return false; } public boolean equals(selectKeysCriteriaTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(selectKeysCriteriaTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("selectKeysCriteriaTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 selectKeysCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public selectKeysCriteriaTime_resultStandardScheme getScheme() { return new selectKeysCriteriaTime_resultStandardScheme(); } } private static class selectKeysCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCriteriaTime_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.MAP) { { org.apache.thrift.protocol.TMap _map1738 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map1738.size); long _key1739; Map> _val1740; for (int _i1741 = 0; _i1741 < _map1738.size; ++_i1741) { _key1739 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1742 = iprot.readMapBegin(); _val1740 = new LinkedHashMap>(2*_map1742.size); String _key1743; Set _val1744; for (int _i1745 = 0; _i1745 < _map1742.size; ++_i1745) { _key1743 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1746 = iprot.readSetBegin(); _val1744 = new LinkedHashSet(2*_set1746.size); com.cinchapi.concourse.thrift.TObject _elem1747; for (int _i1748 = 0; _i1748 < _set1746.size; ++_i1748) { _elem1747 = new com.cinchapi.concourse.thrift.TObject(); _elem1747.read(iprot); _val1744.add(_elem1747); } iprot.readSetEnd(); } _val1740.put(_key1743, _val1744); } iprot.readMapEnd(); } struct.success.put(_key1739, _val1740); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, selectKeysCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1749 : struct.success.entrySet()) { oprot.writeI64(_iter1749.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1749.getValue().size())); for (Map.Entry> _iter1750 : _iter1749.getValue().entrySet()) { oprot.writeString(_iter1750.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1750.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1751 : _iter1750.getValue()) { _iter1751.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public selectKeysCriteriaTime_resultTupleScheme getScheme() { return new selectKeysCriteriaTime_resultTupleScheme(); } } private static class selectKeysCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1752 : struct.success.entrySet()) { oprot.writeI64(_iter1752.getKey()); { oprot.writeI32(_iter1752.getValue().size()); for (Map.Entry> _iter1753 : _iter1752.getValue().entrySet()) { oprot.writeString(_iter1753.getKey()); { oprot.writeI32(_iter1753.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1754 : _iter1753.getValue()) { _iter1754.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1755 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map1755.size); long _key1756; Map> _val1757; for (int _i1758 = 0; _i1758 < _map1755.size; ++_i1758) { _key1756 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1759 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1757 = new LinkedHashMap>(2*_map1759.size); String _key1760; Set _val1761; for (int _i1762 = 0; _i1762 < _map1759.size; ++_i1762) { _key1760 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1763 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1761 = new LinkedHashSet(2*_set1763.size); com.cinchapi.concourse.thrift.TObject _elem1764; for (int _i1765 = 0; _i1765 < _set1763.size; ++_i1765) { _elem1764 = new com.cinchapi.concourse.thrift.TObject(); _elem1764.read(iprot); _val1761.add(_elem1764); } } _val1757.put(_key1760, _val1761); } } struct.success.put(_key1756, _val1757); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class selectKeysCriteriaTimestr_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("selectKeysCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCriteriaTimestr_argsTupleSchemeFactory()); } public List keys; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), CRITERIA((short)2, "criteria"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeysCriteriaTimestr_args.class, metaDataMap); } public selectKeysCriteriaTimestr_args() { } public selectKeysCriteriaTimestr_args( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysCriteriaTimestr_args(selectKeysCriteriaTimestr_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysCriteriaTimestr_args deepCopy() { return new selectKeysCriteriaTimestr_args(this); } @Override public void clear() { this.keys = null; this.criteria = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysCriteriaTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public selectKeysCriteriaTimestr_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public String getTimestamp() { return this.timestamp; } public selectKeysCriteriaTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysCriteriaTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysCriteriaTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysCriteriaTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysCriteriaTimestr_args) return this.equals((selectKeysCriteriaTimestr_args)that); return false; } public boolean equals(selectKeysCriteriaTimestr_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysCriteriaTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeysCriteriaTimestr_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeysCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectKeysCriteriaTimestr_argsStandardScheme getScheme() { return new selectKeysCriteriaTimestr_argsStandardScheme(); } } private static class selectKeysCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCriteriaTimestr_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1766 = iprot.readListBegin(); struct.keys = new ArrayList(_list1766.size); String _elem1767; for (int _i1768 = 0; _i1768 < _list1766.size; ++_i1768) { _elem1767 = iprot.readString(); struct.keys.add(_elem1767); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1769 : struct.keys) { oprot.writeString(_iter1769); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectKeysCriteriaTimestr_argsTupleScheme getScheme() { return new selectKeysCriteriaTimestr_argsTupleScheme(); } } private static class selectKeysCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1770 : struct.keys) { oprot.writeString(_iter1770); } } } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list1771 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1771.size); String _elem1772; for (int _i1773 = 0; _i1773 < _list1771.size; ++_i1773) { _elem1772 = iprot.readString(); struct.keys.add(_elem1772); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysCriteriaTimestr_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("selectKeysCriteriaTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCriteriaTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(selectKeysCriteriaTimestr_result.class, metaDataMap); } public selectKeysCriteriaTimestr_result() { } public selectKeysCriteriaTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeysCriteriaTimestr_result(selectKeysCriteriaTimestr_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public selectKeysCriteriaTimestr_result deepCopy() { return new selectKeysCriteriaTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectKeysCriteriaTimestr_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysCriteriaTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysCriteriaTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeysCriteriaTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysCriteriaTimestr_result) return this.equals((selectKeysCriteriaTimestr_result)that); return false; } public boolean equals(selectKeysCriteriaTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(selectKeysCriteriaTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("selectKeysCriteriaTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 selectKeysCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectKeysCriteriaTimestr_resultStandardScheme getScheme() { return new selectKeysCriteriaTimestr_resultStandardScheme(); } } private static class selectKeysCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCriteriaTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map1774 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map1774.size); long _key1775; Map> _val1776; for (int _i1777 = 0; _i1777 < _map1774.size; ++_i1777) { _key1775 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1778 = iprot.readMapBegin(); _val1776 = new LinkedHashMap>(2*_map1778.size); String _key1779; Set _val1780; for (int _i1781 = 0; _i1781 < _map1778.size; ++_i1781) { _key1779 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1782 = iprot.readSetBegin(); _val1780 = new LinkedHashSet(2*_set1782.size); com.cinchapi.concourse.thrift.TObject _elem1783; for (int _i1784 = 0; _i1784 < _set1782.size; ++_i1784) { _elem1783 = new com.cinchapi.concourse.thrift.TObject(); _elem1783.read(iprot); _val1780.add(_elem1783); } iprot.readSetEnd(); } _val1776.put(_key1779, _val1780); } iprot.readMapEnd(); } struct.success.put(_key1775, _val1776); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, selectKeysCriteriaTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1785 : struct.success.entrySet()) { oprot.writeI64(_iter1785.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1785.getValue().size())); for (Map.Entry> _iter1786 : _iter1785.getValue().entrySet()) { oprot.writeString(_iter1786.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1786.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1787 : _iter1786.getValue()) { _iter1787.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectKeysCriteriaTimestr_resultTupleScheme getScheme() { return new selectKeysCriteriaTimestr_resultTupleScheme(); } } private static class selectKeysCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1788 : struct.success.entrySet()) { oprot.writeI64(_iter1788.getKey()); { oprot.writeI32(_iter1788.getValue().size()); for (Map.Entry> _iter1789 : _iter1788.getValue().entrySet()) { oprot.writeString(_iter1789.getKey()); { oprot.writeI32(_iter1789.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1790 : _iter1789.getValue()) { _iter1790.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1791 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map1791.size); long _key1792; Map> _val1793; for (int _i1794 = 0; _i1794 < _map1791.size; ++_i1794) { _key1792 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1795 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1793 = new LinkedHashMap>(2*_map1795.size); String _key1796; Set _val1797; for (int _i1798 = 0; _i1798 < _map1795.size; ++_i1798) { _key1796 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1799 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1797 = new LinkedHashSet(2*_set1799.size); com.cinchapi.concourse.thrift.TObject _elem1800; for (int _i1801 = 0; _i1801 < _set1799.size; ++_i1801) { _elem1800 = new com.cinchapi.concourse.thrift.TObject(); _elem1800.read(iprot); _val1797.add(_elem1800); } } _val1793.put(_key1796, _val1797); } } struct.success.put(_key1792, _val1793); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeysCclTime_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("selectKeysCclTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCclTime_argsTupleSchemeFactory()); } public List keys; // required public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), CCL((short)2, "ccl"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeysCclTime_args.class, metaDataMap); } public selectKeysCclTime_args() { } public selectKeysCclTime_args( List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysCclTime_args(selectKeysCclTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetCcl()) { this.ccl = other.ccl; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysCclTime_args deepCopy() { return new selectKeysCclTime_args(this); } @Override public void clear() { this.keys = null; this.ccl = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysCclTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public String getCcl() { return this.ccl; } public selectKeysCclTime_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public long getTimestamp() { return this.timestamp; } public selectKeysCclTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysCclTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysCclTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysCclTime_args) return this.equals((selectKeysCclTime_args)that); return false; } public boolean equals(selectKeysCclTime_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysCclTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeysCclTime_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeysCclTime_argsStandardSchemeFactory implements SchemeFactory { public selectKeysCclTime_argsStandardScheme getScheme() { return new selectKeysCclTime_argsStandardScheme(); } } private static class selectKeysCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCclTime_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1802 = iprot.readListBegin(); struct.keys = new ArrayList(_list1802.size); String _elem1803; for (int _i1804 = 0; _i1804 < _list1802.size; ++_i1804) { _elem1803 = iprot.readString(); struct.keys.add(_elem1803); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeysCclTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1805 : struct.keys) { oprot.writeString(_iter1805); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCclTime_argsTupleSchemeFactory implements SchemeFactory { public selectKeysCclTime_argsTupleScheme getScheme() { return new selectKeysCclTime_argsTupleScheme(); } } private static class selectKeysCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1806 : struct.keys) { oprot.writeString(_iter1806); } } } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list1807 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1807.size); String _elem1808; for (int _i1809 = 0; _i1809 < _list1807.size; ++_i1809) { _elem1808 = iprot.readString(); struct.keys.add(_elem1808); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysCclTime_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("selectKeysCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCclTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(selectKeysCclTime_result.class, metaDataMap); } public selectKeysCclTime_result() { } public selectKeysCclTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeysCclTime_result(selectKeysCclTime_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public selectKeysCclTime_result deepCopy() { return new selectKeysCclTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectKeysCclTime_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysCclTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysCclTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeysCclTime_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysCclTime_result) return this.equals((selectKeysCclTime_result)that); return false; } public boolean equals(selectKeysCclTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(selectKeysCclTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("selectKeysCclTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 selectKeysCclTime_resultStandardSchemeFactory implements SchemeFactory { public selectKeysCclTime_resultStandardScheme getScheme() { return new selectKeysCclTime_resultStandardScheme(); } } private static class selectKeysCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCclTime_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.MAP) { { org.apache.thrift.protocol.TMap _map1810 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map1810.size); long _key1811; Map> _val1812; for (int _i1813 = 0; _i1813 < _map1810.size; ++_i1813) { _key1811 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1814 = iprot.readMapBegin(); _val1812 = new LinkedHashMap>(2*_map1814.size); String _key1815; Set _val1816; for (int _i1817 = 0; _i1817 < _map1814.size; ++_i1817) { _key1815 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1818 = iprot.readSetBegin(); _val1816 = new LinkedHashSet(2*_set1818.size); com.cinchapi.concourse.thrift.TObject _elem1819; for (int _i1820 = 0; _i1820 < _set1818.size; ++_i1820) { _elem1819 = new com.cinchapi.concourse.thrift.TObject(); _elem1819.read(iprot); _val1816.add(_elem1819); } iprot.readSetEnd(); } _val1812.put(_key1815, _val1816); } iprot.readMapEnd(); } struct.success.put(_key1811, _val1812); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, selectKeysCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1821 : struct.success.entrySet()) { oprot.writeI64(_iter1821.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1821.getValue().size())); for (Map.Entry> _iter1822 : _iter1821.getValue().entrySet()) { oprot.writeString(_iter1822.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1822.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1823 : _iter1822.getValue()) { _iter1823.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCclTime_resultTupleSchemeFactory implements SchemeFactory { public selectKeysCclTime_resultTupleScheme getScheme() { return new selectKeysCclTime_resultTupleScheme(); } } private static class selectKeysCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1824 : struct.success.entrySet()) { oprot.writeI64(_iter1824.getKey()); { oprot.writeI32(_iter1824.getValue().size()); for (Map.Entry> _iter1825 : _iter1824.getValue().entrySet()) { oprot.writeString(_iter1825.getKey()); { oprot.writeI32(_iter1825.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1826 : _iter1825.getValue()) { _iter1826.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1827 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map1827.size); long _key1828; Map> _val1829; for (int _i1830 = 0; _i1830 < _map1827.size; ++_i1830) { _key1828 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1831 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1829 = new LinkedHashMap>(2*_map1831.size); String _key1832; Set _val1833; for (int _i1834 = 0; _i1834 < _map1831.size; ++_i1834) { _key1832 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1835 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1833 = new LinkedHashSet(2*_set1835.size); com.cinchapi.concourse.thrift.TObject _elem1836; for (int _i1837 = 0; _i1837 < _set1835.size; ++_i1837) { _elem1836 = new com.cinchapi.concourse.thrift.TObject(); _elem1836.read(iprot); _val1833.add(_elem1836); } } _val1829.put(_key1832, _val1833); } } struct.success.put(_key1828, _val1829); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class selectKeysCclTimestr_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("selectKeysCclTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCclTimestr_argsTupleSchemeFactory()); } public List keys; // required public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), CCL((short)2, "ccl"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(selectKeysCclTimestr_args.class, metaDataMap); } public selectKeysCclTimestr_args() { } public selectKeysCclTimestr_args( List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public selectKeysCclTimestr_args(selectKeysCclTimestr_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetCcl()) { this.ccl = other.ccl; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public selectKeysCclTimestr_args deepCopy() { return new selectKeysCclTimestr_args(this); } @Override public void clear() { this.keys = null; this.ccl = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public selectKeysCclTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public String getCcl() { return this.ccl; } public selectKeysCclTimestr_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public String getTimestamp() { return this.timestamp; } public selectKeysCclTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public selectKeysCclTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public selectKeysCclTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public selectKeysCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysCclTimestr_args) return this.equals((selectKeysCclTimestr_args)that); return false; } public boolean equals(selectKeysCclTimestr_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(selectKeysCclTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("selectKeysCclTimestr_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 selectKeysCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public selectKeysCclTimestr_argsStandardScheme getScheme() { return new selectKeysCclTimestr_argsStandardScheme(); } } private static class selectKeysCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCclTimestr_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1838 = iprot.readListBegin(); struct.keys = new ArrayList(_list1838.size); String _elem1839; for (int _i1840 = 0; _i1840 < _list1838.size; ++_i1840) { _elem1839 = iprot.readString(); struct.keys.add(_elem1839); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, selectKeysCclTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1841 : struct.keys) { oprot.writeString(_iter1841); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public selectKeysCclTimestr_argsTupleScheme getScheme() { return new selectKeysCclTimestr_argsTupleScheme(); } } private static class selectKeysCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1842 : struct.keys) { oprot.writeString(_iter1842); } } } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list1843 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1843.size); String _elem1844; for (int _i1845 = 0; _i1845 < _list1843.size; ++_i1845) { _elem1844 = iprot.readString(); struct.keys.add(_elem1844); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class selectKeysCclTimestr_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("selectKeysCclTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new selectKeysCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new selectKeysCclTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(selectKeysCclTimestr_result.class, metaDataMap); } public selectKeysCclTimestr_result() { } public selectKeysCclTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public selectKeysCclTimestr_result(selectKeysCclTimestr_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public selectKeysCclTimestr_result deepCopy() { return new selectKeysCclTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public selectKeysCclTimestr_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public selectKeysCclTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public selectKeysCclTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public selectKeysCclTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof selectKeysCclTimestr_result) return this.equals((selectKeysCclTimestr_result)that); return false; } public boolean equals(selectKeysCclTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(selectKeysCclTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("selectKeysCclTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 selectKeysCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public selectKeysCclTimestr_resultStandardScheme getScheme() { return new selectKeysCclTimestr_resultStandardScheme(); } } private static class selectKeysCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, selectKeysCclTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map1846 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map1846.size); long _key1847; Map> _val1848; for (int _i1849 = 0; _i1849 < _map1846.size; ++_i1849) { _key1847 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1850 = iprot.readMapBegin(); _val1848 = new LinkedHashMap>(2*_map1850.size); String _key1851; Set _val1852; for (int _i1853 = 0; _i1853 < _map1850.size; ++_i1853) { _key1851 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1854 = iprot.readSetBegin(); _val1852 = new LinkedHashSet(2*_set1854.size); com.cinchapi.concourse.thrift.TObject _elem1855; for (int _i1856 = 0; _i1856 < _set1854.size; ++_i1856) { _elem1855 = new com.cinchapi.concourse.thrift.TObject(); _elem1855.read(iprot); _val1852.add(_elem1855); } iprot.readSetEnd(); } _val1848.put(_key1851, _val1852); } iprot.readMapEnd(); } struct.success.put(_key1847, _val1848); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, selectKeysCclTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter1857 : struct.success.entrySet()) { oprot.writeI64(_iter1857.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1857.getValue().size())); for (Map.Entry> _iter1858 : _iter1857.getValue().entrySet()) { oprot.writeString(_iter1858.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1858.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter1859 : _iter1858.getValue()) { _iter1859.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class selectKeysCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public selectKeysCclTimestr_resultTupleScheme getScheme() { return new selectKeysCclTimestr_resultTupleScheme(); } } private static class selectKeysCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, selectKeysCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter1860 : struct.success.entrySet()) { oprot.writeI64(_iter1860.getKey()); { oprot.writeI32(_iter1860.getValue().size()); for (Map.Entry> _iter1861 : _iter1860.getValue().entrySet()) { oprot.writeString(_iter1861.getKey()); { oprot.writeI32(_iter1861.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter1862 : _iter1861.getValue()) { _iter1862.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, selectKeysCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1863 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map1863.size); long _key1864; Map> _val1865; for (int _i1866 = 0; _i1866 < _map1863.size; ++_i1866) { _key1864 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1867 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val1865 = new LinkedHashMap>(2*_map1867.size); String _key1868; Set _val1869; for (int _i1870 = 0; _i1870 < _map1867.size; ++_i1870) { _key1868 = iprot.readString(); { org.apache.thrift.protocol.TSet _set1871 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1869 = new LinkedHashSet(2*_set1871.size); com.cinchapi.concourse.thrift.TObject _elem1872; for (int _i1873 = 0; _i1873 < _set1871.size; ++_i1873) { _elem1872 = new com.cinchapi.concourse.thrift.TObject(); _elem1872.read(iprot); _val1869.add(_elem1872); } } _val1865.put(_key1868, _val1869); } } struct.success.put(_key1864, _val1865); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeyRecord_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("getKeyRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecord_argsTupleSchemeFactory()); } public String key; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeyRecord_args.class, metaDataMap); } public getKeyRecord_args() { } public getKeyRecord_args( String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyRecord_args(getKeyRecord_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyRecord_args deepCopy() { return new getKeyRecord_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public getKeyRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyRecord_args) return this.equals((getKeyRecord_args)that); return false; } public boolean equals(getKeyRecord_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeyRecord_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeyRecord_argsStandardSchemeFactory implements SchemeFactory { public getKeyRecord_argsStandardScheme getScheme() { return new getKeyRecord_argsStandardScheme(); } } private static class getKeyRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecord_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeyRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecord_argsTupleSchemeFactory implements SchemeFactory { public getKeyRecord_argsTupleScheme getScheme() { return new getKeyRecord_argsTupleScheme(); } } private static class getKeyRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyRecord_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("getKeyRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecord_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(getKeyRecord_result.class, metaDataMap); } public getKeyRecord_result() { } public getKeyRecord_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public getKeyRecord_result(getKeyRecord_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public getKeyRecord_result deepCopy() { return new getKeyRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public getKeyRecord_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyRecord_result) return this.equals((getKeyRecord_result)that); return false; } public boolean equals(getKeyRecord_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(getKeyRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("getKeyRecord_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 getKeyRecord_resultStandardSchemeFactory implements SchemeFactory { public getKeyRecord_resultStandardScheme getScheme() { return new getKeyRecord_resultStandardScheme(); } } private static class getKeyRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, getKeyRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecord_resultTupleSchemeFactory implements SchemeFactory { public getKeyRecord_resultTupleScheme getScheme() { return new getKeyRecord_resultTupleScheme(); } } private static class getKeyRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class getKeyRecordTime_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("getKeyRecordTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecordTime_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeyRecordTime_args.class, metaDataMap); } public getKeyRecordTime_args() { } public getKeyRecordTime_args( String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyRecordTime_args(getKeyRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyRecordTime_args deepCopy() { return new getKeyRecordTime_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyRecordTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public getKeyRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public getKeyRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyRecordTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyRecordTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyRecordTime_args) return this.equals((getKeyRecordTime_args)that); return false; } public boolean equals(getKeyRecordTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyRecordTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeyRecordTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeyRecordTime_argsStandardSchemeFactory implements SchemeFactory { public getKeyRecordTime_argsStandardScheme getScheme() { return new getKeyRecordTime_argsStandardScheme(); } } private static class getKeyRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecordTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeyRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecordTime_argsTupleSchemeFactory implements SchemeFactory { public getKeyRecordTime_argsTupleScheme getScheme() { return new getKeyRecordTime_argsTupleScheme(); } } private static class getKeyRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyRecordTime_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("getKeyRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecordTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(getKeyRecordTime_result.class, metaDataMap); } public getKeyRecordTime_result() { } public getKeyRecordTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public getKeyRecordTime_result(getKeyRecordTime_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public getKeyRecordTime_result deepCopy() { return new getKeyRecordTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public getKeyRecordTime_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyRecordTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyRecordTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyRecordTime_result) return this.equals((getKeyRecordTime_result)that); return false; } public boolean equals(getKeyRecordTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(getKeyRecordTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("getKeyRecordTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 getKeyRecordTime_resultStandardSchemeFactory implements SchemeFactory { public getKeyRecordTime_resultStandardScheme getScheme() { return new getKeyRecordTime_resultStandardScheme(); } } private static class getKeyRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, getKeyRecordTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecordTime_resultTupleSchemeFactory implements SchemeFactory { public getKeyRecordTime_resultTupleScheme getScheme() { return new getKeyRecordTime_resultTupleScheme(); } } private static class getKeyRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class getKeyRecordTimestr_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("getKeyRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecordTimestr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeyRecordTimestr_args.class, metaDataMap); } public getKeyRecordTimestr_args() { } public getKeyRecordTimestr_args( String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyRecordTimestr_args(getKeyRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyRecordTimestr_args deepCopy() { return new getKeyRecordTimestr_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyRecordTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public getKeyRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public getKeyRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyRecordTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyRecordTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyRecordTimestr_args) return this.equals((getKeyRecordTimestr_args)that); return false; } public boolean equals(getKeyRecordTimestr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyRecordTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeyRecordTimestr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeyRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public getKeyRecordTimestr_argsStandardScheme getScheme() { return new getKeyRecordTimestr_argsStandardScheme(); } } private static class getKeyRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecordTimestr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeyRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public getKeyRecordTimestr_argsTupleScheme getScheme() { return new getKeyRecordTimestr_argsTupleScheme(); } } private static class getKeyRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyRecordTimestr_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("getKeyRecordTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecordTimestr_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(getKeyRecordTimestr_result.class, metaDataMap); } public getKeyRecordTimestr_result() { } public getKeyRecordTimestr_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeyRecordTimestr_result(getKeyRecordTimestr_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public getKeyRecordTimestr_result deepCopy() { return new getKeyRecordTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public getKeyRecordTimestr_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyRecordTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyRecordTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeyRecordTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyRecordTimestr_result) return this.equals((getKeyRecordTimestr_result)that); return false; } public boolean equals(getKeyRecordTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(getKeyRecordTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("getKeyRecordTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 getKeyRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public getKeyRecordTimestr_resultStandardScheme getScheme() { return new getKeyRecordTimestr_resultStandardScheme(); } } private static class getKeyRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecordTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, getKeyRecordTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public getKeyRecordTimestr_resultTupleScheme getScheme() { return new getKeyRecordTimestr_resultTupleScheme(); } } private static class getKeyRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeysRecord_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("getKeysRecord_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecord_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORD((short)2, "record"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeysRecord_args.class, metaDataMap); } public getKeysRecord_args() { } public getKeysRecord_args( List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysRecord_args(getKeysRecord_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysRecord_args deepCopy() { return new getKeysRecord_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysRecord_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public long getRecord() { return this.record; } public getKeysRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysRecord_args) return this.equals((getKeysRecord_args)that); return false; } public boolean equals(getKeysRecord_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeysRecord_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeysRecord_argsStandardSchemeFactory implements SchemeFactory { public getKeysRecord_argsStandardScheme getScheme() { return new getKeysRecord_argsStandardScheme(); } } private static class getKeysRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecord_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1874 = iprot.readListBegin(); struct.keys = new ArrayList(_list1874.size); String _elem1875; for (int _i1876 = 0; _i1876 < _list1874.size; ++_i1876) { _elem1875 = iprot.readString(); struct.keys.add(_elem1875); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeysRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1877 : struct.keys) { oprot.writeString(_iter1877); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecord_argsTupleSchemeFactory implements SchemeFactory { public getKeysRecord_argsTupleScheme getScheme() { return new getKeysRecord_argsTupleScheme(); } } private static class getKeysRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1878 : struct.keys) { oprot.writeString(_iter1878); } } } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list1879 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1879.size); String _elem1880; for (int _i1881 = 0; _i1881 < _list1879.size; ++_i1881) { _elem1880 = iprot.readString(); struct.keys.add(_elem1880); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysRecord_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("getKeysRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecord_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(getKeysRecord_result.class, metaDataMap); } public getKeysRecord_result() { } public getKeysRecord_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public getKeysRecord_result(getKeysRecord_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success.size()); for (Map.Entry other_element : other.success.entrySet()) { String other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element.getValue(); String __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public getKeysRecord_result deepCopy() { return new getKeysRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, com.cinchapi.concourse.thrift.TObject val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeysRecord_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysRecord_result) return this.equals((getKeysRecord_result)that); return false; } public boolean equals(getKeysRecord_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(getKeysRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("getKeysRecord_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 getKeysRecord_resultStandardSchemeFactory implements SchemeFactory { public getKeysRecord_resultStandardScheme getScheme() { return new getKeysRecord_resultStandardScheme(); } } private static class getKeysRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecord_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.MAP) { { org.apache.thrift.protocol.TMap _map1882 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map1882.size); String _key1883; com.cinchapi.concourse.thrift.TObject _val1884; for (int _i1885 = 0; _i1885 < _map1882.size; ++_i1885) { _key1883 = iprot.readString(); _val1884 = new com.cinchapi.concourse.thrift.TObject(); _val1884.read(iprot); struct.success.put(_key1883, _val1884); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, getKeysRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter1886 : struct.success.entrySet()) { oprot.writeString(_iter1886.getKey()); _iter1886.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecord_resultTupleSchemeFactory implements SchemeFactory { public getKeysRecord_resultTupleScheme getScheme() { return new getKeysRecord_resultTupleScheme(); } } private static class getKeysRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter1887 : struct.success.entrySet()) { oprot.writeString(_iter1887.getKey()); _iter1887.getValue().write(oprot); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1888 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap(2*_map1888.size); String _key1889; com.cinchapi.concourse.thrift.TObject _val1890; for (int _i1891 = 0; _i1891 < _map1888.size; ++_i1891) { _key1889 = iprot.readString(); _val1890 = new com.cinchapi.concourse.thrift.TObject(); _val1890.read(iprot); struct.success.put(_key1889, _val1890); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class getKeysRecordTime_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("getKeysRecordTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecordTime_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORD((short)2, "record"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeysRecordTime_args.class, metaDataMap); } public getKeysRecordTime_args() { } public getKeysRecordTime_args( List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysRecordTime_args(getKeysRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysRecordTime_args deepCopy() { return new getKeysRecordTime_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysRecordTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public long getRecord() { return this.record; } public getKeysRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public getKeysRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysRecordTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysRecordTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysRecordTime_args) return this.equals((getKeysRecordTime_args)that); return false; } public boolean equals(getKeysRecordTime_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysRecordTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeysRecordTime_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeysRecordTime_argsStandardSchemeFactory implements SchemeFactory { public getKeysRecordTime_argsStandardScheme getScheme() { return new getKeysRecordTime_argsStandardScheme(); } } private static class getKeysRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecordTime_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1892 = iprot.readListBegin(); struct.keys = new ArrayList(_list1892.size); String _elem1893; for (int _i1894 = 0; _i1894 < _list1892.size; ++_i1894) { _elem1893 = iprot.readString(); struct.keys.add(_elem1893); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeysRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1895 : struct.keys) { oprot.writeString(_iter1895); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecordTime_argsTupleSchemeFactory implements SchemeFactory { public getKeysRecordTime_argsTupleScheme getScheme() { return new getKeysRecordTime_argsTupleScheme(); } } private static class getKeysRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1896 : struct.keys) { oprot.writeString(_iter1896); } } } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list1897 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1897.size); String _elem1898; for (int _i1899 = 0; _i1899 < _list1897.size; ++_i1899) { _elem1898 = iprot.readString(); struct.keys.add(_elem1898); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysRecordTime_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("getKeysRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecordTime_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(getKeysRecordTime_result.class, metaDataMap); } public getKeysRecordTime_result() { } public getKeysRecordTime_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public getKeysRecordTime_result(getKeysRecordTime_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success.size()); for (Map.Entry other_element : other.success.entrySet()) { String other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element.getValue(); String __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public getKeysRecordTime_result deepCopy() { return new getKeysRecordTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, com.cinchapi.concourse.thrift.TObject val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeysRecordTime_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysRecordTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysRecordTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysRecordTime_result) return this.equals((getKeysRecordTime_result)that); return false; } public boolean equals(getKeysRecordTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(getKeysRecordTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("getKeysRecordTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 getKeysRecordTime_resultStandardSchemeFactory implements SchemeFactory { public getKeysRecordTime_resultStandardScheme getScheme() { return new getKeysRecordTime_resultStandardScheme(); } } private static class getKeysRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecordTime_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.MAP) { { org.apache.thrift.protocol.TMap _map1900 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map1900.size); String _key1901; com.cinchapi.concourse.thrift.TObject _val1902; for (int _i1903 = 0; _i1903 < _map1900.size; ++_i1903) { _key1901 = iprot.readString(); _val1902 = new com.cinchapi.concourse.thrift.TObject(); _val1902.read(iprot); struct.success.put(_key1901, _val1902); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, getKeysRecordTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter1904 : struct.success.entrySet()) { oprot.writeString(_iter1904.getKey()); _iter1904.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecordTime_resultTupleSchemeFactory implements SchemeFactory { public getKeysRecordTime_resultTupleScheme getScheme() { return new getKeysRecordTime_resultTupleScheme(); } } private static class getKeysRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter1905 : struct.success.entrySet()) { oprot.writeString(_iter1905.getKey()); _iter1905.getValue().write(oprot); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1906 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap(2*_map1906.size); String _key1907; com.cinchapi.concourse.thrift.TObject _val1908; for (int _i1909 = 0; _i1909 < _map1906.size; ++_i1909) { _key1907 = iprot.readString(); _val1908 = new com.cinchapi.concourse.thrift.TObject(); _val1908.read(iprot); struct.success.put(_key1907, _val1908); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class getKeysRecordTimestr_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("getKeysRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecordTimestr_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORD((short)2, "record"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeysRecordTimestr_args.class, metaDataMap); } public getKeysRecordTimestr_args() { } public getKeysRecordTimestr_args( List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysRecordTimestr_args(getKeysRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysRecordTimestr_args deepCopy() { return new getKeysRecordTimestr_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysRecordTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public long getRecord() { return this.record; } public getKeysRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public getKeysRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysRecordTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysRecordTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysRecordTimestr_args) return this.equals((getKeysRecordTimestr_args)that); return false; } public boolean equals(getKeysRecordTimestr_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysRecordTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeysRecordTimestr_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeysRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public getKeysRecordTimestr_argsStandardScheme getScheme() { return new getKeysRecordTimestr_argsStandardScheme(); } } private static class getKeysRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecordTimestr_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1910 = iprot.readListBegin(); struct.keys = new ArrayList(_list1910.size); String _elem1911; for (int _i1912 = 0; _i1912 < _list1910.size; ++_i1912) { _elem1911 = iprot.readString(); struct.keys.add(_elem1911); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeysRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1913 : struct.keys) { oprot.writeString(_iter1913); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public getKeysRecordTimestr_argsTupleScheme getScheme() { return new getKeysRecordTimestr_argsTupleScheme(); } } private static class getKeysRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1914 : struct.keys) { oprot.writeString(_iter1914); } } } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list1915 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1915.size); String _elem1916; for (int _i1917 = 0; _i1917 < _list1915.size; ++_i1917) { _elem1916 = iprot.readString(); struct.keys.add(_elem1916); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysRecordTimestr_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("getKeysRecordTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecordTimestr_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(getKeysRecordTimestr_result.class, metaDataMap); } public getKeysRecordTimestr_result() { } public getKeysRecordTimestr_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeysRecordTimestr_result(getKeysRecordTimestr_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success.size()); for (Map.Entry other_element : other.success.entrySet()) { String other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element.getValue(); String __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public getKeysRecordTimestr_result deepCopy() { return new getKeysRecordTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(String key, com.cinchapi.concourse.thrift.TObject val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeysRecordTimestr_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysRecordTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysRecordTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeysRecordTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysRecordTimestr_result) return this.equals((getKeysRecordTimestr_result)that); return false; } public boolean equals(getKeysRecordTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(getKeysRecordTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("getKeysRecordTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 getKeysRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public getKeysRecordTimestr_resultStandardScheme getScheme() { return new getKeysRecordTimestr_resultStandardScheme(); } } private static class getKeysRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecordTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map1918 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map1918.size); String _key1919; com.cinchapi.concourse.thrift.TObject _val1920; for (int _i1921 = 0; _i1921 < _map1918.size; ++_i1921) { _key1919 = iprot.readString(); _val1920 = new com.cinchapi.concourse.thrift.TObject(); _val1920.read(iprot); struct.success.put(_key1919, _val1920); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, getKeysRecordTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter1922 : struct.success.entrySet()) { oprot.writeString(_iter1922.getKey()); _iter1922.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public getKeysRecordTimestr_resultTupleScheme getScheme() { return new getKeysRecordTimestr_resultTupleScheme(); } } private static class getKeysRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter1923 : struct.success.entrySet()) { oprot.writeString(_iter1923.getKey()); _iter1923.getValue().write(oprot); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1924 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap(2*_map1924.size); String _key1925; com.cinchapi.concourse.thrift.TObject _val1926; for (int _i1927 = 0; _i1927 < _map1924.size; ++_i1927) { _key1925 = iprot.readString(); _val1926 = new com.cinchapi.concourse.thrift.TObject(); _val1926.read(iprot); struct.success.put(_key1925, _val1926); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeysRecords_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("getKeysRecords_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecords_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORDS((short)2, "records"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeysRecords_args.class, metaDataMap); } public getKeysRecords_args() { } public getKeysRecords_args( List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysRecords_args(getKeysRecords_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysRecords_args deepCopy() { return new getKeysRecords_args(this); } @Override public void clear() { this.keys = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysRecords_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public getKeysRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysRecords_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysRecords_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysRecords_args) return this.equals((getKeysRecords_args)that); return false; } public boolean equals(getKeysRecords_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysRecords_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeysRecords_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeysRecords_argsStandardSchemeFactory implements SchemeFactory { public getKeysRecords_argsStandardScheme getScheme() { return new getKeysRecords_argsStandardScheme(); } } private static class getKeysRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecords_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1928 = iprot.readListBegin(); struct.keys = new ArrayList(_list1928.size); String _elem1929; for (int _i1930 = 0; _i1930 < _list1928.size; ++_i1930) { _elem1929 = iprot.readString(); struct.keys.add(_elem1929); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1931 = iprot.readListBegin(); struct.records = new ArrayList(_list1931.size); long _elem1932; for (int _i1933 = 0; _i1933 < _list1931.size; ++_i1933) { _elem1932 = iprot.readI64(); struct.records.add(_elem1932); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeysRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter1934 : struct.keys) { oprot.writeString(_iter1934); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1935 : struct.records) { oprot.writeI64(_iter1935); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecords_argsTupleSchemeFactory implements SchemeFactory { public getKeysRecords_argsTupleScheme getScheme() { return new getKeysRecords_argsTupleScheme(); } } private static class getKeysRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter1936 : struct.keys) { oprot.writeString(_iter1936); } } } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1937 : struct.records) { oprot.writeI64(_iter1937); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list1938 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list1938.size); String _elem1939; for (int _i1940 = 0; _i1940 < _list1938.size; ++_i1940) { _elem1939 = iprot.readString(); struct.keys.add(_elem1939); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list1941 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1941.size); long _elem1942; for (int _i1943 = 0; _i1943 < _list1941.size; ++_i1943) { _elem1942 = iprot.readI64(); struct.records.add(_elem1942); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysRecords_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("getKeysRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecords_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(getKeysRecords_result.class, metaDataMap); } public getKeysRecords_result() { } public getKeysRecords_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public getKeysRecords_result(getKeysRecords_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap(other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public getKeysRecords_result deepCopy() { return new getKeysRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getKeysRecords_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysRecords_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysRecords_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysRecords_result) return this.equals((getKeysRecords_result)that); return false; } public boolean equals(getKeysRecords_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(getKeysRecords_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("getKeysRecords_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 getKeysRecords_resultStandardSchemeFactory implements SchemeFactory { public getKeysRecords_resultStandardScheme getScheme() { return new getKeysRecords_resultStandardScheme(); } } private static class getKeysRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecords_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.MAP) { { org.apache.thrift.protocol.TMap _map1944 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map1944.size); long _key1945; Map _val1946; for (int _i1947 = 0; _i1947 < _map1944.size; ++_i1947) { _key1945 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1948 = iprot.readMapBegin(); _val1946 = new LinkedHashMap(2*_map1948.size); String _key1949; com.cinchapi.concourse.thrift.TObject _val1950; for (int _i1951 = 0; _i1951 < _map1948.size; ++_i1951) { _key1949 = iprot.readString(); _val1950 = new com.cinchapi.concourse.thrift.TObject(); _val1950.read(iprot); _val1946.put(_key1949, _val1950); } iprot.readMapEnd(); } struct.success.put(_key1945, _val1946); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, getKeysRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter1952 : struct.success.entrySet()) { oprot.writeI64(_iter1952.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter1952.getValue().size())); for (Map.Entry _iter1953 : _iter1952.getValue().entrySet()) { oprot.writeString(_iter1953.getKey()); _iter1953.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecords_resultTupleSchemeFactory implements SchemeFactory { public getKeysRecords_resultTupleScheme getScheme() { return new getKeysRecords_resultTupleScheme(); } } private static class getKeysRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter1954 : struct.success.entrySet()) { oprot.writeI64(_iter1954.getKey()); { oprot.writeI32(_iter1954.getValue().size()); for (Map.Entry _iter1955 : _iter1954.getValue().entrySet()) { oprot.writeString(_iter1955.getKey()); _iter1955.getValue().write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1956 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map1956.size); long _key1957; Map _val1958; for (int _i1959 = 0; _i1959 < _map1956.size; ++_i1959) { _key1957 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map1960 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val1958 = new LinkedHashMap(2*_map1960.size); String _key1961; com.cinchapi.concourse.thrift.TObject _val1962; for (int _i1963 = 0; _i1963 < _map1960.size; ++_i1963) { _key1961 = iprot.readString(); _val1962 = new com.cinchapi.concourse.thrift.TObject(); _val1962.read(iprot); _val1958.put(_key1961, _val1962); } } struct.success.put(_key1957, _val1958); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class getKeyRecords_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("getKeyRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecords_argsTupleSchemeFactory()); } public String key; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORDS((short)2, "records"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeyRecords_args.class, metaDataMap); } public getKeyRecords_args() { } public getKeyRecords_args( String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyRecords_args(getKeyRecords_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyRecords_args deepCopy() { return new getKeyRecords_args(this); } @Override public void clear() { this.key = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public getKeyRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyRecords_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyRecords_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyRecords_args) return this.equals((getKeyRecords_args)that); return false; } public boolean equals(getKeyRecords_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyRecords_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeyRecords_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeyRecords_argsStandardSchemeFactory implements SchemeFactory { public getKeyRecords_argsStandardScheme getScheme() { return new getKeyRecords_argsStandardScheme(); } } private static class getKeyRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecords_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1964 = iprot.readListBegin(); struct.records = new ArrayList(_list1964.size); long _elem1965; for (int _i1966 = 0; _i1966 < _list1964.size; ++_i1966) { _elem1965 = iprot.readI64(); struct.records.add(_elem1965); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeyRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1967 : struct.records) { oprot.writeI64(_iter1967); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecords_argsTupleSchemeFactory implements SchemeFactory { public getKeyRecords_argsTupleScheme getScheme() { return new getKeyRecords_argsTupleScheme(); } } private static class getKeyRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1968 : struct.records) { oprot.writeI64(_iter1968); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list1969 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1969.size); long _elem1970; for (int _i1971 = 0; _i1971 < _list1969.size; ++_i1971) { _elem1970 = iprot.readI64(); struct.records.add(_elem1970); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyRecords_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("getKeyRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecords_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(getKeyRecords_result.class, metaDataMap); } public getKeyRecords_result() { } public getKeyRecords_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public getKeyRecords_result(getKeyRecords_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success.size()); for (Map.Entry other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public getKeyRecords_result deepCopy() { return new getKeyRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, com.cinchapi.concourse.thrift.TObject val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeyRecords_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyRecords_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyRecords_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyRecords_result) return this.equals((getKeyRecords_result)that); return false; } public boolean equals(getKeyRecords_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(getKeyRecords_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("getKeyRecords_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 getKeyRecords_resultStandardSchemeFactory implements SchemeFactory { public getKeyRecords_resultStandardScheme getScheme() { return new getKeyRecords_resultStandardScheme(); } } private static class getKeyRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecords_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.MAP) { { org.apache.thrift.protocol.TMap _map1972 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map1972.size); long _key1973; com.cinchapi.concourse.thrift.TObject _val1974; for (int _i1975 = 0; _i1975 < _map1972.size; ++_i1975) { _key1973 = iprot.readI64(); _val1974 = new com.cinchapi.concourse.thrift.TObject(); _val1974.read(iprot); struct.success.put(_key1973, _val1974); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, getKeyRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter1976 : struct.success.entrySet()) { oprot.writeI64(_iter1976.getKey()); _iter1976.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecords_resultTupleSchemeFactory implements SchemeFactory { public getKeyRecords_resultTupleScheme getScheme() { return new getKeyRecords_resultTupleScheme(); } } private static class getKeyRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter1977 : struct.success.entrySet()) { oprot.writeI64(_iter1977.getKey()); _iter1977.getValue().write(oprot); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1978 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap(2*_map1978.size); long _key1979; com.cinchapi.concourse.thrift.TObject _val1980; for (int _i1981 = 0; _i1981 < _map1978.size; ++_i1981) { _key1979 = iprot.readI64(); _val1980 = new com.cinchapi.concourse.thrift.TObject(); _val1980.read(iprot); struct.success.put(_key1979, _val1980); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class getKeyRecordsTime_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("getKeyRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecordsTime_argsTupleSchemeFactory()); } public String key; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORDS((short)2, "records"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeyRecordsTime_args.class, metaDataMap); } public getKeyRecordsTime_args() { } public getKeyRecordsTime_args( String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyRecordsTime_args(getKeyRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyRecordsTime_args deepCopy() { return new getKeyRecordsTime_args(this); } @Override public void clear() { this.key = null; this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyRecordsTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public getKeyRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public getKeyRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyRecordsTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyRecordsTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyRecordsTime_args) return this.equals((getKeyRecordsTime_args)that); return false; } public boolean equals(getKeyRecordsTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyRecordsTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeyRecordsTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeyRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public getKeyRecordsTime_argsStandardScheme getScheme() { return new getKeyRecordsTime_argsStandardScheme(); } } private static class getKeyRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecordsTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list1982 = iprot.readListBegin(); struct.records = new ArrayList(_list1982.size); long _elem1983; for (int _i1984 = 0; _i1984 < _list1982.size; ++_i1984) { _elem1983 = iprot.readI64(); struct.records.add(_elem1983); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeyRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter1985 : struct.records) { oprot.writeI64(_iter1985); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public getKeyRecordsTime_argsTupleScheme getScheme() { return new getKeyRecordsTime_argsTupleScheme(); } } private static class getKeyRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter1986 : struct.records) { oprot.writeI64(_iter1986); } } } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list1987 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list1987.size); long _elem1988; for (int _i1989 = 0; _i1989 < _list1987.size; ++_i1989) { _elem1988 = iprot.readI64(); struct.records.add(_elem1988); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyRecordsTime_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("getKeyRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecordsTime_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(getKeyRecordsTime_result.class, metaDataMap); } public getKeyRecordsTime_result() { } public getKeyRecordsTime_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public getKeyRecordsTime_result(getKeyRecordsTime_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success.size()); for (Map.Entry other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public getKeyRecordsTime_result deepCopy() { return new getKeyRecordsTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, com.cinchapi.concourse.thrift.TObject val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeyRecordsTime_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyRecordsTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyRecordsTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyRecordsTime_result) return this.equals((getKeyRecordsTime_result)that); return false; } public boolean equals(getKeyRecordsTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(getKeyRecordsTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("getKeyRecordsTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 getKeyRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public getKeyRecordsTime_resultStandardScheme getScheme() { return new getKeyRecordsTime_resultStandardScheme(); } } private static class getKeyRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecordsTime_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.MAP) { { org.apache.thrift.protocol.TMap _map1990 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map1990.size); long _key1991; com.cinchapi.concourse.thrift.TObject _val1992; for (int _i1993 = 0; _i1993 < _map1990.size; ++_i1993) { _key1991 = iprot.readI64(); _val1992 = new com.cinchapi.concourse.thrift.TObject(); _val1992.read(iprot); struct.success.put(_key1991, _val1992); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, getKeyRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter1994 : struct.success.entrySet()) { oprot.writeI64(_iter1994.getKey()); _iter1994.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public getKeyRecordsTime_resultTupleScheme getScheme() { return new getKeyRecordsTime_resultTupleScheme(); } } private static class getKeyRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter1995 : struct.success.entrySet()) { oprot.writeI64(_iter1995.getKey()); _iter1995.getValue().write(oprot); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map1996 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap(2*_map1996.size); long _key1997; com.cinchapi.concourse.thrift.TObject _val1998; for (int _i1999 = 0; _i1999 < _map1996.size; ++_i1999) { _key1997 = iprot.readI64(); _val1998 = new com.cinchapi.concourse.thrift.TObject(); _val1998.read(iprot); struct.success.put(_key1997, _val1998); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class getKeyRecordsTimestr_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("getKeyRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecordsTimestr_argsTupleSchemeFactory()); } public String key; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORDS((short)2, "records"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeyRecordsTimestr_args.class, metaDataMap); } public getKeyRecordsTimestr_args() { } public getKeyRecordsTimestr_args( String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyRecordsTimestr_args(getKeyRecordsTimestr_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyRecordsTimestr_args deepCopy() { return new getKeyRecordsTimestr_args(this); } @Override public void clear() { this.key = null; this.records = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyRecordsTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public getKeyRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public getKeyRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyRecordsTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyRecordsTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyRecordsTimestr_args) return this.equals((getKeyRecordsTimestr_args)that); return false; } public boolean equals(getKeyRecordsTimestr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyRecordsTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeyRecordsTimestr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeyRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public getKeyRecordsTimestr_argsStandardScheme getScheme() { return new getKeyRecordsTimestr_argsStandardScheme(); } } private static class getKeyRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecordsTimestr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2000 = iprot.readListBegin(); struct.records = new ArrayList(_list2000.size); long _elem2001; for (int _i2002 = 0; _i2002 < _list2000.size; ++_i2002) { _elem2001 = iprot.readI64(); struct.records.add(_elem2001); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2003 : struct.records) { oprot.writeI64(_iter2003); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public getKeyRecordsTimestr_argsTupleScheme getScheme() { return new getKeyRecordsTimestr_argsTupleScheme(); } } private static class getKeyRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2004 : struct.records) { oprot.writeI64(_iter2004); } } } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list2005 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2005.size); long _elem2006; for (int _i2007 = 0; _i2007 < _list2005.size; ++_i2007) { _elem2006 = iprot.readI64(); struct.records.add(_elem2006); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyRecordsTimestr_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("getKeyRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyRecordsTimestr_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(getKeyRecordsTimestr_result.class, metaDataMap); } public getKeyRecordsTimestr_result() { } public getKeyRecordsTimestr_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeyRecordsTimestr_result(getKeyRecordsTimestr_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success.size()); for (Map.Entry other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public getKeyRecordsTimestr_result deepCopy() { return new getKeyRecordsTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, com.cinchapi.concourse.thrift.TObject val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeyRecordsTimestr_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyRecordsTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyRecordsTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeyRecordsTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyRecordsTimestr_result) return this.equals((getKeyRecordsTimestr_result)that); return false; } public boolean equals(getKeyRecordsTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(getKeyRecordsTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("getKeyRecordsTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 getKeyRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public getKeyRecordsTimestr_resultStandardScheme getScheme() { return new getKeyRecordsTimestr_resultStandardScheme(); } } private static class getKeyRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyRecordsTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map2008 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map2008.size); long _key2009; com.cinchapi.concourse.thrift.TObject _val2010; for (int _i2011 = 0; _i2011 < _map2008.size; ++_i2011) { _key2009 = iprot.readI64(); _val2010 = new com.cinchapi.concourse.thrift.TObject(); _val2010.read(iprot); struct.success.put(_key2009, _val2010); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, getKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter2012 : struct.success.entrySet()) { oprot.writeI64(_iter2012.getKey()); _iter2012.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public getKeyRecordsTimestr_resultTupleScheme getScheme() { return new getKeyRecordsTimestr_resultTupleScheme(); } } private static class getKeyRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter2013 : struct.success.entrySet()) { oprot.writeI64(_iter2013.getKey()); _iter2013.getValue().write(oprot); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2014 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap(2*_map2014.size); long _key2015; com.cinchapi.concourse.thrift.TObject _val2016; for (int _i2017 = 0; _i2017 < _map2014.size; ++_i2017) { _key2015 = iprot.readI64(); _val2016 = new com.cinchapi.concourse.thrift.TObject(); _val2016.read(iprot); struct.success.put(_key2015, _val2016); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeysRecordsTime_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("getKeysRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecordsTime_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORDS((short)2, "records"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeysRecordsTime_args.class, metaDataMap); } public getKeysRecordsTime_args() { } public getKeysRecordsTime_args( List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysRecordsTime_args(getKeysRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysRecordsTime_args deepCopy() { return new getKeysRecordsTime_args(this); } @Override public void clear() { this.keys = null; this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysRecordsTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public getKeysRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public getKeysRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysRecordsTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysRecordsTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysRecordsTime_args) return this.equals((getKeysRecordsTime_args)that); return false; } public boolean equals(getKeysRecordsTime_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysRecordsTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeysRecordsTime_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeysRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public getKeysRecordsTime_argsStandardScheme getScheme() { return new getKeysRecordsTime_argsStandardScheme(); } } private static class getKeysRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecordsTime_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2018 = iprot.readListBegin(); struct.keys = new ArrayList(_list2018.size); String _elem2019; for (int _i2020 = 0; _i2020 < _list2018.size; ++_i2020) { _elem2019 = iprot.readString(); struct.keys.add(_elem2019); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2021 = iprot.readListBegin(); struct.records = new ArrayList(_list2021.size); long _elem2022; for (int _i2023 = 0; _i2023 < _list2021.size; ++_i2023) { _elem2022 = iprot.readI64(); struct.records.add(_elem2022); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeysRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2024 : struct.keys) { oprot.writeString(_iter2024); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2025 : struct.records) { oprot.writeI64(_iter2025); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public getKeysRecordsTime_argsTupleScheme getScheme() { return new getKeysRecordsTime_argsTupleScheme(); } } private static class getKeysRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2026 : struct.keys) { oprot.writeString(_iter2026); } } } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2027 : struct.records) { oprot.writeI64(_iter2027); } } } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2028 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2028.size); String _elem2029; for (int _i2030 = 0; _i2030 < _list2028.size; ++_i2030) { _elem2029 = iprot.readString(); struct.keys.add(_elem2029); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list2031 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2031.size); long _elem2032; for (int _i2033 = 0; _i2033 < _list2031.size; ++_i2033) { _elem2032 = iprot.readI64(); struct.records.add(_elem2032); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysRecordsTime_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("getKeysRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecordsTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(getKeysRecordsTime_result.class, metaDataMap); } public getKeysRecordsTime_result() { } public getKeysRecordsTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public getKeysRecordsTime_result(getKeysRecordsTime_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap(other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public getKeysRecordsTime_result deepCopy() { return new getKeysRecordsTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getKeysRecordsTime_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysRecordsTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysRecordsTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysRecordsTime_result) return this.equals((getKeysRecordsTime_result)that); return false; } public boolean equals(getKeysRecordsTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(getKeysRecordsTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("getKeysRecordsTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 getKeysRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public getKeysRecordsTime_resultStandardScheme getScheme() { return new getKeysRecordsTime_resultStandardScheme(); } } private static class getKeysRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecordsTime_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.MAP) { { org.apache.thrift.protocol.TMap _map2034 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map2034.size); long _key2035; Map _val2036; for (int _i2037 = 0; _i2037 < _map2034.size; ++_i2037) { _key2035 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2038 = iprot.readMapBegin(); _val2036 = new LinkedHashMap(2*_map2038.size); String _key2039; com.cinchapi.concourse.thrift.TObject _val2040; for (int _i2041 = 0; _i2041 < _map2038.size; ++_i2041) { _key2039 = iprot.readString(); _val2040 = new com.cinchapi.concourse.thrift.TObject(); _val2040.read(iprot); _val2036.put(_key2039, _val2040); } iprot.readMapEnd(); } struct.success.put(_key2035, _val2036); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, getKeysRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2042 : struct.success.entrySet()) { oprot.writeI64(_iter2042.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2042.getValue().size())); for (Map.Entry _iter2043 : _iter2042.getValue().entrySet()) { oprot.writeString(_iter2043.getKey()); _iter2043.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public getKeysRecordsTime_resultTupleScheme getScheme() { return new getKeysRecordsTime_resultTupleScheme(); } } private static class getKeysRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2044 : struct.success.entrySet()) { oprot.writeI64(_iter2044.getKey()); { oprot.writeI32(_iter2044.getValue().size()); for (Map.Entry _iter2045 : _iter2044.getValue().entrySet()) { oprot.writeString(_iter2045.getKey()); _iter2045.getValue().write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2046 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map2046.size); long _key2047; Map _val2048; for (int _i2049 = 0; _i2049 < _map2046.size; ++_i2049) { _key2047 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2050 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2048 = new LinkedHashMap(2*_map2050.size); String _key2051; com.cinchapi.concourse.thrift.TObject _val2052; for (int _i2053 = 0; _i2053 < _map2050.size; ++_i2053) { _key2051 = iprot.readString(); _val2052 = new com.cinchapi.concourse.thrift.TObject(); _val2052.read(iprot); _val2048.put(_key2051, _val2052); } } struct.success.put(_key2047, _val2048); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class getKeysRecordsTimestr_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("getKeysRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecordsTimestr_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORDS((short)2, "records"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeysRecordsTimestr_args.class, metaDataMap); } public getKeysRecordsTimestr_args() { } public getKeysRecordsTimestr_args( List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysRecordsTimestr_args(getKeysRecordsTimestr_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysRecordsTimestr_args deepCopy() { return new getKeysRecordsTimestr_args(this); } @Override public void clear() { this.keys = null; this.records = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysRecordsTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public getKeysRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public getKeysRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysRecordsTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysRecordsTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysRecordsTimestr_args) return this.equals((getKeysRecordsTimestr_args)that); return false; } public boolean equals(getKeysRecordsTimestr_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysRecordsTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeysRecordsTimestr_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeysRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public getKeysRecordsTimestr_argsStandardScheme getScheme() { return new getKeysRecordsTimestr_argsStandardScheme(); } } private static class getKeysRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecordsTimestr_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2054 = iprot.readListBegin(); struct.keys = new ArrayList(_list2054.size); String _elem2055; for (int _i2056 = 0; _i2056 < _list2054.size; ++_i2056) { _elem2055 = iprot.readString(); struct.keys.add(_elem2055); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2057 = iprot.readListBegin(); struct.records = new ArrayList(_list2057.size); long _elem2058; for (int _i2059 = 0; _i2059 < _list2057.size; ++_i2059) { _elem2058 = iprot.readI64(); struct.records.add(_elem2058); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2060 : struct.keys) { oprot.writeString(_iter2060); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2061 : struct.records) { oprot.writeI64(_iter2061); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public getKeysRecordsTimestr_argsTupleScheme getScheme() { return new getKeysRecordsTimestr_argsTupleScheme(); } } private static class getKeysRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2062 : struct.keys) { oprot.writeString(_iter2062); } } } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2063 : struct.records) { oprot.writeI64(_iter2063); } } } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2064 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2064.size); String _elem2065; for (int _i2066 = 0; _i2066 < _list2064.size; ++_i2066) { _elem2065 = iprot.readString(); struct.keys.add(_elem2065); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list2067 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2067.size); long _elem2068; for (int _i2069 = 0; _i2069 < _list2067.size; ++_i2069) { _elem2068 = iprot.readI64(); struct.records.add(_elem2068); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysRecordsTimestr_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("getKeysRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysRecordsTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(getKeysRecordsTimestr_result.class, metaDataMap); } public getKeysRecordsTimestr_result() { } public getKeysRecordsTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeysRecordsTimestr_result(getKeysRecordsTimestr_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap(other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public getKeysRecordsTimestr_result deepCopy() { return new getKeysRecordsTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getKeysRecordsTimestr_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysRecordsTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysRecordsTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeysRecordsTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysRecordsTimestr_result) return this.equals((getKeysRecordsTimestr_result)that); return false; } public boolean equals(getKeysRecordsTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(getKeysRecordsTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("getKeysRecordsTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 getKeysRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public getKeysRecordsTimestr_resultStandardScheme getScheme() { return new getKeysRecordsTimestr_resultStandardScheme(); } } private static class getKeysRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysRecordsTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map2070 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map2070.size); long _key2071; Map _val2072; for (int _i2073 = 0; _i2073 < _map2070.size; ++_i2073) { _key2071 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2074 = iprot.readMapBegin(); _val2072 = new LinkedHashMap(2*_map2074.size); String _key2075; com.cinchapi.concourse.thrift.TObject _val2076; for (int _i2077 = 0; _i2077 < _map2074.size; ++_i2077) { _key2075 = iprot.readString(); _val2076 = new com.cinchapi.concourse.thrift.TObject(); _val2076.read(iprot); _val2072.put(_key2075, _val2076); } iprot.readMapEnd(); } struct.success.put(_key2071, _val2072); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, getKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2078 : struct.success.entrySet()) { oprot.writeI64(_iter2078.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2078.getValue().size())); for (Map.Entry _iter2079 : _iter2078.getValue().entrySet()) { oprot.writeString(_iter2079.getKey()); _iter2079.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public getKeysRecordsTimestr_resultTupleScheme getScheme() { return new getKeysRecordsTimestr_resultTupleScheme(); } } private static class getKeysRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2080 : struct.success.entrySet()) { oprot.writeI64(_iter2080.getKey()); { oprot.writeI32(_iter2080.getValue().size()); for (Map.Entry _iter2081 : _iter2080.getValue().entrySet()) { oprot.writeString(_iter2081.getKey()); _iter2081.getValue().write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2082 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map2082.size); long _key2083; Map _val2084; for (int _i2085 = 0; _i2085 < _map2082.size; ++_i2085) { _key2083 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2086 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2084 = new LinkedHashMap(2*_map2086.size); String _key2087; com.cinchapi.concourse.thrift.TObject _val2088; for (int _i2089 = 0; _i2089 < _map2086.size; ++_i2089) { _key2087 = iprot.readString(); _val2088 = new com.cinchapi.concourse.thrift.TObject(); _val2088.read(iprot); _val2084.put(_key2087, _val2088); } } struct.success.put(_key2083, _val2084); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeyCriteria_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("getKeyCriteria_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCriteria_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CRITERIA((short)2, "criteria"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeyCriteria_args.class, metaDataMap); } public getKeyCriteria_args() { } public getKeyCriteria_args( String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyCriteria_args(getKeyCriteria_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyCriteria_args deepCopy() { return new getKeyCriteria_args(this); } @Override public void clear() { this.key = null; this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyCriteria_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public getKeyCriteria_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyCriteria_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyCriteria_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyCriteria_args) return this.equals((getKeyCriteria_args)that); return false; } public boolean equals(getKeyCriteria_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyCriteria_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeyCriteria_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeyCriteria_argsStandardSchemeFactory implements SchemeFactory { public getKeyCriteria_argsStandardScheme getScheme() { return new getKeyCriteria_argsStandardScheme(); } } private static class getKeyCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCriteria_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeyCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCriteria_argsTupleSchemeFactory implements SchemeFactory { public getKeyCriteria_argsTupleScheme getScheme() { return new getKeyCriteria_argsTupleScheme(); } } private static class getKeyCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyCriteria_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("getKeyCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCriteria_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(getKeyCriteria_result.class, metaDataMap); } public getKeyCriteria_result() { } public getKeyCriteria_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public getKeyCriteria_result(getKeyCriteria_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success.size()); for (Map.Entry other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public getKeyCriteria_result deepCopy() { return new getKeyCriteria_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, com.cinchapi.concourse.thrift.TObject val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeyCriteria_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyCriteria_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyCriteria_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyCriteria_result) return this.equals((getKeyCriteria_result)that); return false; } public boolean equals(getKeyCriteria_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(getKeyCriteria_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("getKeyCriteria_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 getKeyCriteria_resultStandardSchemeFactory implements SchemeFactory { public getKeyCriteria_resultStandardScheme getScheme() { return new getKeyCriteria_resultStandardScheme(); } } private static class getKeyCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCriteria_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.MAP) { { org.apache.thrift.protocol.TMap _map2090 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map2090.size); long _key2091; com.cinchapi.concourse.thrift.TObject _val2092; for (int _i2093 = 0; _i2093 < _map2090.size; ++_i2093) { _key2091 = iprot.readI64(); _val2092 = new com.cinchapi.concourse.thrift.TObject(); _val2092.read(iprot); struct.success.put(_key2091, _val2092); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, getKeyCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter2094 : struct.success.entrySet()) { oprot.writeI64(_iter2094.getKey()); _iter2094.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCriteria_resultTupleSchemeFactory implements SchemeFactory { public getKeyCriteria_resultTupleScheme getScheme() { return new getKeyCriteria_resultTupleScheme(); } } private static class getKeyCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter2095 : struct.success.entrySet()) { oprot.writeI64(_iter2095.getKey()); _iter2095.getValue().write(oprot); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2096 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap(2*_map2096.size); long _key2097; com.cinchapi.concourse.thrift.TObject _val2098; for (int _i2099 = 0; _i2099 < _map2096.size; ++_i2099) { _key2097 = iprot.readI64(); _val2098 = new com.cinchapi.concourse.thrift.TObject(); _val2098.read(iprot); struct.success.put(_key2097, _val2098); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class getCriteria_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("getCriteria_args"); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCriteria_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CRITERIA((short)1, "criteria"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // CRITERIA return CRITERIA; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCriteria_args.class, metaDataMap); } public getCriteria_args() { } public getCriteria_args( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getCriteria_args(getCriteria_args other) { if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getCriteria_args deepCopy() { return new getCriteria_args(this); } @Override public void clear() { this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public getCriteria_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getCriteria_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getCriteria_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getCriteria_args) return this.equals((getCriteria_args)that); return false; } public boolean equals(getCriteria_args that) { if (that == null) return false; boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getCriteria_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getCriteria_args("); boolean first = true; sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getCriteria_argsStandardSchemeFactory implements SchemeFactory { public getCriteria_argsStandardScheme getScheme() { return new getCriteria_argsStandardScheme(); } } private static class getCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCriteria_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: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCriteria_argsTupleSchemeFactory implements SchemeFactory { public getCriteria_argsTupleScheme getScheme() { return new getCriteria_argsTupleScheme(); } } private static class getCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCriteria()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getCriteria_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("getCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCriteria_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(getCriteria_result.class, metaDataMap); } public getCriteria_result() { } public getCriteria_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public getCriteria_result(getCriteria_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap(other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public getCriteria_result deepCopy() { return new getCriteria_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getCriteria_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getCriteria_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getCriteria_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getCriteria_result) return this.equals((getCriteria_result)that); return false; } public boolean equals(getCriteria_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(getCriteria_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("getCriteria_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 getCriteria_resultStandardSchemeFactory implements SchemeFactory { public getCriteria_resultStandardScheme getScheme() { return new getCriteria_resultStandardScheme(); } } private static class getCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCriteria_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.MAP) { { org.apache.thrift.protocol.TMap _map2100 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map2100.size); long _key2101; Map _val2102; for (int _i2103 = 0; _i2103 < _map2100.size; ++_i2103) { _key2101 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2104 = iprot.readMapBegin(); _val2102 = new LinkedHashMap(2*_map2104.size); String _key2105; com.cinchapi.concourse.thrift.TObject _val2106; for (int _i2107 = 0; _i2107 < _map2104.size; ++_i2107) { _key2105 = iprot.readString(); _val2106 = new com.cinchapi.concourse.thrift.TObject(); _val2106.read(iprot); _val2102.put(_key2105, _val2106); } iprot.readMapEnd(); } struct.success.put(_key2101, _val2102); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, getCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2108 : struct.success.entrySet()) { oprot.writeI64(_iter2108.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2108.getValue().size())); for (Map.Entry _iter2109 : _iter2108.getValue().entrySet()) { oprot.writeString(_iter2109.getKey()); _iter2109.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCriteria_resultTupleSchemeFactory implements SchemeFactory { public getCriteria_resultTupleScheme getScheme() { return new getCriteria_resultTupleScheme(); } } private static class getCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2110 : struct.success.entrySet()) { oprot.writeI64(_iter2110.getKey()); { oprot.writeI32(_iter2110.getValue().size()); for (Map.Entry _iter2111 : _iter2110.getValue().entrySet()) { oprot.writeString(_iter2111.getKey()); _iter2111.getValue().write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2112 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map2112.size); long _key2113; Map _val2114; for (int _i2115 = 0; _i2115 < _map2112.size; ++_i2115) { _key2113 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2116 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2114 = new LinkedHashMap(2*_map2116.size); String _key2117; com.cinchapi.concourse.thrift.TObject _val2118; for (int _i2119 = 0; _i2119 < _map2116.size; ++_i2119) { _key2117 = iprot.readString(); _val2118 = new com.cinchapi.concourse.thrift.TObject(); _val2118.read(iprot); _val2114.put(_key2117, _val2118); } } struct.success.put(_key2113, _val2114); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class getCcl_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("getCcl_args"); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCcl_argsTupleSchemeFactory()); } public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CCL((short)1, "ccl"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // CCL return CCL; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCcl_args.class, metaDataMap); } public getCcl_args() { } public getCcl_args( String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getCcl_args(getCcl_args other) { if (other.isSetCcl()) { this.ccl = other.ccl; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getCcl_args deepCopy() { return new getCcl_args(this); } @Override public void clear() { this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public String getCcl() { return this.ccl; } public getCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getCcl_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getCcl_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getCcl_args) return this.equals((getCcl_args)that); return false; } public boolean equals(getCcl_args that) { if (that == null) return false; boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getCcl_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getCcl_args("); boolean first = true; sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getCcl_argsStandardSchemeFactory implements SchemeFactory { public getCcl_argsStandardScheme getScheme() { return new getCcl_argsStandardScheme(); } } private static class getCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCcl_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: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCcl_argsTupleSchemeFactory implements SchemeFactory { public getCcl_argsTupleScheme getScheme() { return new getCcl_argsTupleScheme(); } } private static class getCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCcl()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getCcl_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("getCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCcl_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(getCcl_result.class, metaDataMap); } public getCcl_result() { } public getCcl_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getCcl_result(getCcl_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap(other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public getCcl_result deepCopy() { return new getCcl_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getCcl_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getCcl_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getCcl_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getCcl_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getCcl_result) return this.equals((getCcl_result)that); return false; } public boolean equals(getCcl_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(getCcl_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("getCcl_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 getCcl_resultStandardSchemeFactory implements SchemeFactory { public getCcl_resultStandardScheme getScheme() { return new getCcl_resultStandardScheme(); } } private static class getCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCcl_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.MAP) { { org.apache.thrift.protocol.TMap _map2120 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map2120.size); long _key2121; Map _val2122; for (int _i2123 = 0; _i2123 < _map2120.size; ++_i2123) { _key2121 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2124 = iprot.readMapBegin(); _val2122 = new LinkedHashMap(2*_map2124.size); String _key2125; com.cinchapi.concourse.thrift.TObject _val2126; for (int _i2127 = 0; _i2127 < _map2124.size; ++_i2127) { _key2125 = iprot.readString(); _val2126 = new com.cinchapi.concourse.thrift.TObject(); _val2126.read(iprot); _val2122.put(_key2125, _val2126); } iprot.readMapEnd(); } struct.success.put(_key2121, _val2122); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, getCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2128 : struct.success.entrySet()) { oprot.writeI64(_iter2128.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2128.getValue().size())); for (Map.Entry _iter2129 : _iter2128.getValue().entrySet()) { oprot.writeString(_iter2129.getKey()); _iter2129.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCcl_resultTupleSchemeFactory implements SchemeFactory { public getCcl_resultTupleScheme getScheme() { return new getCcl_resultTupleScheme(); } } private static class getCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2130 : struct.success.entrySet()) { oprot.writeI64(_iter2130.getKey()); { oprot.writeI32(_iter2130.getValue().size()); for (Map.Entry _iter2131 : _iter2130.getValue().entrySet()) { oprot.writeString(_iter2131.getKey()); _iter2131.getValue().write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2132 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map2132.size); long _key2133; Map _val2134; for (int _i2135 = 0; _i2135 < _map2132.size; ++_i2135) { _key2133 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2136 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2134 = new LinkedHashMap(2*_map2136.size); String _key2137; com.cinchapi.concourse.thrift.TObject _val2138; for (int _i2139 = 0; _i2139 < _map2136.size; ++_i2139) { _key2137 = iprot.readString(); _val2138 = new com.cinchapi.concourse.thrift.TObject(); _val2138.read(iprot); _val2134.put(_key2137, _val2138); } } struct.success.put(_key2133, _val2134); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getCriteriaTime_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("getCriteriaTime_args"); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCriteriaTime_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CRITERIA((short)1, "criteria"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // CRITERIA return CRITERIA; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCriteriaTime_args.class, metaDataMap); } public getCriteriaTime_args() { } public getCriteriaTime_args( com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getCriteriaTime_args(getCriteriaTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getCriteriaTime_args deepCopy() { return new getCriteriaTime_args(this); } @Override public void clear() { this.criteria = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public getCriteriaTime_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public long getTimestamp() { return this.timestamp; } public getCriteriaTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getCriteriaTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getCriteriaTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getCriteriaTime_args) return this.equals((getCriteriaTime_args)that); return false; } public boolean equals(getCriteriaTime_args that) { if (that == null) return false; boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getCriteriaTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getCriteriaTime_args("); boolean first = true; sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public getCriteriaTime_argsStandardScheme getScheme() { return new getCriteriaTime_argsStandardScheme(); } } private static class getCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCriteriaTime_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: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getCriteriaTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public getCriteriaTime_argsTupleScheme getScheme() { return new getCriteriaTime_argsTupleScheme(); } } private static class getCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCriteria()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getCriteriaTime_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("getCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCriteriaTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(getCriteriaTime_result.class, metaDataMap); } public getCriteriaTime_result() { } public getCriteriaTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public getCriteriaTime_result(getCriteriaTime_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap(other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public getCriteriaTime_result deepCopy() { return new getCriteriaTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getCriteriaTime_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getCriteriaTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getCriteriaTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getCriteriaTime_result) return this.equals((getCriteriaTime_result)that); return false; } public boolean equals(getCriteriaTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(getCriteriaTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("getCriteriaTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 getCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public getCriteriaTime_resultStandardScheme getScheme() { return new getCriteriaTime_resultStandardScheme(); } } private static class getCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCriteriaTime_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.MAP) { { org.apache.thrift.protocol.TMap _map2140 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map2140.size); long _key2141; Map _val2142; for (int _i2143 = 0; _i2143 < _map2140.size; ++_i2143) { _key2141 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2144 = iprot.readMapBegin(); _val2142 = new LinkedHashMap(2*_map2144.size); String _key2145; com.cinchapi.concourse.thrift.TObject _val2146; for (int _i2147 = 0; _i2147 < _map2144.size; ++_i2147) { _key2145 = iprot.readString(); _val2146 = new com.cinchapi.concourse.thrift.TObject(); _val2146.read(iprot); _val2142.put(_key2145, _val2146); } iprot.readMapEnd(); } struct.success.put(_key2141, _val2142); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, getCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2148 : struct.success.entrySet()) { oprot.writeI64(_iter2148.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2148.getValue().size())); for (Map.Entry _iter2149 : _iter2148.getValue().entrySet()) { oprot.writeString(_iter2149.getKey()); _iter2149.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public getCriteriaTime_resultTupleScheme getScheme() { return new getCriteriaTime_resultTupleScheme(); } } private static class getCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2150 : struct.success.entrySet()) { oprot.writeI64(_iter2150.getKey()); { oprot.writeI32(_iter2150.getValue().size()); for (Map.Entry _iter2151 : _iter2150.getValue().entrySet()) { oprot.writeString(_iter2151.getKey()); _iter2151.getValue().write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2152 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map2152.size); long _key2153; Map _val2154; for (int _i2155 = 0; _i2155 < _map2152.size; ++_i2155) { _key2153 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2156 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2154 = new LinkedHashMap(2*_map2156.size); String _key2157; com.cinchapi.concourse.thrift.TObject _val2158; for (int _i2159 = 0; _i2159 < _map2156.size; ++_i2159) { _key2157 = iprot.readString(); _val2158 = new com.cinchapi.concourse.thrift.TObject(); _val2158.read(iprot); _val2154.put(_key2157, _val2158); } } struct.success.put(_key2153, _val2154); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class getCriteriaTimestr_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("getCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCriteriaTimestr_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CRITERIA((short)1, "criteria"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // CRITERIA return CRITERIA; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCriteriaTimestr_args.class, metaDataMap); } public getCriteriaTimestr_args() { } public getCriteriaTimestr_args( com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getCriteriaTimestr_args(getCriteriaTimestr_args other) { if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getCriteriaTimestr_args deepCopy() { return new getCriteriaTimestr_args(this); } @Override public void clear() { this.criteria = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public getCriteriaTimestr_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public String getTimestamp() { return this.timestamp; } public getCriteriaTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getCriteriaTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getCriteriaTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getCriteriaTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getCriteriaTimestr_args) return this.equals((getCriteriaTimestr_args)that); return false; } public boolean equals(getCriteriaTimestr_args that) { if (that == null) return false; boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getCriteriaTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getCriteriaTimestr_args("); boolean first = true; sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public getCriteriaTimestr_argsStandardScheme getScheme() { return new getCriteriaTimestr_argsStandardScheme(); } } private static class getCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCriteriaTimestr_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: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getCriteriaTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public getCriteriaTimestr_argsTupleScheme getScheme() { return new getCriteriaTimestr_argsTupleScheme(); } } private static class getCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCriteria()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getCriteriaTimestr_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("getCriteriaTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCriteriaTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(getCriteriaTimestr_result.class, metaDataMap); } public getCriteriaTimestr_result() { } public getCriteriaTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getCriteriaTimestr_result(getCriteriaTimestr_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap(other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public getCriteriaTimestr_result deepCopy() { return new getCriteriaTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getCriteriaTimestr_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getCriteriaTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getCriteriaTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getCriteriaTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getCriteriaTimestr_result) return this.equals((getCriteriaTimestr_result)that); return false; } public boolean equals(getCriteriaTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(getCriteriaTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("getCriteriaTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 getCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public getCriteriaTimestr_resultStandardScheme getScheme() { return new getCriteriaTimestr_resultStandardScheme(); } } private static class getCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCriteriaTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map2160 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map2160.size); long _key2161; Map _val2162; for (int _i2163 = 0; _i2163 < _map2160.size; ++_i2163) { _key2161 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2164 = iprot.readMapBegin(); _val2162 = new LinkedHashMap(2*_map2164.size); String _key2165; com.cinchapi.concourse.thrift.TObject _val2166; for (int _i2167 = 0; _i2167 < _map2164.size; ++_i2167) { _key2165 = iprot.readString(); _val2166 = new com.cinchapi.concourse.thrift.TObject(); _val2166.read(iprot); _val2162.put(_key2165, _val2166); } iprot.readMapEnd(); } struct.success.put(_key2161, _val2162); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, getCriteriaTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2168 : struct.success.entrySet()) { oprot.writeI64(_iter2168.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2168.getValue().size())); for (Map.Entry _iter2169 : _iter2168.getValue().entrySet()) { oprot.writeString(_iter2169.getKey()); _iter2169.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public getCriteriaTimestr_resultTupleScheme getScheme() { return new getCriteriaTimestr_resultTupleScheme(); } } private static class getCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2170 : struct.success.entrySet()) { oprot.writeI64(_iter2170.getKey()); { oprot.writeI32(_iter2170.getValue().size()); for (Map.Entry _iter2171 : _iter2170.getValue().entrySet()) { oprot.writeString(_iter2171.getKey()); _iter2171.getValue().write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2172 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map2172.size); long _key2173; Map _val2174; for (int _i2175 = 0; _i2175 < _map2172.size; ++_i2175) { _key2173 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2176 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2174 = new LinkedHashMap(2*_map2176.size); String _key2177; com.cinchapi.concourse.thrift.TObject _val2178; for (int _i2179 = 0; _i2179 < _map2176.size; ++_i2179) { _key2177 = iprot.readString(); _val2178 = new com.cinchapi.concourse.thrift.TObject(); _val2178.read(iprot); _val2174.put(_key2177, _val2178); } } struct.success.put(_key2173, _val2174); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getCclTime_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("getCclTime_args"); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCclTime_argsTupleSchemeFactory()); } public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CCL((short)1, "ccl"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // CCL return CCL; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCclTime_args.class, metaDataMap); } public getCclTime_args() { } public getCclTime_args( String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getCclTime_args(getCclTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetCcl()) { this.ccl = other.ccl; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getCclTime_args deepCopy() { return new getCclTime_args(this); } @Override public void clear() { this.ccl = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getCcl() { return this.ccl; } public getCclTime_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public long getTimestamp() { return this.timestamp; } public getCclTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getCclTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getCclTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getCclTime_args) return this.equals((getCclTime_args)that); return false; } public boolean equals(getCclTime_args that) { if (that == null) return false; boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getCclTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getCclTime_args("); boolean first = true; sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getCclTime_argsStandardSchemeFactory implements SchemeFactory { public getCclTime_argsStandardScheme getScheme() { return new getCclTime_argsStandardScheme(); } } private static class getCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCclTime_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: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getCclTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCclTime_argsTupleSchemeFactory implements SchemeFactory { public getCclTime_argsTupleScheme getScheme() { return new getCclTime_argsTupleScheme(); } } private static class getCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCcl()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getCclTime_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("getCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCclTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(getCclTime_result.class, metaDataMap); } public getCclTime_result() { } public getCclTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getCclTime_result(getCclTime_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap(other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public getCclTime_result deepCopy() { return new getCclTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getCclTime_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getCclTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getCclTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getCclTime_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getCclTime_result) return this.equals((getCclTime_result)that); return false; } public boolean equals(getCclTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(getCclTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("getCclTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 getCclTime_resultStandardSchemeFactory implements SchemeFactory { public getCclTime_resultStandardScheme getScheme() { return new getCclTime_resultStandardScheme(); } } private static class getCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCclTime_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.MAP) { { org.apache.thrift.protocol.TMap _map2180 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map2180.size); long _key2181; Map _val2182; for (int _i2183 = 0; _i2183 < _map2180.size; ++_i2183) { _key2181 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2184 = iprot.readMapBegin(); _val2182 = new LinkedHashMap(2*_map2184.size); String _key2185; com.cinchapi.concourse.thrift.TObject _val2186; for (int _i2187 = 0; _i2187 < _map2184.size; ++_i2187) { _key2185 = iprot.readString(); _val2186 = new com.cinchapi.concourse.thrift.TObject(); _val2186.read(iprot); _val2182.put(_key2185, _val2186); } iprot.readMapEnd(); } struct.success.put(_key2181, _val2182); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, getCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2188 : struct.success.entrySet()) { oprot.writeI64(_iter2188.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2188.getValue().size())); for (Map.Entry _iter2189 : _iter2188.getValue().entrySet()) { oprot.writeString(_iter2189.getKey()); _iter2189.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCclTime_resultTupleSchemeFactory implements SchemeFactory { public getCclTime_resultTupleScheme getScheme() { return new getCclTime_resultTupleScheme(); } } private static class getCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2190 : struct.success.entrySet()) { oprot.writeI64(_iter2190.getKey()); { oprot.writeI32(_iter2190.getValue().size()); for (Map.Entry _iter2191 : _iter2190.getValue().entrySet()) { oprot.writeString(_iter2191.getKey()); _iter2191.getValue().write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2192 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map2192.size); long _key2193; Map _val2194; for (int _i2195 = 0; _i2195 < _map2192.size; ++_i2195) { _key2193 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2196 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2194 = new LinkedHashMap(2*_map2196.size); String _key2197; com.cinchapi.concourse.thrift.TObject _val2198; for (int _i2199 = 0; _i2199 < _map2196.size; ++_i2199) { _key2197 = iprot.readString(); _val2198 = new com.cinchapi.concourse.thrift.TObject(); _val2198.read(iprot); _val2194.put(_key2197, _val2198); } } struct.success.put(_key2193, _val2194); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getCclTimestr_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("getCclTimestr_args"); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCclTimestr_argsTupleSchemeFactory()); } public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CCL((short)1, "ccl"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // CCL return CCL; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCclTimestr_args.class, metaDataMap); } public getCclTimestr_args() { } public getCclTimestr_args( String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getCclTimestr_args(getCclTimestr_args other) { if (other.isSetCcl()) { this.ccl = other.ccl; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getCclTimestr_args deepCopy() { return new getCclTimestr_args(this); } @Override public void clear() { this.ccl = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getCcl() { return this.ccl; } public getCclTimestr_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public String getTimestamp() { return this.timestamp; } public getCclTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getCclTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getCclTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getCclTimestr_args) return this.equals((getCclTimestr_args)that); return false; } public boolean equals(getCclTimestr_args that) { if (that == null) return false; boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getCclTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getCclTimestr_args("); boolean first = true; sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public getCclTimestr_argsStandardScheme getScheme() { return new getCclTimestr_argsStandardScheme(); } } private static class getCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCclTimestr_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: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getCclTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public getCclTimestr_argsTupleScheme getScheme() { return new getCclTimestr_argsTupleScheme(); } } private static class getCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCcl()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getCclTimestr_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("getCclTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getCclTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(getCclTimestr_result.class, metaDataMap); } public getCclTimestr_result() { } public getCclTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getCclTimestr_result(getCclTimestr_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap(other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public getCclTimestr_result deepCopy() { return new getCclTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getCclTimestr_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getCclTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getCclTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getCclTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getCclTimestr_result) return this.equals((getCclTimestr_result)that); return false; } public boolean equals(getCclTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(getCclTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("getCclTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 getCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public getCclTimestr_resultStandardScheme getScheme() { return new getCclTimestr_resultStandardScheme(); } } private static class getCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getCclTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map2200 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map2200.size); long _key2201; Map _val2202; for (int _i2203 = 0; _i2203 < _map2200.size; ++_i2203) { _key2201 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2204 = iprot.readMapBegin(); _val2202 = new LinkedHashMap(2*_map2204.size); String _key2205; com.cinchapi.concourse.thrift.TObject _val2206; for (int _i2207 = 0; _i2207 < _map2204.size; ++_i2207) { _key2205 = iprot.readString(); _val2206 = new com.cinchapi.concourse.thrift.TObject(); _val2206.read(iprot); _val2202.put(_key2205, _val2206); } iprot.readMapEnd(); } struct.success.put(_key2201, _val2202); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, getCclTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2208 : struct.success.entrySet()) { oprot.writeI64(_iter2208.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2208.getValue().size())); for (Map.Entry _iter2209 : _iter2208.getValue().entrySet()) { oprot.writeString(_iter2209.getKey()); _iter2209.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public getCclTimestr_resultTupleScheme getScheme() { return new getCclTimestr_resultTupleScheme(); } } private static class getCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2210 : struct.success.entrySet()) { oprot.writeI64(_iter2210.getKey()); { oprot.writeI32(_iter2210.getValue().size()); for (Map.Entry _iter2211 : _iter2210.getValue().entrySet()) { oprot.writeString(_iter2211.getKey()); _iter2211.getValue().write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2212 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map2212.size); long _key2213; Map _val2214; for (int _i2215 = 0; _i2215 < _map2212.size; ++_i2215) { _key2213 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2216 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2214 = new LinkedHashMap(2*_map2216.size); String _key2217; com.cinchapi.concourse.thrift.TObject _val2218; for (int _i2219 = 0; _i2219 < _map2216.size; ++_i2219) { _key2217 = iprot.readString(); _val2218 = new com.cinchapi.concourse.thrift.TObject(); _val2218.read(iprot); _val2214.put(_key2217, _val2218); } } struct.success.put(_key2213, _val2214); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeyCcl_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("getKeyCcl_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCcl_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CCL((short)2, "ccl"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CCL return CCL; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeyCcl_args.class, metaDataMap); } public getKeyCcl_args() { } public getKeyCcl_args( String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyCcl_args(getKeyCcl_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetCcl()) { this.ccl = other.ccl; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyCcl_args deepCopy() { return new getKeyCcl_args(this); } @Override public void clear() { this.key = null; this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyCcl_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public String getCcl() { return this.ccl; } public getKeyCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyCcl_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyCcl_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyCcl_args) return this.equals((getKeyCcl_args)that); return false; } public boolean equals(getKeyCcl_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyCcl_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeyCcl_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeyCcl_argsStandardSchemeFactory implements SchemeFactory { public getKeyCcl_argsStandardScheme getScheme() { return new getKeyCcl_argsStandardScheme(); } } private static class getKeyCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCcl_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeyCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCcl_argsTupleSchemeFactory implements SchemeFactory { public getKeyCcl_argsTupleScheme getScheme() { return new getKeyCcl_argsTupleScheme(); } } private static class getKeyCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyCcl_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("getKeyCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCcl_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(getKeyCcl_result.class, metaDataMap); } public getKeyCcl_result() { } public getKeyCcl_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeyCcl_result(getKeyCcl_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success.size()); for (Map.Entry other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public getKeyCcl_result deepCopy() { return new getKeyCcl_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, com.cinchapi.concourse.thrift.TObject val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeyCcl_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyCcl_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyCcl_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeyCcl_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyCcl_result) return this.equals((getKeyCcl_result)that); return false; } public boolean equals(getKeyCcl_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(getKeyCcl_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("getKeyCcl_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 getKeyCcl_resultStandardSchemeFactory implements SchemeFactory { public getKeyCcl_resultStandardScheme getScheme() { return new getKeyCcl_resultStandardScheme(); } } private static class getKeyCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCcl_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.MAP) { { org.apache.thrift.protocol.TMap _map2220 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map2220.size); long _key2221; com.cinchapi.concourse.thrift.TObject _val2222; for (int _i2223 = 0; _i2223 < _map2220.size; ++_i2223) { _key2221 = iprot.readI64(); _val2222 = new com.cinchapi.concourse.thrift.TObject(); _val2222.read(iprot); struct.success.put(_key2221, _val2222); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, getKeyCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter2224 : struct.success.entrySet()) { oprot.writeI64(_iter2224.getKey()); _iter2224.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCcl_resultTupleSchemeFactory implements SchemeFactory { public getKeyCcl_resultTupleScheme getScheme() { return new getKeyCcl_resultTupleScheme(); } } private static class getKeyCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter2225 : struct.success.entrySet()) { oprot.writeI64(_iter2225.getKey()); _iter2225.getValue().write(oprot); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2226 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap(2*_map2226.size); long _key2227; com.cinchapi.concourse.thrift.TObject _val2228; for (int _i2229 = 0; _i2229 < _map2226.size; ++_i2229) { _key2227 = iprot.readI64(); _val2228 = new com.cinchapi.concourse.thrift.TObject(); _val2228.read(iprot); struct.success.put(_key2227, _val2228); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeyCriteriaTime_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("getKeyCriteriaTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCriteriaTime_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CRITERIA((short)2, "criteria"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeyCriteriaTime_args.class, metaDataMap); } public getKeyCriteriaTime_args() { } public getKeyCriteriaTime_args( String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyCriteriaTime_args(getKeyCriteriaTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyCriteriaTime_args deepCopy() { return new getKeyCriteriaTime_args(this); } @Override public void clear() { this.key = null; this.criteria = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyCriteriaTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public getKeyCriteriaTime_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public long getTimestamp() { return this.timestamp; } public getKeyCriteriaTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyCriteriaTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyCriteriaTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyCriteriaTime_args) return this.equals((getKeyCriteriaTime_args)that); return false; } public boolean equals(getKeyCriteriaTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyCriteriaTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeyCriteriaTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeyCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public getKeyCriteriaTime_argsStandardScheme getScheme() { return new getKeyCriteriaTime_argsStandardScheme(); } } private static class getKeyCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCriteriaTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeyCriteriaTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public getKeyCriteriaTime_argsTupleScheme getScheme() { return new getKeyCriteriaTime_argsTupleScheme(); } } private static class getKeyCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyCriteriaTime_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("getKeyCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCriteriaTime_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(getKeyCriteriaTime_result.class, metaDataMap); } public getKeyCriteriaTime_result() { } public getKeyCriteriaTime_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public getKeyCriteriaTime_result(getKeyCriteriaTime_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success.size()); for (Map.Entry other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public getKeyCriteriaTime_result deepCopy() { return new getKeyCriteriaTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, com.cinchapi.concourse.thrift.TObject val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeyCriteriaTime_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyCriteriaTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyCriteriaTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyCriteriaTime_result) return this.equals((getKeyCriteriaTime_result)that); return false; } public boolean equals(getKeyCriteriaTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(getKeyCriteriaTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("getKeyCriteriaTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 getKeyCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public getKeyCriteriaTime_resultStandardScheme getScheme() { return new getKeyCriteriaTime_resultStandardScheme(); } } private static class getKeyCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCriteriaTime_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.MAP) { { org.apache.thrift.protocol.TMap _map2230 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map2230.size); long _key2231; com.cinchapi.concourse.thrift.TObject _val2232; for (int _i2233 = 0; _i2233 < _map2230.size; ++_i2233) { _key2231 = iprot.readI64(); _val2232 = new com.cinchapi.concourse.thrift.TObject(); _val2232.read(iprot); struct.success.put(_key2231, _val2232); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, getKeyCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter2234 : struct.success.entrySet()) { oprot.writeI64(_iter2234.getKey()); _iter2234.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public getKeyCriteriaTime_resultTupleScheme getScheme() { return new getKeyCriteriaTime_resultTupleScheme(); } } private static class getKeyCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter2235 : struct.success.entrySet()) { oprot.writeI64(_iter2235.getKey()); _iter2235.getValue().write(oprot); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2236 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap(2*_map2236.size); long _key2237; com.cinchapi.concourse.thrift.TObject _val2238; for (int _i2239 = 0; _i2239 < _map2236.size; ++_i2239) { _key2237 = iprot.readI64(); _val2238 = new com.cinchapi.concourse.thrift.TObject(); _val2238.read(iprot); struct.success.put(_key2237, _val2238); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class getKeyCriteriaTimestr_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("getKeyCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCriteriaTimestr_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CRITERIA((short)2, "criteria"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeyCriteriaTimestr_args.class, metaDataMap); } public getKeyCriteriaTimestr_args() { } public getKeyCriteriaTimestr_args( String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyCriteriaTimestr_args(getKeyCriteriaTimestr_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyCriteriaTimestr_args deepCopy() { return new getKeyCriteriaTimestr_args(this); } @Override public void clear() { this.key = null; this.criteria = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyCriteriaTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public getKeyCriteriaTimestr_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public String getTimestamp() { return this.timestamp; } public getKeyCriteriaTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyCriteriaTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyCriteriaTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyCriteriaTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyCriteriaTimestr_args) return this.equals((getKeyCriteriaTimestr_args)that); return false; } public boolean equals(getKeyCriteriaTimestr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyCriteriaTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeyCriteriaTimestr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeyCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public getKeyCriteriaTimestr_argsStandardScheme getScheme() { return new getKeyCriteriaTimestr_argsStandardScheme(); } } private static class getKeyCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCriteriaTimestr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public getKeyCriteriaTimestr_argsTupleScheme getScheme() { return new getKeyCriteriaTimestr_argsTupleScheme(); } } private static class getKeyCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyCriteriaTimestr_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("getKeyCriteriaTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCriteriaTimestr_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(getKeyCriteriaTimestr_result.class, metaDataMap); } public getKeyCriteriaTimestr_result() { } public getKeyCriteriaTimestr_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeyCriteriaTimestr_result(getKeyCriteriaTimestr_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success.size()); for (Map.Entry other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public getKeyCriteriaTimestr_result deepCopy() { return new getKeyCriteriaTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, com.cinchapi.concourse.thrift.TObject val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeyCriteriaTimestr_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyCriteriaTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyCriteriaTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeyCriteriaTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyCriteriaTimestr_result) return this.equals((getKeyCriteriaTimestr_result)that); return false; } public boolean equals(getKeyCriteriaTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(getKeyCriteriaTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("getKeyCriteriaTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 getKeyCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public getKeyCriteriaTimestr_resultStandardScheme getScheme() { return new getKeyCriteriaTimestr_resultStandardScheme(); } } private static class getKeyCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCriteriaTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map2240 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map2240.size); long _key2241; com.cinchapi.concourse.thrift.TObject _val2242; for (int _i2243 = 0; _i2243 < _map2240.size; ++_i2243) { _key2241 = iprot.readI64(); _val2242 = new com.cinchapi.concourse.thrift.TObject(); _val2242.read(iprot); struct.success.put(_key2241, _val2242); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, getKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter2244 : struct.success.entrySet()) { oprot.writeI64(_iter2244.getKey()); _iter2244.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public getKeyCriteriaTimestr_resultTupleScheme getScheme() { return new getKeyCriteriaTimestr_resultTupleScheme(); } } private static class getKeyCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter2245 : struct.success.entrySet()) { oprot.writeI64(_iter2245.getKey()); _iter2245.getValue().write(oprot); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2246 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap(2*_map2246.size); long _key2247; com.cinchapi.concourse.thrift.TObject _val2248; for (int _i2249 = 0; _i2249 < _map2246.size; ++_i2249) { _key2247 = iprot.readI64(); _val2248 = new com.cinchapi.concourse.thrift.TObject(); _val2248.read(iprot); struct.success.put(_key2247, _val2248); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeyCclTime_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("getKeyCclTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCclTime_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CCL((short)2, "ccl"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeyCclTime_args.class, metaDataMap); } public getKeyCclTime_args() { } public getKeyCclTime_args( String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyCclTime_args(getKeyCclTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetCcl()) { this.ccl = other.ccl; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyCclTime_args deepCopy() { return new getKeyCclTime_args(this); } @Override public void clear() { this.key = null; this.ccl = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyCclTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public String getCcl() { return this.ccl; } public getKeyCclTime_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public long getTimestamp() { return this.timestamp; } public getKeyCclTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyCclTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyCclTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyCclTime_args) return this.equals((getKeyCclTime_args)that); return false; } public boolean equals(getKeyCclTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyCclTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeyCclTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeyCclTime_argsStandardSchemeFactory implements SchemeFactory { public getKeyCclTime_argsStandardScheme getScheme() { return new getKeyCclTime_argsStandardScheme(); } } private static class getKeyCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCclTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeyCclTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCclTime_argsTupleSchemeFactory implements SchemeFactory { public getKeyCclTime_argsTupleScheme getScheme() { return new getKeyCclTime_argsTupleScheme(); } } private static class getKeyCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyCclTime_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("getKeyCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCclTime_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(getKeyCclTime_result.class, metaDataMap); } public getKeyCclTime_result() { } public getKeyCclTime_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeyCclTime_result(getKeyCclTime_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success.size()); for (Map.Entry other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public getKeyCclTime_result deepCopy() { return new getKeyCclTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, com.cinchapi.concourse.thrift.TObject val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeyCclTime_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyCclTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyCclTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeyCclTime_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyCclTime_result) return this.equals((getKeyCclTime_result)that); return false; } public boolean equals(getKeyCclTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(getKeyCclTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("getKeyCclTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 getKeyCclTime_resultStandardSchemeFactory implements SchemeFactory { public getKeyCclTime_resultStandardScheme getScheme() { return new getKeyCclTime_resultStandardScheme(); } } private static class getKeyCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCclTime_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.MAP) { { org.apache.thrift.protocol.TMap _map2250 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map2250.size); long _key2251; com.cinchapi.concourse.thrift.TObject _val2252; for (int _i2253 = 0; _i2253 < _map2250.size; ++_i2253) { _key2251 = iprot.readI64(); _val2252 = new com.cinchapi.concourse.thrift.TObject(); _val2252.read(iprot); struct.success.put(_key2251, _val2252); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, getKeyCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter2254 : struct.success.entrySet()) { oprot.writeI64(_iter2254.getKey()); _iter2254.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCclTime_resultTupleSchemeFactory implements SchemeFactory { public getKeyCclTime_resultTupleScheme getScheme() { return new getKeyCclTime_resultTupleScheme(); } } private static class getKeyCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter2255 : struct.success.entrySet()) { oprot.writeI64(_iter2255.getKey()); _iter2255.getValue().write(oprot); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2256 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap(2*_map2256.size); long _key2257; com.cinchapi.concourse.thrift.TObject _val2258; for (int _i2259 = 0; _i2259 < _map2256.size; ++_i2259) { _key2257 = iprot.readI64(); _val2258 = new com.cinchapi.concourse.thrift.TObject(); _val2258.read(iprot); struct.success.put(_key2257, _val2258); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeyCclTimestr_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("getKeyCclTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCclTimestr_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CCL((short)2, "ccl"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeyCclTimestr_args.class, metaDataMap); } public getKeyCclTimestr_args() { } public getKeyCclTimestr_args( String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeyCclTimestr_args(getKeyCclTimestr_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetCcl()) { this.ccl = other.ccl; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeyCclTimestr_args deepCopy() { return new getKeyCclTimestr_args(this); } @Override public void clear() { this.key = null; this.ccl = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public getKeyCclTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public String getCcl() { return this.ccl; } public getKeyCclTimestr_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public String getTimestamp() { return this.timestamp; } public getKeyCclTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeyCclTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeyCclTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeyCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyCclTimestr_args) return this.equals((getKeyCclTimestr_args)that); return false; } public boolean equals(getKeyCclTimestr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeyCclTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeyCclTimestr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeyCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public getKeyCclTimestr_argsStandardScheme getScheme() { return new getKeyCclTimestr_argsStandardScheme(); } } private static class getKeyCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCclTimestr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeyCclTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public getKeyCclTimestr_argsTupleScheme getScheme() { return new getKeyCclTimestr_argsTupleScheme(); } } private static class getKeyCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeyCclTimestr_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("getKeyCclTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeyCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeyCclTimestr_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(getKeyCclTimestr_result.class, metaDataMap); } public getKeyCclTimestr_result() { } public getKeyCclTimestr_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeyCclTimestr_result(getKeyCclTimestr_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success.size()); for (Map.Entry other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value); __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public getKeyCclTimestr_result deepCopy() { return new getKeyCclTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, com.cinchapi.concourse.thrift.TObject val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public getKeyCclTimestr_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeyCclTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeyCclTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeyCclTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeyCclTimestr_result) return this.equals((getKeyCclTimestr_result)that); return false; } public boolean equals(getKeyCclTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(getKeyCclTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("getKeyCclTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 getKeyCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public getKeyCclTimestr_resultStandardScheme getScheme() { return new getKeyCclTimestr_resultStandardScheme(); } } private static class getKeyCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeyCclTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map2260 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map2260.size); long _key2261; com.cinchapi.concourse.thrift.TObject _val2262; for (int _i2263 = 0; _i2263 < _map2260.size; ++_i2263) { _key2261 = iprot.readI64(); _val2262 = new com.cinchapi.concourse.thrift.TObject(); _val2262.read(iprot); struct.success.put(_key2261, _val2262); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, getKeyCclTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Map.Entry _iter2264 : struct.success.entrySet()) { oprot.writeI64(_iter2264.getKey()); _iter2264.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeyCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public getKeyCclTimestr_resultTupleScheme getScheme() { return new getKeyCclTimestr_resultTupleScheme(); } } private static class getKeyCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeyCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter2265 : struct.success.entrySet()) { oprot.writeI64(_iter2265.getKey()); _iter2265.getValue().write(oprot); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeyCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2266 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new LinkedHashMap(2*_map2266.size); long _key2267; com.cinchapi.concourse.thrift.TObject _val2268; for (int _i2269 = 0; _i2269 < _map2266.size; ++_i2269) { _key2267 = iprot.readI64(); _val2268 = new com.cinchapi.concourse.thrift.TObject(); _val2268.read(iprot); struct.success.put(_key2267, _val2268); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeysCriteria_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("getKeysCriteria_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCriteria_argsTupleSchemeFactory()); } public List keys; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), CRITERIA((short)2, "criteria"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // CRITERIA return CRITERIA; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeysCriteria_args.class, metaDataMap); } public getKeysCriteria_args() { } public getKeysCriteria_args( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysCriteria_args(getKeysCriteria_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysCriteria_args deepCopy() { return new getKeysCriteria_args(this); } @Override public void clear() { this.keys = null; this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysCriteria_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public getKeysCriteria_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysCriteria_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysCriteria_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysCriteria_args) return this.equals((getKeysCriteria_args)that); return false; } public boolean equals(getKeysCriteria_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysCriteria_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeysCriteria_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeysCriteria_argsStandardSchemeFactory implements SchemeFactory { public getKeysCriteria_argsStandardScheme getScheme() { return new getKeysCriteria_argsStandardScheme(); } } private static class getKeysCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCriteria_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2270 = iprot.readListBegin(); struct.keys = new ArrayList(_list2270.size); String _elem2271; for (int _i2272 = 0; _i2272 < _list2270.size; ++_i2272) { _elem2271 = iprot.readString(); struct.keys.add(_elem2271); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeysCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2273 : struct.keys) { oprot.writeString(_iter2273); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCriteria_argsTupleSchemeFactory implements SchemeFactory { public getKeysCriteria_argsTupleScheme getScheme() { return new getKeysCriteria_argsTupleScheme(); } } private static class getKeysCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2274 : struct.keys) { oprot.writeString(_iter2274); } } } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2275 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2275.size); String _elem2276; for (int _i2277 = 0; _i2277 < _list2275.size; ++_i2277) { _elem2276 = iprot.readString(); struct.keys.add(_elem2276); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysCriteria_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("getKeysCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCriteria_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(getKeysCriteria_result.class, metaDataMap); } public getKeysCriteria_result() { } public getKeysCriteria_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public getKeysCriteria_result(getKeysCriteria_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap(other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public getKeysCriteria_result deepCopy() { return new getKeysCriteria_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getKeysCriteria_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysCriteria_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysCriteria_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysCriteria_result) return this.equals((getKeysCriteria_result)that); return false; } public boolean equals(getKeysCriteria_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(getKeysCriteria_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("getKeysCriteria_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 getKeysCriteria_resultStandardSchemeFactory implements SchemeFactory { public getKeysCriteria_resultStandardScheme getScheme() { return new getKeysCriteria_resultStandardScheme(); } } private static class getKeysCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCriteria_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.MAP) { { org.apache.thrift.protocol.TMap _map2278 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map2278.size); long _key2279; Map _val2280; for (int _i2281 = 0; _i2281 < _map2278.size; ++_i2281) { _key2279 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2282 = iprot.readMapBegin(); _val2280 = new LinkedHashMap(2*_map2282.size); String _key2283; com.cinchapi.concourse.thrift.TObject _val2284; for (int _i2285 = 0; _i2285 < _map2282.size; ++_i2285) { _key2283 = iprot.readString(); _val2284 = new com.cinchapi.concourse.thrift.TObject(); _val2284.read(iprot); _val2280.put(_key2283, _val2284); } iprot.readMapEnd(); } struct.success.put(_key2279, _val2280); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, getKeysCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2286 : struct.success.entrySet()) { oprot.writeI64(_iter2286.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2286.getValue().size())); for (Map.Entry _iter2287 : _iter2286.getValue().entrySet()) { oprot.writeString(_iter2287.getKey()); _iter2287.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCriteria_resultTupleSchemeFactory implements SchemeFactory { public getKeysCriteria_resultTupleScheme getScheme() { return new getKeysCriteria_resultTupleScheme(); } } private static class getKeysCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2288 : struct.success.entrySet()) { oprot.writeI64(_iter2288.getKey()); { oprot.writeI32(_iter2288.getValue().size()); for (Map.Entry _iter2289 : _iter2288.getValue().entrySet()) { oprot.writeString(_iter2289.getKey()); _iter2289.getValue().write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2290 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map2290.size); long _key2291; Map _val2292; for (int _i2293 = 0; _i2293 < _map2290.size; ++_i2293) { _key2291 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2294 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2292 = new LinkedHashMap(2*_map2294.size); String _key2295; com.cinchapi.concourse.thrift.TObject _val2296; for (int _i2297 = 0; _i2297 < _map2294.size; ++_i2297) { _key2295 = iprot.readString(); _val2296 = new com.cinchapi.concourse.thrift.TObject(); _val2296.read(iprot); _val2292.put(_key2295, _val2296); } } struct.success.put(_key2291, _val2292); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class getKeysCcl_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("getKeysCcl_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCcl_argsTupleSchemeFactory()); } public List keys; // required public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), CCL((short)2, "ccl"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // CCL return CCL; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeysCcl_args.class, metaDataMap); } public getKeysCcl_args() { } public getKeysCcl_args( List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysCcl_args(getKeysCcl_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetCcl()) { this.ccl = other.ccl; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysCcl_args deepCopy() { return new getKeysCcl_args(this); } @Override public void clear() { this.keys = null; this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysCcl_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public String getCcl() { return this.ccl; } public getKeysCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysCcl_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysCcl_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysCcl_args) return this.equals((getKeysCcl_args)that); return false; } public boolean equals(getKeysCcl_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysCcl_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeysCcl_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeysCcl_argsStandardSchemeFactory implements SchemeFactory { public getKeysCcl_argsStandardScheme getScheme() { return new getKeysCcl_argsStandardScheme(); } } private static class getKeysCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCcl_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2298 = iprot.readListBegin(); struct.keys = new ArrayList(_list2298.size); String _elem2299; for (int _i2300 = 0; _i2300 < _list2298.size; ++_i2300) { _elem2299 = iprot.readString(); struct.keys.add(_elem2299); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeysCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2301 : struct.keys) { oprot.writeString(_iter2301); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCcl_argsTupleSchemeFactory implements SchemeFactory { public getKeysCcl_argsTupleScheme getScheme() { return new getKeysCcl_argsTupleScheme(); } } private static class getKeysCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2302 : struct.keys) { oprot.writeString(_iter2302); } } } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2303 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2303.size); String _elem2304; for (int _i2305 = 0; _i2305 < _list2303.size; ++_i2305) { _elem2304 = iprot.readString(); struct.keys.add(_elem2304); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysCcl_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("getKeysCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCcl_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(getKeysCcl_result.class, metaDataMap); } public getKeysCcl_result() { } public getKeysCcl_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeysCcl_result(getKeysCcl_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap(other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public getKeysCcl_result deepCopy() { return new getKeysCcl_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getKeysCcl_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysCcl_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysCcl_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeysCcl_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysCcl_result) return this.equals((getKeysCcl_result)that); return false; } public boolean equals(getKeysCcl_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(getKeysCcl_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("getKeysCcl_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 getKeysCcl_resultStandardSchemeFactory implements SchemeFactory { public getKeysCcl_resultStandardScheme getScheme() { return new getKeysCcl_resultStandardScheme(); } } private static class getKeysCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCcl_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.MAP) { { org.apache.thrift.protocol.TMap _map2306 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map2306.size); long _key2307; Map _val2308; for (int _i2309 = 0; _i2309 < _map2306.size; ++_i2309) { _key2307 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2310 = iprot.readMapBegin(); _val2308 = new LinkedHashMap(2*_map2310.size); String _key2311; com.cinchapi.concourse.thrift.TObject _val2312; for (int _i2313 = 0; _i2313 < _map2310.size; ++_i2313) { _key2311 = iprot.readString(); _val2312 = new com.cinchapi.concourse.thrift.TObject(); _val2312.read(iprot); _val2308.put(_key2311, _val2312); } iprot.readMapEnd(); } struct.success.put(_key2307, _val2308); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, getKeysCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2314 : struct.success.entrySet()) { oprot.writeI64(_iter2314.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2314.getValue().size())); for (Map.Entry _iter2315 : _iter2314.getValue().entrySet()) { oprot.writeString(_iter2315.getKey()); _iter2315.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCcl_resultTupleSchemeFactory implements SchemeFactory { public getKeysCcl_resultTupleScheme getScheme() { return new getKeysCcl_resultTupleScheme(); } } private static class getKeysCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2316 : struct.success.entrySet()) { oprot.writeI64(_iter2316.getKey()); { oprot.writeI32(_iter2316.getValue().size()); for (Map.Entry _iter2317 : _iter2316.getValue().entrySet()) { oprot.writeString(_iter2317.getKey()); _iter2317.getValue().write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2318 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map2318.size); long _key2319; Map _val2320; for (int _i2321 = 0; _i2321 < _map2318.size; ++_i2321) { _key2319 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2322 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2320 = new LinkedHashMap(2*_map2322.size); String _key2323; com.cinchapi.concourse.thrift.TObject _val2324; for (int _i2325 = 0; _i2325 < _map2322.size; ++_i2325) { _key2323 = iprot.readString(); _val2324 = new com.cinchapi.concourse.thrift.TObject(); _val2324.read(iprot); _val2320.put(_key2323, _val2324); } } struct.success.put(_key2319, _val2320); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeysCriteriaTime_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("getKeysCriteriaTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCriteriaTime_argsTupleSchemeFactory()); } public List keys; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), CRITERIA((short)2, "criteria"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeysCriteriaTime_args.class, metaDataMap); } public getKeysCriteriaTime_args() { } public getKeysCriteriaTime_args( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysCriteriaTime_args(getKeysCriteriaTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysCriteriaTime_args deepCopy() { return new getKeysCriteriaTime_args(this); } @Override public void clear() { this.keys = null; this.criteria = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysCriteriaTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public getKeysCriteriaTime_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public long getTimestamp() { return this.timestamp; } public getKeysCriteriaTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysCriteriaTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysCriteriaTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysCriteriaTime_args) return this.equals((getKeysCriteriaTime_args)that); return false; } public boolean equals(getKeysCriteriaTime_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysCriteriaTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeysCriteriaTime_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeysCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public getKeysCriteriaTime_argsStandardScheme getScheme() { return new getKeysCriteriaTime_argsStandardScheme(); } } private static class getKeysCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCriteriaTime_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2326 = iprot.readListBegin(); struct.keys = new ArrayList(_list2326.size); String _elem2327; for (int _i2328 = 0; _i2328 < _list2326.size; ++_i2328) { _elem2327 = iprot.readString(); struct.keys.add(_elem2327); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeysCriteriaTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2329 : struct.keys) { oprot.writeString(_iter2329); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public getKeysCriteriaTime_argsTupleScheme getScheme() { return new getKeysCriteriaTime_argsTupleScheme(); } } private static class getKeysCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2330 : struct.keys) { oprot.writeString(_iter2330); } } } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2331 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2331.size); String _elem2332; for (int _i2333 = 0; _i2333 < _list2331.size; ++_i2333) { _elem2332 = iprot.readString(); struct.keys.add(_elem2332); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysCriteriaTime_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("getKeysCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCriteriaTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(getKeysCriteriaTime_result.class, metaDataMap); } public getKeysCriteriaTime_result() { } public getKeysCriteriaTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public getKeysCriteriaTime_result(getKeysCriteriaTime_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap(other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public getKeysCriteriaTime_result deepCopy() { return new getKeysCriteriaTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getKeysCriteriaTime_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysCriteriaTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysCriteriaTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysCriteriaTime_result) return this.equals((getKeysCriteriaTime_result)that); return false; } public boolean equals(getKeysCriteriaTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(getKeysCriteriaTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("getKeysCriteriaTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 getKeysCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public getKeysCriteriaTime_resultStandardScheme getScheme() { return new getKeysCriteriaTime_resultStandardScheme(); } } private static class getKeysCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCriteriaTime_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.MAP) { { org.apache.thrift.protocol.TMap _map2334 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map2334.size); long _key2335; Map _val2336; for (int _i2337 = 0; _i2337 < _map2334.size; ++_i2337) { _key2335 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2338 = iprot.readMapBegin(); _val2336 = new LinkedHashMap(2*_map2338.size); String _key2339; com.cinchapi.concourse.thrift.TObject _val2340; for (int _i2341 = 0; _i2341 < _map2338.size; ++_i2341) { _key2339 = iprot.readString(); _val2340 = new com.cinchapi.concourse.thrift.TObject(); _val2340.read(iprot); _val2336.put(_key2339, _val2340); } iprot.readMapEnd(); } struct.success.put(_key2335, _val2336); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, getKeysCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2342 : struct.success.entrySet()) { oprot.writeI64(_iter2342.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2342.getValue().size())); for (Map.Entry _iter2343 : _iter2342.getValue().entrySet()) { oprot.writeString(_iter2343.getKey()); _iter2343.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public getKeysCriteriaTime_resultTupleScheme getScheme() { return new getKeysCriteriaTime_resultTupleScheme(); } } private static class getKeysCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2344 : struct.success.entrySet()) { oprot.writeI64(_iter2344.getKey()); { oprot.writeI32(_iter2344.getValue().size()); for (Map.Entry _iter2345 : _iter2344.getValue().entrySet()) { oprot.writeString(_iter2345.getKey()); _iter2345.getValue().write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2346 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map2346.size); long _key2347; Map _val2348; for (int _i2349 = 0; _i2349 < _map2346.size; ++_i2349) { _key2347 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2350 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2348 = new LinkedHashMap(2*_map2350.size); String _key2351; com.cinchapi.concourse.thrift.TObject _val2352; for (int _i2353 = 0; _i2353 < _map2350.size; ++_i2353) { _key2351 = iprot.readString(); _val2352 = new com.cinchapi.concourse.thrift.TObject(); _val2352.read(iprot); _val2348.put(_key2351, _val2352); } } struct.success.put(_key2347, _val2348); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class getKeysCriteriaTimestr_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("getKeysCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCriteriaTimestr_argsTupleSchemeFactory()); } public List keys; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), CRITERIA((short)2, "criteria"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeysCriteriaTimestr_args.class, metaDataMap); } public getKeysCriteriaTimestr_args() { } public getKeysCriteriaTimestr_args( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysCriteriaTimestr_args(getKeysCriteriaTimestr_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysCriteriaTimestr_args deepCopy() { return new getKeysCriteriaTimestr_args(this); } @Override public void clear() { this.keys = null; this.criteria = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysCriteriaTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public getKeysCriteriaTimestr_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public String getTimestamp() { return this.timestamp; } public getKeysCriteriaTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysCriteriaTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysCriteriaTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysCriteriaTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysCriteriaTimestr_args) return this.equals((getKeysCriteriaTimestr_args)that); return false; } public boolean equals(getKeysCriteriaTimestr_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysCriteriaTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeysCriteriaTimestr_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeysCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public getKeysCriteriaTimestr_argsStandardScheme getScheme() { return new getKeysCriteriaTimestr_argsStandardScheme(); } } private static class getKeysCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCriteriaTimestr_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2354 = iprot.readListBegin(); struct.keys = new ArrayList(_list2354.size); String _elem2355; for (int _i2356 = 0; _i2356 < _list2354.size; ++_i2356) { _elem2355 = iprot.readString(); struct.keys.add(_elem2355); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2357 : struct.keys) { oprot.writeString(_iter2357); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public getKeysCriteriaTimestr_argsTupleScheme getScheme() { return new getKeysCriteriaTimestr_argsTupleScheme(); } } private static class getKeysCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2358 : struct.keys) { oprot.writeString(_iter2358); } } } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2359 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2359.size); String _elem2360; for (int _i2361 = 0; _i2361 < _list2359.size; ++_i2361) { _elem2360 = iprot.readString(); struct.keys.add(_elem2360); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysCriteriaTimestr_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("getKeysCriteriaTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCriteriaTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(getKeysCriteriaTimestr_result.class, metaDataMap); } public getKeysCriteriaTimestr_result() { } public getKeysCriteriaTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeysCriteriaTimestr_result(getKeysCriteriaTimestr_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap(other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public getKeysCriteriaTimestr_result deepCopy() { return new getKeysCriteriaTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getKeysCriteriaTimestr_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysCriteriaTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysCriteriaTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeysCriteriaTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysCriteriaTimestr_result) return this.equals((getKeysCriteriaTimestr_result)that); return false; } public boolean equals(getKeysCriteriaTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(getKeysCriteriaTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("getKeysCriteriaTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 getKeysCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public getKeysCriteriaTimestr_resultStandardScheme getScheme() { return new getKeysCriteriaTimestr_resultStandardScheme(); } } private static class getKeysCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCriteriaTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map2362 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map2362.size); long _key2363; Map _val2364; for (int _i2365 = 0; _i2365 < _map2362.size; ++_i2365) { _key2363 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2366 = iprot.readMapBegin(); _val2364 = new LinkedHashMap(2*_map2366.size); String _key2367; com.cinchapi.concourse.thrift.TObject _val2368; for (int _i2369 = 0; _i2369 < _map2366.size; ++_i2369) { _key2367 = iprot.readString(); _val2368 = new com.cinchapi.concourse.thrift.TObject(); _val2368.read(iprot); _val2364.put(_key2367, _val2368); } iprot.readMapEnd(); } struct.success.put(_key2363, _val2364); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, getKeysCriteriaTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2370 : struct.success.entrySet()) { oprot.writeI64(_iter2370.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2370.getValue().size())); for (Map.Entry _iter2371 : _iter2370.getValue().entrySet()) { oprot.writeString(_iter2371.getKey()); _iter2371.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public getKeysCriteriaTimestr_resultTupleScheme getScheme() { return new getKeysCriteriaTimestr_resultTupleScheme(); } } private static class getKeysCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2372 : struct.success.entrySet()) { oprot.writeI64(_iter2372.getKey()); { oprot.writeI32(_iter2372.getValue().size()); for (Map.Entry _iter2373 : _iter2372.getValue().entrySet()) { oprot.writeString(_iter2373.getKey()); _iter2373.getValue().write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2374 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map2374.size); long _key2375; Map _val2376; for (int _i2377 = 0; _i2377 < _map2374.size; ++_i2377) { _key2375 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2378 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2376 = new LinkedHashMap(2*_map2378.size); String _key2379; com.cinchapi.concourse.thrift.TObject _val2380; for (int _i2381 = 0; _i2381 < _map2378.size; ++_i2381) { _key2379 = iprot.readString(); _val2380 = new com.cinchapi.concourse.thrift.TObject(); _val2380.read(iprot); _val2376.put(_key2379, _val2380); } } struct.success.put(_key2375, _val2376); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeysCclTime_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("getKeysCclTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCclTime_argsTupleSchemeFactory()); } public List keys; // required public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), CCL((short)2, "ccl"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeysCclTime_args.class, metaDataMap); } public getKeysCclTime_args() { } public getKeysCclTime_args( List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysCclTime_args(getKeysCclTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetCcl()) { this.ccl = other.ccl; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysCclTime_args deepCopy() { return new getKeysCclTime_args(this); } @Override public void clear() { this.keys = null; this.ccl = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysCclTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public String getCcl() { return this.ccl; } public getKeysCclTime_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public long getTimestamp() { return this.timestamp; } public getKeysCclTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysCclTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysCclTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysCclTime_args) return this.equals((getKeysCclTime_args)that); return false; } public boolean equals(getKeysCclTime_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysCclTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeysCclTime_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeysCclTime_argsStandardSchemeFactory implements SchemeFactory { public getKeysCclTime_argsStandardScheme getScheme() { return new getKeysCclTime_argsStandardScheme(); } } private static class getKeysCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCclTime_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2382 = iprot.readListBegin(); struct.keys = new ArrayList(_list2382.size); String _elem2383; for (int _i2384 = 0; _i2384 < _list2382.size; ++_i2384) { _elem2383 = iprot.readString(); struct.keys.add(_elem2383); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeysCclTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2385 : struct.keys) { oprot.writeString(_iter2385); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCclTime_argsTupleSchemeFactory implements SchemeFactory { public getKeysCclTime_argsTupleScheme getScheme() { return new getKeysCclTime_argsTupleScheme(); } } private static class getKeysCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2386 : struct.keys) { oprot.writeString(_iter2386); } } } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2387 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2387.size); String _elem2388; for (int _i2389 = 0; _i2389 < _list2387.size; ++_i2389) { _elem2388 = iprot.readString(); struct.keys.add(_elem2388); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysCclTime_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("getKeysCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCclTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(getKeysCclTime_result.class, metaDataMap); } public getKeysCclTime_result() { } public getKeysCclTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeysCclTime_result(getKeysCclTime_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap(other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public getKeysCclTime_result deepCopy() { return new getKeysCclTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getKeysCclTime_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysCclTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysCclTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeysCclTime_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysCclTime_result) return this.equals((getKeysCclTime_result)that); return false; } public boolean equals(getKeysCclTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(getKeysCclTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("getKeysCclTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 getKeysCclTime_resultStandardSchemeFactory implements SchemeFactory { public getKeysCclTime_resultStandardScheme getScheme() { return new getKeysCclTime_resultStandardScheme(); } } private static class getKeysCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCclTime_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.MAP) { { org.apache.thrift.protocol.TMap _map2390 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map2390.size); long _key2391; Map _val2392; for (int _i2393 = 0; _i2393 < _map2390.size; ++_i2393) { _key2391 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2394 = iprot.readMapBegin(); _val2392 = new LinkedHashMap(2*_map2394.size); String _key2395; com.cinchapi.concourse.thrift.TObject _val2396; for (int _i2397 = 0; _i2397 < _map2394.size; ++_i2397) { _key2395 = iprot.readString(); _val2396 = new com.cinchapi.concourse.thrift.TObject(); _val2396.read(iprot); _val2392.put(_key2395, _val2396); } iprot.readMapEnd(); } struct.success.put(_key2391, _val2392); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, getKeysCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2398 : struct.success.entrySet()) { oprot.writeI64(_iter2398.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2398.getValue().size())); for (Map.Entry _iter2399 : _iter2398.getValue().entrySet()) { oprot.writeString(_iter2399.getKey()); _iter2399.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCclTime_resultTupleSchemeFactory implements SchemeFactory { public getKeysCclTime_resultTupleScheme getScheme() { return new getKeysCclTime_resultTupleScheme(); } } private static class getKeysCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2400 : struct.success.entrySet()) { oprot.writeI64(_iter2400.getKey()); { oprot.writeI32(_iter2400.getValue().size()); for (Map.Entry _iter2401 : _iter2400.getValue().entrySet()) { oprot.writeString(_iter2401.getKey()); _iter2401.getValue().write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2402 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map2402.size); long _key2403; Map _val2404; for (int _i2405 = 0; _i2405 < _map2402.size; ++_i2405) { _key2403 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2406 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2404 = new LinkedHashMap(2*_map2406.size); String _key2407; com.cinchapi.concourse.thrift.TObject _val2408; for (int _i2409 = 0; _i2409 < _map2406.size; ++_i2409) { _key2407 = iprot.readString(); _val2408 = new com.cinchapi.concourse.thrift.TObject(); _val2408.read(iprot); _val2404.put(_key2407, _val2408); } } struct.success.put(_key2403, _val2404); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getKeysCclTimestr_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("getKeysCclTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCclTimestr_argsTupleSchemeFactory()); } public List keys; // required public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), CCL((short)2, "ccl"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getKeysCclTimestr_args.class, metaDataMap); } public getKeysCclTimestr_args() { } public getKeysCclTimestr_args( List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public getKeysCclTimestr_args(getKeysCclTimestr_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetCcl()) { this.ccl = other.ccl; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getKeysCclTimestr_args deepCopy() { return new getKeysCclTimestr_args(this); } @Override public void clear() { this.keys = null; this.ccl = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public getKeysCclTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public String getCcl() { return this.ccl; } public getKeysCclTimestr_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public String getTimestamp() { return this.timestamp; } public getKeysCclTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getKeysCclTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public getKeysCclTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public getKeysCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysCclTimestr_args) return this.equals((getKeysCclTimestr_args)that); return false; } public boolean equals(getKeysCclTimestr_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getKeysCclTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getKeysCclTimestr_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 getKeysCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public getKeysCclTimestr_argsStandardScheme getScheme() { return new getKeysCclTimestr_argsStandardScheme(); } } private static class getKeysCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCclTimestr_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2410 = iprot.readListBegin(); struct.keys = new ArrayList(_list2410.size); String _elem2411; for (int _i2412 = 0; _i2412 < _list2410.size; ++_i2412) { _elem2411 = iprot.readString(); struct.keys.add(_elem2411); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getKeysCclTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2413 : struct.keys) { oprot.writeString(_iter2413); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public getKeysCclTimestr_argsTupleScheme getScheme() { return new getKeysCclTimestr_argsTupleScheme(); } } private static class getKeysCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2414 : struct.keys) { oprot.writeString(_iter2414); } } } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2415 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2415.size); String _elem2416; for (int _i2417 = 0; _i2417 < _list2415.size; ++_i2417) { _elem2416 = iprot.readString(); struct.keys.add(_elem2416); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getKeysCclTimestr_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("getKeysCclTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getKeysCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getKeysCclTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(getKeysCclTimestr_result.class, metaDataMap); } public getKeysCclTimestr_result() { } public getKeysCclTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public getKeysCclTimestr_result(getKeysCclTimestr_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map __this__success_copy_value = new LinkedHashMap(other_element_value.size()); for (Map.Entry other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); com.cinchapi.concourse.thrift.TObject other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; com.cinchapi.concourse.thrift.TObject __this__success_copy_value_copy_value = new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value); __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public getKeysCclTimestr_result deepCopy() { return new getKeysCclTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public getKeysCclTimestr_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getKeysCclTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getKeysCclTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public getKeysCclTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getKeysCclTimestr_result) return this.equals((getKeysCclTimestr_result)that); return false; } public boolean equals(getKeysCclTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(getKeysCclTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("getKeysCclTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 getKeysCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public getKeysCclTimestr_resultStandardScheme getScheme() { return new getKeysCclTimestr_resultStandardScheme(); } } private static class getKeysCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getKeysCclTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map2418 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map2418.size); long _key2419; Map _val2420; for (int _i2421 = 0; _i2421 < _map2418.size; ++_i2421) { _key2419 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2422 = iprot.readMapBegin(); _val2420 = new LinkedHashMap(2*_map2422.size); String _key2423; com.cinchapi.concourse.thrift.TObject _val2424; for (int _i2425 = 0; _i2425 < _map2422.size; ++_i2425) { _key2423 = iprot.readString(); _val2424 = new com.cinchapi.concourse.thrift.TObject(); _val2424.read(iprot); _val2420.put(_key2423, _val2424); } iprot.readMapEnd(); } struct.success.put(_key2419, _val2420); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, getKeysCclTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry> _iter2426 : struct.success.entrySet()) { oprot.writeI64(_iter2426.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2426.getValue().size())); for (Map.Entry _iter2427 : _iter2426.getValue().entrySet()) { oprot.writeString(_iter2427.getKey()); _iter2427.getValue().write(oprot); } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getKeysCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public getKeysCclTimestr_resultTupleScheme getScheme() { return new getKeysCclTimestr_resultTupleScheme(); } } private static class getKeysCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getKeysCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2428 : struct.success.entrySet()) { oprot.writeI64(_iter2428.getKey()); { oprot.writeI32(_iter2428.getValue().size()); for (Map.Entry _iter2429 : _iter2428.getValue().entrySet()) { oprot.writeString(_iter2429.getKey()); _iter2429.getValue().write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getKeysCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2430 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map2430.size); long _key2431; Map _val2432; for (int _i2433 = 0; _i2433 < _map2430.size; ++_i2433) { _key2431 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2434 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2432 = new LinkedHashMap(2*_map2434.size); String _key2435; com.cinchapi.concourse.thrift.TObject _val2436; for (int _i2437 = 0; _i2437 < _map2434.size; ++_i2437) { _key2435 = iprot.readString(); _val2436 = new com.cinchapi.concourse.thrift.TObject(); _val2436.read(iprot); _val2432.put(_key2435, _val2436); } } struct.success.put(_key2431, _val2432); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class verifyKeyValueRecord_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("verifyKeyValueRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new verifyKeyValueRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new verifyKeyValueRecord_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), VALUE((short)2, "value"), RECORD((short)3, "record"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // RECORD return RECORD; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(verifyKeyValueRecord_args.class, metaDataMap); } public verifyKeyValueRecord_args() { } public verifyKeyValueRecord_args( String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public verifyKeyValueRecord_args(verifyKeyValueRecord_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject(other.value); } this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public verifyKeyValueRecord_args deepCopy() { return new verifyKeyValueRecord_args(this); } @Override public void clear() { this.key = null; this.value = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public verifyKeyValueRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public verifyKeyValueRecord_args setValue(com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** Returns true if field value is set (has been assigned a value) and false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if (!value) { this.value = null; } } public long getRecord() { return this.record; } public verifyKeyValueRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public verifyKeyValueRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public verifyKeyValueRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public verifyKeyValueRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case VALUE: if (value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case VALUE: return isSetValue(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof verifyKeyValueRecord_args) return this.equals((verifyKeyValueRecord_args)that); return false; } public boolean equals(verifyKeyValueRecord_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (!this.value.equals(that.value)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if (present_value) list.add(value); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(verifyKeyValueRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("verifyKeyValueRecord_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("value:"); if (this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (value != null) { value.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 verifyKeyValueRecord_argsStandardSchemeFactory implements SchemeFactory { public verifyKeyValueRecord_argsStandardScheme getScheme() { return new verifyKeyValueRecord_argsStandardScheme(); } } private static class verifyKeyValueRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, verifyKeyValueRecord_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, verifyKeyValueRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class verifyKeyValueRecord_argsTupleSchemeFactory implements SchemeFactory { public verifyKeyValueRecord_argsTupleScheme getScheme() { return new verifyKeyValueRecord_argsTupleScheme(); } } private static class verifyKeyValueRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetRecord()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { struct.value.write(oprot); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if (incoming.get(2)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class verifyKeyValueRecord_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("verifyKeyValueRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new verifyKeyValueRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new verifyKeyValueRecord_resultTupleSchemeFactory()); } public boolean success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(verifyKeyValueRecord_result.class, metaDataMap); } public verifyKeyValueRecord_result() { } public verifyKeyValueRecord_result( boolean success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public verifyKeyValueRecord_result(verifyKeyValueRecord_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public verifyKeyValueRecord_result deepCopy() { return new verifyKeyValueRecord_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = false; this.ex = null; this.ex2 = null; } public boolean isSuccess() { return this.success; } public verifyKeyValueRecord_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public verifyKeyValueRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public verifyKeyValueRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Boolean)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof verifyKeyValueRecord_result) return this.equals((verifyKeyValueRecord_result)that); return false; } public boolean equals(verifyKeyValueRecord_result that) { if (that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if (present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(verifyKeyValueRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("verifyKeyValueRecord_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class verifyKeyValueRecord_resultStandardSchemeFactory implements SchemeFactory { public verifyKeyValueRecord_resultStandardScheme getScheme() { return new verifyKeyValueRecord_resultStandardScheme(); } } private static class verifyKeyValueRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, verifyKeyValueRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, verifyKeyValueRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class verifyKeyValueRecord_resultTupleSchemeFactory implements SchemeFactory { public verifyKeyValueRecord_resultTupleScheme getScheme() { return new verifyKeyValueRecord_resultTupleScheme(); } } private static class verifyKeyValueRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { oprot.writeBool(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class verifyKeyValueRecordTime_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("verifyKeyValueRecordTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new verifyKeyValueRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new verifyKeyValueRecordTime_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), VALUE((short)2, "value"), RECORD((short)3, "record"), TIMESTAMP((short)4, "timestamp"), CREDS((short)5, "creds"), TRANSACTION((short)6, "transaction"), ENVIRONMENT((short)7, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // RECORD return RECORD; case 4: // TIMESTAMP return TIMESTAMP; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(verifyKeyValueRecordTime_args.class, metaDataMap); } public verifyKeyValueRecordTime_args() { } public verifyKeyValueRecordTime_args( String key, com.cinchapi.concourse.thrift.TObject value, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public verifyKeyValueRecordTime_args(verifyKeyValueRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject(other.value); } this.record = other.record; this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public verifyKeyValueRecordTime_args deepCopy() { return new verifyKeyValueRecordTime_args(this); } @Override public void clear() { this.key = null; this.value = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public verifyKeyValueRecordTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public verifyKeyValueRecordTime_args setValue(com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** Returns true if field value is set (has been assigned a value) and false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if (!value) { this.value = null; } } public long getRecord() { return this.record; } public verifyKeyValueRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public verifyKeyValueRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public verifyKeyValueRecordTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public verifyKeyValueRecordTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public verifyKeyValueRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case VALUE: if (value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case VALUE: return isSetValue(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof verifyKeyValueRecordTime_args) return this.equals((verifyKeyValueRecordTime_args)that); return false; } public boolean equals(verifyKeyValueRecordTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (!this.value.equals(that.value)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if (present_value) list.add(value); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(verifyKeyValueRecordTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("verifyKeyValueRecordTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("value:"); if (this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (value != null) { value.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 verifyKeyValueRecordTime_argsStandardSchemeFactory implements SchemeFactory { public verifyKeyValueRecordTime_argsStandardScheme getScheme() { return new verifyKeyValueRecordTime_argsStandardScheme(); } } private static class verifyKeyValueRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, verifyKeyValueRecordTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, verifyKeyValueRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class verifyKeyValueRecordTime_argsTupleSchemeFactory implements SchemeFactory { public verifyKeyValueRecordTime_argsTupleScheme getScheme() { return new verifyKeyValueRecordTime_argsTupleScheme(); } } private static class verifyKeyValueRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetRecord()) { optionals.set(2); } if (struct.isSetTimestamp()) { optionals.set(3); } if (struct.isSetCreds()) { optionals.set(4); } if (struct.isSetTransaction()) { optionals.set(5); } if (struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { struct.value.write(oprot); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if (incoming.get(2)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(3)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class verifyKeyValueRecordTime_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("verifyKeyValueRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new verifyKeyValueRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new verifyKeyValueRecordTime_resultTupleSchemeFactory()); } public boolean success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(verifyKeyValueRecordTime_result.class, metaDataMap); } public verifyKeyValueRecordTime_result() { } public verifyKeyValueRecordTime_result( boolean success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public verifyKeyValueRecordTime_result(verifyKeyValueRecordTime_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public verifyKeyValueRecordTime_result deepCopy() { return new verifyKeyValueRecordTime_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = false; this.ex = null; this.ex2 = null; } public boolean isSuccess() { return this.success; } public verifyKeyValueRecordTime_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public verifyKeyValueRecordTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public verifyKeyValueRecordTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Boolean)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof verifyKeyValueRecordTime_result) return this.equals((verifyKeyValueRecordTime_result)that); return false; } public boolean equals(verifyKeyValueRecordTime_result that) { if (that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if (present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(verifyKeyValueRecordTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("verifyKeyValueRecordTime_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class verifyKeyValueRecordTime_resultStandardSchemeFactory implements SchemeFactory { public verifyKeyValueRecordTime_resultStandardScheme getScheme() { return new verifyKeyValueRecordTime_resultStandardScheme(); } } private static class verifyKeyValueRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, verifyKeyValueRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, verifyKeyValueRecordTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class verifyKeyValueRecordTime_resultTupleSchemeFactory implements SchemeFactory { public verifyKeyValueRecordTime_resultTupleScheme getScheme() { return new verifyKeyValueRecordTime_resultTupleScheme(); } } private static class verifyKeyValueRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { oprot.writeBool(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class verifyKeyValueRecordTimestr_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("verifyKeyValueRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new verifyKeyValueRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new verifyKeyValueRecordTimestr_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), VALUE((short)2, "value"), RECORD((short)3, "record"), TIMESTAMP((short)4, "timestamp"), CREDS((short)5, "creds"), TRANSACTION((short)6, "transaction"), ENVIRONMENT((short)7, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // RECORD return RECORD; case 4: // TIMESTAMP return TIMESTAMP; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(verifyKeyValueRecordTimestr_args.class, metaDataMap); } public verifyKeyValueRecordTimestr_args() { } public verifyKeyValueRecordTimestr_args( String key, com.cinchapi.concourse.thrift.TObject value, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public verifyKeyValueRecordTimestr_args(verifyKeyValueRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject(other.value); } this.record = other.record; if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public verifyKeyValueRecordTimestr_args deepCopy() { return new verifyKeyValueRecordTimestr_args(this); } @Override public void clear() { this.key = null; this.value = null; setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public verifyKeyValueRecordTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public verifyKeyValueRecordTimestr_args setValue(com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** Returns true if field value is set (has been assigned a value) and false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if (!value) { this.value = null; } } public long getRecord() { return this.record; } public verifyKeyValueRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public verifyKeyValueRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public verifyKeyValueRecordTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public verifyKeyValueRecordTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public verifyKeyValueRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case VALUE: if (value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case VALUE: return isSetValue(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof verifyKeyValueRecordTimestr_args) return this.equals((verifyKeyValueRecordTimestr_args)that); return false; } public boolean equals(verifyKeyValueRecordTimestr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (!this.value.equals(that.value)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if (present_value) list.add(value); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(verifyKeyValueRecordTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("verifyKeyValueRecordTimestr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("value:"); if (this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (value != null) { value.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 verifyKeyValueRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public verifyKeyValueRecordTimestr_argsStandardScheme getScheme() { return new verifyKeyValueRecordTimestr_argsStandardScheme(); } } private static class verifyKeyValueRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, verifyKeyValueRecordTimestr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, verifyKeyValueRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class verifyKeyValueRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public verifyKeyValueRecordTimestr_argsTupleScheme getScheme() { return new verifyKeyValueRecordTimestr_argsTupleScheme(); } } private static class verifyKeyValueRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetRecord()) { optionals.set(2); } if (struct.isSetTimestamp()) { optionals.set(3); } if (struct.isSetCreds()) { optionals.set(4); } if (struct.isSetTransaction()) { optionals.set(5); } if (struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { struct.value.write(oprot); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if (incoming.get(2)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(3)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class verifyKeyValueRecordTimestr_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("verifyKeyValueRecordTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new verifyKeyValueRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new verifyKeyValueRecordTimestr_resultTupleSchemeFactory()); } public boolean success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(verifyKeyValueRecordTimestr_result.class, metaDataMap); } public verifyKeyValueRecordTimestr_result() { } public verifyKeyValueRecordTimestr_result( boolean success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public verifyKeyValueRecordTimestr_result(verifyKeyValueRecordTimestr_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public verifyKeyValueRecordTimestr_result deepCopy() { return new verifyKeyValueRecordTimestr_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = false; this.ex = null; this.ex2 = null; this.ex3 = null; } public boolean isSuccess() { return this.success; } public verifyKeyValueRecordTimestr_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public verifyKeyValueRecordTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public verifyKeyValueRecordTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public verifyKeyValueRecordTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Boolean)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof verifyKeyValueRecordTimestr_result) return this.equals((verifyKeyValueRecordTimestr_result)that); return false; } public boolean equals(verifyKeyValueRecordTimestr_result that) { if (that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if (present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(verifyKeyValueRecordTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("verifyKeyValueRecordTimestr_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class verifyKeyValueRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public verifyKeyValueRecordTimestr_resultStandardScheme getScheme() { return new verifyKeyValueRecordTimestr_resultStandardScheme(); } } private static class verifyKeyValueRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, verifyKeyValueRecordTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, verifyKeyValueRecordTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class verifyKeyValueRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public verifyKeyValueRecordTimestr_resultTupleScheme getScheme() { return new verifyKeyValueRecordTimestr_resultTupleScheme(); } } private static class verifyKeyValueRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { oprot.writeBool(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, verifyKeyValueRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class jsonifyRecords_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("jsonifyRecords_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField IDENTIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("identifier", org.apache.thrift.protocol.TType.BOOL, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new jsonifyRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new jsonifyRecords_argsTupleSchemeFactory()); } public List records; // required public boolean identifier; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short)1, "records"), IDENTIFIER((short)2, "identifier"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORDS return RECORDS; case 2: // IDENTIFIER return IDENTIFIER; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __IDENTIFIER_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.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.IDENTIFIER, new org.apache.thrift.meta_data.FieldMetaData("identifier", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(jsonifyRecords_args.class, metaDataMap); } public jsonifyRecords_args() { } public jsonifyRecords_args( List records, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.identifier = identifier; setIdentifierIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public jsonifyRecords_args(jsonifyRecords_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.identifier = other.identifier; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public jsonifyRecords_args deepCopy() { return new jsonifyRecords_args(this); } @Override public void clear() { this.records = null; setIdentifierIsSet(false); this.identifier = false; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public jsonifyRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public boolean isIdentifier() { return this.identifier; } public jsonifyRecords_args setIdentifier(boolean identifier) { this.identifier = identifier; setIdentifierIsSet(true); return this; } public void unsetIdentifier() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __IDENTIFIER_ISSET_ID); } /** Returns true if field identifier is set (has been assigned a value) and false otherwise */ public boolean isSetIdentifier() { return EncodingUtils.testBit(__isset_bitfield, __IDENTIFIER_ISSET_ID); } public void setIdentifierIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __IDENTIFIER_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public jsonifyRecords_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public jsonifyRecords_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public jsonifyRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case IDENTIFIER: if (value == null) { unsetIdentifier(); } else { setIdentifier((Boolean)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case IDENTIFIER: return isIdentifier(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORDS: return isSetRecords(); case IDENTIFIER: return isSetIdentifier(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof jsonifyRecords_args) return this.equals((jsonifyRecords_args)that); return false; } public boolean equals(jsonifyRecords_args that) { if (that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_identifier = true; boolean that_present_identifier = true; if (this_present_identifier || that_present_identifier) { if (!(this_present_identifier && that_present_identifier)) return false; if (this.identifier != that.identifier) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_identifier = true; list.add(present_identifier); if (present_identifier) list.add(identifier); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(jsonifyRecords_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetIdentifier()).compareTo(other.isSetIdentifier()); if (lastComparison != 0) { return lastComparison; } if (isSetIdentifier()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.identifier, other.identifier); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("jsonifyRecords_args("); boolean first = true; sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("identifier:"); sb.append(this.identifier); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 jsonifyRecords_argsStandardSchemeFactory implements SchemeFactory { public jsonifyRecords_argsStandardScheme getScheme() { return new jsonifyRecords_argsStandardScheme(); } } private static class jsonifyRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, jsonifyRecords_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: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2438 = iprot.readListBegin(); struct.records = new ArrayList(_list2438.size); long _elem2439; for (int _i2440 = 0; _i2440 < _list2438.size; ++_i2440) { _elem2439 = iprot.readI64(); struct.records.add(_elem2439); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // IDENTIFIER if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.identifier = iprot.readBool(); struct.setIdentifierIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, jsonifyRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2441 : struct.records) { oprot.writeI64(_iter2441); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(IDENTIFIER_FIELD_DESC); oprot.writeBool(struct.identifier); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class jsonifyRecords_argsTupleSchemeFactory implements SchemeFactory { public jsonifyRecords_argsTupleScheme getScheme() { return new jsonifyRecords_argsTupleScheme(); } } private static class jsonifyRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, jsonifyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecords()) { optionals.set(0); } if (struct.isSetIdentifier()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2442 : struct.records) { oprot.writeI64(_iter2442); } } } if (struct.isSetIdentifier()) { oprot.writeBool(struct.identifier); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, jsonifyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2443 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2443.size); long _elem2444; for (int _i2445 = 0; _i2445 < _list2443.size; ++_i2445) { _elem2444 = iprot.readI64(); struct.records.add(_elem2444); } } struct.setRecordsIsSet(true); } if (incoming.get(1)) { struct.identifier = iprot.readBool(); struct.setIdentifierIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class jsonifyRecords_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("jsonifyRecords_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new jsonifyRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new jsonifyRecords_resultTupleSchemeFactory()); } public String success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(jsonifyRecords_result.class, metaDataMap); } public jsonifyRecords_result() { } public jsonifyRecords_result( String success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public jsonifyRecords_result(jsonifyRecords_result other) { if (other.isSetSuccess()) { this.success = other.success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public jsonifyRecords_result deepCopy() { return new jsonifyRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public String getSuccess() { return this.success; } public jsonifyRecords_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public jsonifyRecords_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public jsonifyRecords_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((String)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof jsonifyRecords_result) return this.equals((jsonifyRecords_result)that); return false; } public boolean equals(jsonifyRecords_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(jsonifyRecords_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("jsonifyRecords_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 jsonifyRecords_resultStandardSchemeFactory implements SchemeFactory { public jsonifyRecords_resultStandardScheme getScheme() { return new jsonifyRecords_resultStandardScheme(); } } private static class jsonifyRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, jsonifyRecords_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: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, jsonifyRecords_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.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class jsonifyRecords_resultTupleSchemeFactory implements SchemeFactory { public jsonifyRecords_resultTupleScheme getScheme() { return new jsonifyRecords_resultTupleScheme(); } } private static class jsonifyRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, jsonifyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { oprot.writeString(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, jsonifyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class jsonifyRecordsTime_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("jsonifyRecordsTime_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField IDENTIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("identifier", org.apache.thrift.protocol.TType.BOOL, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new jsonifyRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new jsonifyRecordsTime_argsTupleSchemeFactory()); } public List records; // required public long timestamp; // required public boolean identifier; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short)1, "records"), TIMESTAMP((short)2, "timestamp"), IDENTIFIER((short)3, "identifier"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORDS return RECORDS; case 2: // TIMESTAMP return TIMESTAMP; case 3: // IDENTIFIER return IDENTIFIER; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_ISSET_ID = 0; private static final int __IDENTIFIER_ISSET_ID = 1; 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.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.IDENTIFIER, new org.apache.thrift.meta_data.FieldMetaData("identifier", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(jsonifyRecordsTime_args.class, metaDataMap); } public jsonifyRecordsTime_args() { } public jsonifyRecordsTime_args( List records, long timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.identifier = identifier; setIdentifierIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public jsonifyRecordsTime_args(jsonifyRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; this.identifier = other.identifier; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public jsonifyRecordsTime_args deepCopy() { return new jsonifyRecordsTime_args(this); } @Override public void clear() { this.records = null; setTimestampIsSet(false); this.timestamp = 0; setIdentifierIsSet(false); this.identifier = false; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public jsonifyRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public jsonifyRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public boolean isIdentifier() { return this.identifier; } public jsonifyRecordsTime_args setIdentifier(boolean identifier) { this.identifier = identifier; setIdentifierIsSet(true); return this; } public void unsetIdentifier() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __IDENTIFIER_ISSET_ID); } /** Returns true if field identifier is set (has been assigned a value) and false otherwise */ public boolean isSetIdentifier() { return EncodingUtils.testBit(__isset_bitfield, __IDENTIFIER_ISSET_ID); } public void setIdentifierIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __IDENTIFIER_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public jsonifyRecordsTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public jsonifyRecordsTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public jsonifyRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case IDENTIFIER: if (value == null) { unsetIdentifier(); } else { setIdentifier((Boolean)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case IDENTIFIER: return isIdentifier(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case IDENTIFIER: return isSetIdentifier(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof jsonifyRecordsTime_args) return this.equals((jsonifyRecordsTime_args)that); return false; } public boolean equals(jsonifyRecordsTime_args that) { if (that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_identifier = true; boolean that_present_identifier = true; if (this_present_identifier || that_present_identifier) { if (!(this_present_identifier && that_present_identifier)) return false; if (this.identifier != that.identifier) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_identifier = true; list.add(present_identifier); if (present_identifier) list.add(identifier); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(jsonifyRecordsTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetIdentifier()).compareTo(other.isSetIdentifier()); if (lastComparison != 0) { return lastComparison; } if (isSetIdentifier()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.identifier, other.identifier); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("jsonifyRecordsTime_args("); boolean first = true; sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("identifier:"); sb.append(this.identifier); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 jsonifyRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public jsonifyRecordsTime_argsStandardScheme getScheme() { return new jsonifyRecordsTime_argsStandardScheme(); } } private static class jsonifyRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, jsonifyRecordsTime_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: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2446 = iprot.readListBegin(); struct.records = new ArrayList(_list2446.size); long _elem2447; for (int _i2448 = 0; _i2448 < _list2446.size; ++_i2448) { _elem2447 = iprot.readI64(); struct.records.add(_elem2447); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // IDENTIFIER if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.identifier = iprot.readBool(); struct.setIdentifierIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, jsonifyRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2449 : struct.records) { oprot.writeI64(_iter2449); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); oprot.writeFieldBegin(IDENTIFIER_FIELD_DESC); oprot.writeBool(struct.identifier); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class jsonifyRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public jsonifyRecordsTime_argsTupleScheme getScheme() { return new jsonifyRecordsTime_argsTupleScheme(); } } private static class jsonifyRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, jsonifyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecords()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetIdentifier()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2450 : struct.records) { oprot.writeI64(_iter2450); } } } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetIdentifier()) { oprot.writeBool(struct.identifier); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, jsonifyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2451 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2451.size); long _elem2452; for (int _i2453 = 0; _i2453 < _list2451.size; ++_i2453) { _elem2452 = iprot.readI64(); struct.records.add(_elem2452); } } struct.setRecordsIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.identifier = iprot.readBool(); struct.setIdentifierIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class jsonifyRecordsTime_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("jsonifyRecordsTime_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new jsonifyRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new jsonifyRecordsTime_resultTupleSchemeFactory()); } public String success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(jsonifyRecordsTime_result.class, metaDataMap); } public jsonifyRecordsTime_result() { } public jsonifyRecordsTime_result( String success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public jsonifyRecordsTime_result(jsonifyRecordsTime_result other) { if (other.isSetSuccess()) { this.success = other.success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public jsonifyRecordsTime_result deepCopy() { return new jsonifyRecordsTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public String getSuccess() { return this.success; } public jsonifyRecordsTime_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public jsonifyRecordsTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public jsonifyRecordsTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((String)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof jsonifyRecordsTime_result) return this.equals((jsonifyRecordsTime_result)that); return false; } public boolean equals(jsonifyRecordsTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(jsonifyRecordsTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("jsonifyRecordsTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 jsonifyRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public jsonifyRecordsTime_resultStandardScheme getScheme() { return new jsonifyRecordsTime_resultStandardScheme(); } } private static class jsonifyRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, jsonifyRecordsTime_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: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, jsonifyRecordsTime_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.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class jsonifyRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public jsonifyRecordsTime_resultTupleScheme getScheme() { return new jsonifyRecordsTime_resultTupleScheme(); } } private static class jsonifyRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, jsonifyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { oprot.writeString(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, jsonifyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class jsonifyRecordsTimestr_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("jsonifyRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField IDENTIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("identifier", org.apache.thrift.protocol.TType.BOOL, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new jsonifyRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new jsonifyRecordsTimestr_argsTupleSchemeFactory()); } public List records; // required public String timestamp; // required public boolean identifier; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short)1, "records"), TIMESTAMP((short)2, "timestamp"), IDENTIFIER((short)3, "identifier"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORDS return RECORDS; case 2: // TIMESTAMP return TIMESTAMP; case 3: // IDENTIFIER return IDENTIFIER; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __IDENTIFIER_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.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.IDENTIFIER, new org.apache.thrift.meta_data.FieldMetaData("identifier", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(jsonifyRecordsTimestr_args.class, metaDataMap); } public jsonifyRecordsTimestr_args() { } public jsonifyRecordsTimestr_args( List records, String timestamp, boolean identifier, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.timestamp = timestamp; this.identifier = identifier; setIdentifierIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public jsonifyRecordsTimestr_args(jsonifyRecordsTimestr_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } this.identifier = other.identifier; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public jsonifyRecordsTimestr_args deepCopy() { return new jsonifyRecordsTimestr_args(this); } @Override public void clear() { this.records = null; this.timestamp = null; setIdentifierIsSet(false); this.identifier = false; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public jsonifyRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public jsonifyRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public boolean isIdentifier() { return this.identifier; } public jsonifyRecordsTimestr_args setIdentifier(boolean identifier) { this.identifier = identifier; setIdentifierIsSet(true); return this; } public void unsetIdentifier() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __IDENTIFIER_ISSET_ID); } /** Returns true if field identifier is set (has been assigned a value) and false otherwise */ public boolean isSetIdentifier() { return EncodingUtils.testBit(__isset_bitfield, __IDENTIFIER_ISSET_ID); } public void setIdentifierIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __IDENTIFIER_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public jsonifyRecordsTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public jsonifyRecordsTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public jsonifyRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case IDENTIFIER: if (value == null) { unsetIdentifier(); } else { setIdentifier((Boolean)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case IDENTIFIER: return isIdentifier(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case IDENTIFIER: return isSetIdentifier(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof jsonifyRecordsTimestr_args) return this.equals((jsonifyRecordsTimestr_args)that); return false; } public boolean equals(jsonifyRecordsTimestr_args that) { if (that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_identifier = true; boolean that_present_identifier = true; if (this_present_identifier || that_present_identifier) { if (!(this_present_identifier && that_present_identifier)) return false; if (this.identifier != that.identifier) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_identifier = true; list.add(present_identifier); if (present_identifier) list.add(identifier); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(jsonifyRecordsTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetIdentifier()).compareTo(other.isSetIdentifier()); if (lastComparison != 0) { return lastComparison; } if (isSetIdentifier()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.identifier, other.identifier); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("jsonifyRecordsTimestr_args("); boolean first = true; sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("identifier:"); sb.append(this.identifier); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 jsonifyRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public jsonifyRecordsTimestr_argsStandardScheme getScheme() { return new jsonifyRecordsTimestr_argsStandardScheme(); } } private static class jsonifyRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, jsonifyRecordsTimestr_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: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2454 = iprot.readListBegin(); struct.records = new ArrayList(_list2454.size); long _elem2455; for (int _i2456 = 0; _i2456 < _list2454.size; ++_i2456) { _elem2455 = iprot.readI64(); struct.records.add(_elem2455); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // IDENTIFIER if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.identifier = iprot.readBool(); struct.setIdentifierIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, jsonifyRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2457 : struct.records) { oprot.writeI64(_iter2457); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } oprot.writeFieldBegin(IDENTIFIER_FIELD_DESC); oprot.writeBool(struct.identifier); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class jsonifyRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public jsonifyRecordsTimestr_argsTupleScheme getScheme() { return new jsonifyRecordsTimestr_argsTupleScheme(); } } private static class jsonifyRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, jsonifyRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecords()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetIdentifier()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2458 : struct.records) { oprot.writeI64(_iter2458); } } } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetIdentifier()) { oprot.writeBool(struct.identifier); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, jsonifyRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2459 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2459.size); long _elem2460; for (int _i2461 = 0; _i2461 < _list2459.size; ++_i2461) { _elem2460 = iprot.readI64(); struct.records.add(_elem2460); } } struct.setRecordsIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.identifier = iprot.readBool(); struct.setIdentifierIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class jsonifyRecordsTimestr_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("jsonifyRecordsTimestr_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new jsonifyRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new jsonifyRecordsTimestr_resultTupleSchemeFactory()); } public String success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(jsonifyRecordsTimestr_result.class, metaDataMap); } public jsonifyRecordsTimestr_result() { } public jsonifyRecordsTimestr_result( String success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public jsonifyRecordsTimestr_result(jsonifyRecordsTimestr_result other) { if (other.isSetSuccess()) { this.success = other.success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public jsonifyRecordsTimestr_result deepCopy() { return new jsonifyRecordsTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public String getSuccess() { return this.success; } public jsonifyRecordsTimestr_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public jsonifyRecordsTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public jsonifyRecordsTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public jsonifyRecordsTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((String)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof jsonifyRecordsTimestr_result) return this.equals((jsonifyRecordsTimestr_result)that); return false; } public boolean equals(jsonifyRecordsTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(jsonifyRecordsTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("jsonifyRecordsTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 jsonifyRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public jsonifyRecordsTimestr_resultStandardScheme getScheme() { return new jsonifyRecordsTimestr_resultStandardScheme(); } } private static class jsonifyRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, jsonifyRecordsTimestr_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: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, jsonifyRecordsTimestr_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.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class jsonifyRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public jsonifyRecordsTimestr_resultTupleScheme getScheme() { return new jsonifyRecordsTimestr_resultTupleScheme(); } } private static class jsonifyRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, jsonifyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { oprot.writeString(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, jsonifyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class findCriteria_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("findCriteria_args"); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findCriteria_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CRITERIA((short)1, "criteria"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // CRITERIA return CRITERIA; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(findCriteria_args.class, metaDataMap); } public findCriteria_args() { } public findCriteria_args( com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findCriteria_args(findCriteria_args other) { if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public findCriteria_args deepCopy() { return new findCriteria_args(this); } @Override public void clear() { this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public findCriteria_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findCriteria_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findCriteria_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findCriteria_args) return this.equals((findCriteria_args)that); return false; } public boolean equals(findCriteria_args that) { if (that == null) return false; boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findCriteria_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("findCriteria_args("); boolean first = true; sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 findCriteria_argsStandardSchemeFactory implements SchemeFactory { public findCriteria_argsStandardScheme getScheme() { return new findCriteria_argsStandardScheme(); } } private static class findCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findCriteria_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: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, findCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findCriteria_argsTupleSchemeFactory implements SchemeFactory { public findCriteria_argsTupleScheme getScheme() { return new findCriteria_argsTupleScheme(); } } private static class findCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCriteria()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findCriteria_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("findCriteria_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findCriteria_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.I64)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(findCriteria_result.class, metaDataMap); } public findCriteria_result() { } public findCriteria_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public findCriteria_result(findCriteria_result other) { if (other.isSetSuccess()) { Set __this__success = new LinkedHashSet(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public findCriteria_result deepCopy() { return new findCriteria_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = 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(long elem) { if (this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public findCriteria_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findCriteria_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findCriteria_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findCriteria_result) return this.equals((findCriteria_result)that); return false; } public boolean equals(findCriteria_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(findCriteria_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("findCriteria_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 findCriteria_resultStandardSchemeFactory implements SchemeFactory { public findCriteria_resultStandardScheme getScheme() { return new findCriteria_resultStandardScheme(); } } private static class findCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findCriteria_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 _set2462 = iprot.readSetBegin(); struct.success = new LinkedHashSet(2*_set2462.size); long _elem2463; for (int _i2464 = 0; _i2464 < _set2462.size; ++_i2464) { _elem2463 = iprot.readI64(); struct.success.add(_elem2463); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, findCriteria_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.I64, struct.success.size())); for (long _iter2465 : struct.success) { oprot.writeI64(_iter2465); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findCriteria_resultTupleSchemeFactory implements SchemeFactory { public findCriteria_resultTupleScheme getScheme() { return new findCriteria_resultTupleScheme(); } } private static class findCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter2466 : struct.success) { oprot.writeI64(_iter2466); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set2467 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet(2*_set2467.size); long _elem2468; for (int _i2469 = 0; _i2469 < _set2467.size; ++_i2469) { _elem2468 = iprot.readI64(); struct.success.add(_elem2468); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class findCcl_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("findCcl_args"); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findCcl_argsTupleSchemeFactory()); } public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CCL((short)1, "ccl"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // CCL return CCL; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(findCcl_args.class, metaDataMap); } public findCcl_args() { } public findCcl_args( String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findCcl_args(findCcl_args other) { if (other.isSetCcl()) { this.ccl = other.ccl; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public findCcl_args deepCopy() { return new findCcl_args(this); } @Override public void clear() { this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public String getCcl() { return this.ccl; } public findCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findCcl_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findCcl_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findCcl_args) return this.equals((findCcl_args)that); return false; } public boolean equals(findCcl_args that) { if (that == null) return false; boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findCcl_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("findCcl_args("); boolean first = true; sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 findCcl_argsStandardSchemeFactory implements SchemeFactory { public findCcl_argsStandardScheme getScheme() { return new findCcl_argsStandardScheme(); } } private static class findCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findCcl_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: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, findCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findCcl_argsTupleSchemeFactory implements SchemeFactory { public findCcl_argsTupleScheme getScheme() { return new findCcl_argsTupleScheme(); } } private static class findCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCcl()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findCcl_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("findCcl_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findCcl_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.I64)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(findCcl_result.class, metaDataMap); } public findCcl_result() { } public findCcl_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public findCcl_result(findCcl_result other) { if (other.isSetSuccess()) { Set __this__success = new LinkedHashSet(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public findCcl_result deepCopy() { return new findCcl_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = 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(long elem) { if (this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public findCcl_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findCcl_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findCcl_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public findCcl_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findCcl_result) return this.equals((findCcl_result)that); return false; } public boolean equals(findCcl_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(findCcl_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("findCcl_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 findCcl_resultStandardSchemeFactory implements SchemeFactory { public findCcl_resultStandardScheme getScheme() { return new findCcl_resultStandardScheme(); } } private static class findCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findCcl_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 _set2470 = iprot.readSetBegin(); struct.success = new LinkedHashSet(2*_set2470.size); long _elem2471; for (int _i2472 = 0; _i2472 < _set2470.size; ++_i2472) { _elem2471 = iprot.readI64(); struct.success.add(_elem2471); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, findCcl_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.I64, struct.success.size())); for (long _iter2473 : struct.success) { oprot.writeI64(_iter2473); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findCcl_resultTupleSchemeFactory implements SchemeFactory { public findCcl_resultTupleScheme getScheme() { return new findCcl_resultTupleScheme(); } } private static class findCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter2474 : struct.success) { oprot.writeI64(_iter2474); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set2475 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet(2*_set2475.size); long _elem2476; for (int _i2477 = 0; _i2477 < _set2475.size; ++_i2477) { _elem2476 = iprot.readI64(); struct.success.add(_elem2476); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class findKeyOperatorValues_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("findKeyOperatorValues_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField OPERATOR_FIELD_DESC = new org.apache.thrift.protocol.TField("operator", org.apache.thrift.protocol.TType.I32, (short)2); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorValues_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorValues_argsTupleSchemeFactory()); } public String key; // required /** * * @see com.cinchapi.concourse.thrift.Operator */ public com.cinchapi.concourse.thrift.Operator operator; // required public List values; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), /** * * @see com.cinchapi.concourse.thrift.Operator */ OPERATOR((short)2, "operator"), VALUES((short)3, "values"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // OPERATOR return OPERATOR; case 3: // VALUES return VALUES; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.OPERATOR, new org.apache.thrift.meta_data.FieldMetaData("operator", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Operator.class))); tmpMap.put(_Fields.VALUES, new org.apache.thrift.meta_data.FieldMetaData("values", 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, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(findKeyOperatorValues_args.class, metaDataMap); } public findKeyOperatorValues_args() { } public findKeyOperatorValues_args( String key, com.cinchapi.concourse.thrift.Operator operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.operator = operator; this.values = values; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findKeyOperatorValues_args(findKeyOperatorValues_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetOperator()) { this.operator = other.operator; } if (other.isSetValues()) { List __this__values = new ArrayList(other.values.size()); for (com.cinchapi.concourse.thrift.TObject other_element : other.values) { __this__values.add(new com.cinchapi.concourse.thrift.TObject(other_element)); } this.values = __this__values; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public findKeyOperatorValues_args deepCopy() { return new findKeyOperatorValues_args(this); } @Override public void clear() { this.key = null; this.operator = null; this.values = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public findKeyOperatorValues_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } /** * * @see com.cinchapi.concourse.thrift.Operator */ public com.cinchapi.concourse.thrift.Operator getOperator() { return this.operator; } /** * * @see com.cinchapi.concourse.thrift.Operator */ public findKeyOperatorValues_args setOperator(com.cinchapi.concourse.thrift.Operator operator) { this.operator = operator; return this; } public void unsetOperator() { this.operator = null; } /** Returns true if field operator is set (has been assigned a value) and false otherwise */ public boolean isSetOperator() { return this.operator != null; } public void setOperatorIsSet(boolean value) { if (!value) { this.operator = null; } } public int getValuesSize() { return (this.values == null) ? 0 : this.values.size(); } public java.util.Iterator getValuesIterator() { return (this.values == null) ? null : this.values.iterator(); } public void addToValues(com.cinchapi.concourse.thrift.TObject elem) { if (this.values == null) { this.values = new ArrayList(); } this.values.add(elem); } public List getValues() { return this.values; } public findKeyOperatorValues_args setValues(List values) { this.values = values; return this; } public void unsetValues() { this.values = null; } /** Returns true if field values is set (has been assigned a value) and false otherwise */ public boolean isSetValues() { return this.values != null; } public void setValuesIsSet(boolean value) { if (!value) { this.values = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findKeyOperatorValues_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findKeyOperatorValues_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findKeyOperatorValues_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case OPERATOR: if (value == null) { unsetOperator(); } else { setOperator((com.cinchapi.concourse.thrift.Operator)value); } break; case VALUES: if (value == null) { unsetValues(); } else { setValues((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case OPERATOR: return getOperator(); case VALUES: return getValues(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case OPERATOR: return isSetOperator(); case VALUES: return isSetValues(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findKeyOperatorValues_args) return this.equals((findKeyOperatorValues_args)that); return false; } public boolean equals(findKeyOperatorValues_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_operator = true && this.isSetOperator(); boolean that_present_operator = true && that.isSetOperator(); if (this_present_operator || that_present_operator) { if (!(this_present_operator && that_present_operator)) return false; if (!this.operator.equals(that.operator)) return false; } boolean this_present_values = true && this.isSetValues(); boolean that_present_values = true && that.isSetValues(); if (this_present_values || that_present_values) { if (!(this_present_values && that_present_values)) return false; if (!this.values.equals(that.values)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_operator = true && (isSetOperator()); list.add(present_operator); if (present_operator) list.add(operator.getValue()); boolean present_values = true && (isSetValues()); list.add(present_values); if (present_values) list.add(values); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findKeyOperatorValues_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOperator()).compareTo(other.isSetOperator()); if (lastComparison != 0) { return lastComparison; } if (isSetOperator()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operator, other.operator); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("findKeyOperatorValues_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("operator:"); if (this.operator == null) { sb.append("null"); } else { sb.append(this.operator); } first = false; if (!first) sb.append(", "); sb.append("values:"); if (this.values == null) { sb.append("null"); } else { sb.append(this.values); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 findKeyOperatorValues_argsStandardSchemeFactory implements SchemeFactory { public findKeyOperatorValues_argsStandardScheme getScheme() { return new findKeyOperatorValues_argsStandardScheme(); } } private static class findKeyOperatorValues_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorValues_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // OPERATOR if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.operator = com.cinchapi.concourse.thrift.Operator.findByValue(iprot.readI32()); struct.setOperatorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2478 = iprot.readListBegin(); struct.values = new ArrayList(_list2478.size); com.cinchapi.concourse.thrift.TObject _elem2479; for (int _i2480 = 0; _i2480 < _list2478.size; ++_i2480) { _elem2479 = new com.cinchapi.concourse.thrift.TObject(); _elem2479.read(iprot); struct.values.add(_elem2479); } iprot.readListEnd(); } struct.setValuesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, findKeyOperatorValues_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.operator != null) { oprot.writeFieldBegin(OPERATOR_FIELD_DESC); oprot.writeI32(struct.operator.getValue()); oprot.writeFieldEnd(); } if (struct.values != null) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.values.size())); for (com.cinchapi.concourse.thrift.TObject _iter2481 : struct.values) { _iter2481.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorValues_argsTupleSchemeFactory implements SchemeFactory { public findKeyOperatorValues_argsTupleScheme getScheme() { return new findKeyOperatorValues_argsTupleScheme(); } } private static class findKeyOperatorValues_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValues_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetOperator()) { optionals.set(1); } if (struct.isSetValues()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetOperator()) { oprot.writeI32(struct.operator.getValue()); } if (struct.isSetValues()) { { oprot.writeI32(struct.values.size()); for (com.cinchapi.concourse.thrift.TObject _iter2482 : struct.values) { _iter2482.write(oprot); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValues_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.operator = com.cinchapi.concourse.thrift.Operator.findByValue(iprot.readI32()); struct.setOperatorIsSet(true); } if (incoming.get(2)) { { org.apache.thrift.protocol.TList _list2483 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.values = new ArrayList(_list2483.size); com.cinchapi.concourse.thrift.TObject _elem2484; for (int _i2485 = 0; _i2485 < _list2483.size; ++_i2485) { _elem2484 = new com.cinchapi.concourse.thrift.TObject(); _elem2484.read(iprot); struct.values.add(_elem2484); } } struct.setValuesIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findKeyOperatorValues_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("findKeyOperatorValues_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorValues_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorValues_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.I64)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(findKeyOperatorValues_result.class, metaDataMap); } public findKeyOperatorValues_result() { } public findKeyOperatorValues_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public findKeyOperatorValues_result(findKeyOperatorValues_result other) { if (other.isSetSuccess()) { Set __this__success = new LinkedHashSet(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public findKeyOperatorValues_result deepCopy() { return new findKeyOperatorValues_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = 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(long elem) { if (this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public findKeyOperatorValues_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findKeyOperatorValues_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findKeyOperatorValues_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findKeyOperatorValues_result) return this.equals((findKeyOperatorValues_result)that); return false; } public boolean equals(findKeyOperatorValues_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(findKeyOperatorValues_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("findKeyOperatorValues_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 findKeyOperatorValues_resultStandardSchemeFactory implements SchemeFactory { public findKeyOperatorValues_resultStandardScheme getScheme() { return new findKeyOperatorValues_resultStandardScheme(); } } private static class findKeyOperatorValues_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorValues_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 _set2486 = iprot.readSetBegin(); struct.success = new LinkedHashSet(2*_set2486.size); long _elem2487; for (int _i2488 = 0; _i2488 < _set2486.size; ++_i2488) { _elem2487 = iprot.readI64(); struct.success.add(_elem2487); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, findKeyOperatorValues_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.I64, struct.success.size())); for (long _iter2489 : struct.success) { oprot.writeI64(_iter2489); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorValues_resultTupleSchemeFactory implements SchemeFactory { public findKeyOperatorValues_resultTupleScheme getScheme() { return new findKeyOperatorValues_resultTupleScheme(); } } private static class findKeyOperatorValues_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValues_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter2490 : struct.success) { oprot.writeI64(_iter2490); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValues_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set2491 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet(2*_set2491.size); long _elem2492; for (int _i2493 = 0; _i2493 < _set2491.size; ++_i2493) { _elem2492 = iprot.readI64(); struct.success.add(_elem2492); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class findKeyOperatorValuesTime_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("findKeyOperatorValuesTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField OPERATOR_FIELD_DESC = new org.apache.thrift.protocol.TField("operator", org.apache.thrift.protocol.TType.I32, (short)2); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorValuesTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorValuesTime_argsTupleSchemeFactory()); } public String key; // required /** * * @see com.cinchapi.concourse.thrift.Operator */ public com.cinchapi.concourse.thrift.Operator operator; // required public List values; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), /** * * @see com.cinchapi.concourse.thrift.Operator */ OPERATOR((short)2, "operator"), VALUES((short)3, "values"), TIMESTAMP((short)4, "timestamp"), CREDS((short)5, "creds"), TRANSACTION((short)6, "transaction"), ENVIRONMENT((short)7, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // OPERATOR return OPERATOR; case 3: // VALUES return VALUES; case 4: // TIMESTAMP return TIMESTAMP; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.OPERATOR, new org.apache.thrift.meta_data.FieldMetaData("operator", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Operator.class))); tmpMap.put(_Fields.VALUES, new org.apache.thrift.meta_data.FieldMetaData("values", 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, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(findKeyOperatorValuesTime_args.class, metaDataMap); } public findKeyOperatorValuesTime_args() { } public findKeyOperatorValuesTime_args( String key, com.cinchapi.concourse.thrift.Operator operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.operator = operator; this.values = values; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findKeyOperatorValuesTime_args(findKeyOperatorValuesTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetOperator()) { this.operator = other.operator; } if (other.isSetValues()) { List __this__values = new ArrayList(other.values.size()); for (com.cinchapi.concourse.thrift.TObject other_element : other.values) { __this__values.add(new com.cinchapi.concourse.thrift.TObject(other_element)); } this.values = __this__values; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public findKeyOperatorValuesTime_args deepCopy() { return new findKeyOperatorValuesTime_args(this); } @Override public void clear() { this.key = null; this.operator = null; this.values = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public findKeyOperatorValuesTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } /** * * @see com.cinchapi.concourse.thrift.Operator */ public com.cinchapi.concourse.thrift.Operator getOperator() { return this.operator; } /** * * @see com.cinchapi.concourse.thrift.Operator */ public findKeyOperatorValuesTime_args setOperator(com.cinchapi.concourse.thrift.Operator operator) { this.operator = operator; return this; } public void unsetOperator() { this.operator = null; } /** Returns true if field operator is set (has been assigned a value) and false otherwise */ public boolean isSetOperator() { return this.operator != null; } public void setOperatorIsSet(boolean value) { if (!value) { this.operator = null; } } public int getValuesSize() { return (this.values == null) ? 0 : this.values.size(); } public java.util.Iterator getValuesIterator() { return (this.values == null) ? null : this.values.iterator(); } public void addToValues(com.cinchapi.concourse.thrift.TObject elem) { if (this.values == null) { this.values = new ArrayList(); } this.values.add(elem); } public List getValues() { return this.values; } public findKeyOperatorValuesTime_args setValues(List values) { this.values = values; return this; } public void unsetValues() { this.values = null; } /** Returns true if field values is set (has been assigned a value) and false otherwise */ public boolean isSetValues() { return this.values != null; } public void setValuesIsSet(boolean value) { if (!value) { this.values = null; } } public long getTimestamp() { return this.timestamp; } public findKeyOperatorValuesTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findKeyOperatorValuesTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findKeyOperatorValuesTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findKeyOperatorValuesTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case OPERATOR: if (value == null) { unsetOperator(); } else { setOperator((com.cinchapi.concourse.thrift.Operator)value); } break; case VALUES: if (value == null) { unsetValues(); } else { setValues((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case OPERATOR: return getOperator(); case VALUES: return getValues(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case OPERATOR: return isSetOperator(); case VALUES: return isSetValues(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findKeyOperatorValuesTime_args) return this.equals((findKeyOperatorValuesTime_args)that); return false; } public boolean equals(findKeyOperatorValuesTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_operator = true && this.isSetOperator(); boolean that_present_operator = true && that.isSetOperator(); if (this_present_operator || that_present_operator) { if (!(this_present_operator && that_present_operator)) return false; if (!this.operator.equals(that.operator)) return false; } boolean this_present_values = true && this.isSetValues(); boolean that_present_values = true && that.isSetValues(); if (this_present_values || that_present_values) { if (!(this_present_values && that_present_values)) return false; if (!this.values.equals(that.values)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_operator = true && (isSetOperator()); list.add(present_operator); if (present_operator) list.add(operator.getValue()); boolean present_values = true && (isSetValues()); list.add(present_values); if (present_values) list.add(values); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findKeyOperatorValuesTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOperator()).compareTo(other.isSetOperator()); if (lastComparison != 0) { return lastComparison; } if (isSetOperator()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operator, other.operator); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("findKeyOperatorValuesTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("operator:"); if (this.operator == null) { sb.append("null"); } else { sb.append(this.operator); } first = false; if (!first) sb.append(", "); sb.append("values:"); if (this.values == null) { sb.append("null"); } else { sb.append(this.values); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 findKeyOperatorValuesTime_argsStandardSchemeFactory implements SchemeFactory { public findKeyOperatorValuesTime_argsStandardScheme getScheme() { return new findKeyOperatorValuesTime_argsStandardScheme(); } } private static class findKeyOperatorValuesTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorValuesTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // OPERATOR if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.operator = com.cinchapi.concourse.thrift.Operator.findByValue(iprot.readI32()); struct.setOperatorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2494 = iprot.readListBegin(); struct.values = new ArrayList(_list2494.size); com.cinchapi.concourse.thrift.TObject _elem2495; for (int _i2496 = 0; _i2496 < _list2494.size; ++_i2496) { _elem2495 = new com.cinchapi.concourse.thrift.TObject(); _elem2495.read(iprot); struct.values.add(_elem2495); } iprot.readListEnd(); } struct.setValuesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, findKeyOperatorValuesTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.operator != null) { oprot.writeFieldBegin(OPERATOR_FIELD_DESC); oprot.writeI32(struct.operator.getValue()); oprot.writeFieldEnd(); } if (struct.values != null) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.values.size())); for (com.cinchapi.concourse.thrift.TObject _iter2497 : struct.values) { _iter2497.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorValuesTime_argsTupleSchemeFactory implements SchemeFactory { public findKeyOperatorValuesTime_argsTupleScheme getScheme() { return new findKeyOperatorValuesTime_argsTupleScheme(); } } private static class findKeyOperatorValuesTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValuesTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetOperator()) { optionals.set(1); } if (struct.isSetValues()) { optionals.set(2); } if (struct.isSetTimestamp()) { optionals.set(3); } if (struct.isSetCreds()) { optionals.set(4); } if (struct.isSetTransaction()) { optionals.set(5); } if (struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetOperator()) { oprot.writeI32(struct.operator.getValue()); } if (struct.isSetValues()) { { oprot.writeI32(struct.values.size()); for (com.cinchapi.concourse.thrift.TObject _iter2498 : struct.values) { _iter2498.write(oprot); } } } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValuesTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.operator = com.cinchapi.concourse.thrift.Operator.findByValue(iprot.readI32()); struct.setOperatorIsSet(true); } if (incoming.get(2)) { { org.apache.thrift.protocol.TList _list2499 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.values = new ArrayList(_list2499.size); com.cinchapi.concourse.thrift.TObject _elem2500; for (int _i2501 = 0; _i2501 < _list2499.size; ++_i2501) { _elem2500 = new com.cinchapi.concourse.thrift.TObject(); _elem2500.read(iprot); struct.values.add(_elem2500); } } struct.setValuesIsSet(true); } if (incoming.get(3)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findKeyOperatorValuesTime_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("findKeyOperatorValuesTime_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorValuesTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorValuesTime_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.I64)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(findKeyOperatorValuesTime_result.class, metaDataMap); } public findKeyOperatorValuesTime_result() { } public findKeyOperatorValuesTime_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public findKeyOperatorValuesTime_result(findKeyOperatorValuesTime_result other) { if (other.isSetSuccess()) { Set __this__success = new LinkedHashSet(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public findKeyOperatorValuesTime_result deepCopy() { return new findKeyOperatorValuesTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = 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(long elem) { if (this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public findKeyOperatorValuesTime_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findKeyOperatorValuesTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findKeyOperatorValuesTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findKeyOperatorValuesTime_result) return this.equals((findKeyOperatorValuesTime_result)that); return false; } public boolean equals(findKeyOperatorValuesTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(findKeyOperatorValuesTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("findKeyOperatorValuesTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 findKeyOperatorValuesTime_resultStandardSchemeFactory implements SchemeFactory { public findKeyOperatorValuesTime_resultStandardScheme getScheme() { return new findKeyOperatorValuesTime_resultStandardScheme(); } } private static class findKeyOperatorValuesTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorValuesTime_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 _set2502 = iprot.readSetBegin(); struct.success = new LinkedHashSet(2*_set2502.size); long _elem2503; for (int _i2504 = 0; _i2504 < _set2502.size; ++_i2504) { _elem2503 = iprot.readI64(); struct.success.add(_elem2503); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, findKeyOperatorValuesTime_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.I64, struct.success.size())); for (long _iter2505 : struct.success) { oprot.writeI64(_iter2505); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorValuesTime_resultTupleSchemeFactory implements SchemeFactory { public findKeyOperatorValuesTime_resultTupleScheme getScheme() { return new findKeyOperatorValuesTime_resultTupleScheme(); } } private static class findKeyOperatorValuesTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValuesTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter2506 : struct.success) { oprot.writeI64(_iter2506); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValuesTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set2507 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet(2*_set2507.size); long _elem2508; for (int _i2509 = 0; _i2509 < _set2507.size; ++_i2509) { _elem2508 = iprot.readI64(); struct.success.add(_elem2508); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class findKeyOperatorValuesTimestr_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("findKeyOperatorValuesTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField OPERATOR_FIELD_DESC = new org.apache.thrift.protocol.TField("operator", org.apache.thrift.protocol.TType.I32, (short)2); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorValuesTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorValuesTimestr_argsTupleSchemeFactory()); } public String key; // required /** * * @see com.cinchapi.concourse.thrift.Operator */ public com.cinchapi.concourse.thrift.Operator operator; // required public List values; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), /** * * @see com.cinchapi.concourse.thrift.Operator */ OPERATOR((short)2, "operator"), VALUES((short)3, "values"), TIMESTAMP((short)4, "timestamp"), CREDS((short)5, "creds"), TRANSACTION((short)6, "transaction"), ENVIRONMENT((short)7, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // OPERATOR return OPERATOR; case 3: // VALUES return VALUES; case 4: // TIMESTAMP return TIMESTAMP; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.OPERATOR, new org.apache.thrift.meta_data.FieldMetaData("operator", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, com.cinchapi.concourse.thrift.Operator.class))); tmpMap.put(_Fields.VALUES, new org.apache.thrift.meta_data.FieldMetaData("values", 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, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(findKeyOperatorValuesTimestr_args.class, metaDataMap); } public findKeyOperatorValuesTimestr_args() { } public findKeyOperatorValuesTimestr_args( String key, com.cinchapi.concourse.thrift.Operator operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.operator = operator; this.values = values; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findKeyOperatorValuesTimestr_args(findKeyOperatorValuesTimestr_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetOperator()) { this.operator = other.operator; } if (other.isSetValues()) { List __this__values = new ArrayList(other.values.size()); for (com.cinchapi.concourse.thrift.TObject other_element : other.values) { __this__values.add(new com.cinchapi.concourse.thrift.TObject(other_element)); } this.values = __this__values; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public findKeyOperatorValuesTimestr_args deepCopy() { return new findKeyOperatorValuesTimestr_args(this); } @Override public void clear() { this.key = null; this.operator = null; this.values = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public findKeyOperatorValuesTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } /** * * @see com.cinchapi.concourse.thrift.Operator */ public com.cinchapi.concourse.thrift.Operator getOperator() { return this.operator; } /** * * @see com.cinchapi.concourse.thrift.Operator */ public findKeyOperatorValuesTimestr_args setOperator(com.cinchapi.concourse.thrift.Operator operator) { this.operator = operator; return this; } public void unsetOperator() { this.operator = null; } /** Returns true if field operator is set (has been assigned a value) and false otherwise */ public boolean isSetOperator() { return this.operator != null; } public void setOperatorIsSet(boolean value) { if (!value) { this.operator = null; } } public int getValuesSize() { return (this.values == null) ? 0 : this.values.size(); } public java.util.Iterator getValuesIterator() { return (this.values == null) ? null : this.values.iterator(); } public void addToValues(com.cinchapi.concourse.thrift.TObject elem) { if (this.values == null) { this.values = new ArrayList(); } this.values.add(elem); } public List getValues() { return this.values; } public findKeyOperatorValuesTimestr_args setValues(List values) { this.values = values; return this; } public void unsetValues() { this.values = null; } /** Returns true if field values is set (has been assigned a value) and false otherwise */ public boolean isSetValues() { return this.values != null; } public void setValuesIsSet(boolean value) { if (!value) { this.values = null; } } public String getTimestamp() { return this.timestamp; } public findKeyOperatorValuesTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findKeyOperatorValuesTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findKeyOperatorValuesTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findKeyOperatorValuesTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case OPERATOR: if (value == null) { unsetOperator(); } else { setOperator((com.cinchapi.concourse.thrift.Operator)value); } break; case VALUES: if (value == null) { unsetValues(); } else { setValues((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case OPERATOR: return getOperator(); case VALUES: return getValues(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case OPERATOR: return isSetOperator(); case VALUES: return isSetValues(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findKeyOperatorValuesTimestr_args) return this.equals((findKeyOperatorValuesTimestr_args)that); return false; } public boolean equals(findKeyOperatorValuesTimestr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_operator = true && this.isSetOperator(); boolean that_present_operator = true && that.isSetOperator(); if (this_present_operator || that_present_operator) { if (!(this_present_operator && that_present_operator)) return false; if (!this.operator.equals(that.operator)) return false; } boolean this_present_values = true && this.isSetValues(); boolean that_present_values = true && that.isSetValues(); if (this_present_values || that_present_values) { if (!(this_present_values && that_present_values)) return false; if (!this.values.equals(that.values)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_operator = true && (isSetOperator()); list.add(present_operator); if (present_operator) list.add(operator.getValue()); boolean present_values = true && (isSetValues()); list.add(present_values); if (present_values) list.add(values); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findKeyOperatorValuesTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOperator()).compareTo(other.isSetOperator()); if (lastComparison != 0) { return lastComparison; } if (isSetOperator()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operator, other.operator); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("findKeyOperatorValuesTimestr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("operator:"); if (this.operator == null) { sb.append("null"); } else { sb.append(this.operator); } first = false; if (!first) sb.append(", "); sb.append("values:"); if (this.values == null) { sb.append("null"); } else { sb.append(this.values); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 findKeyOperatorValuesTimestr_argsStandardSchemeFactory implements SchemeFactory { public findKeyOperatorValuesTimestr_argsStandardScheme getScheme() { return new findKeyOperatorValuesTimestr_argsStandardScheme(); } } private static class findKeyOperatorValuesTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorValuesTimestr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // OPERATOR if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.operator = com.cinchapi.concourse.thrift.Operator.findByValue(iprot.readI32()); struct.setOperatorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2510 = iprot.readListBegin(); struct.values = new ArrayList(_list2510.size); com.cinchapi.concourse.thrift.TObject _elem2511; for (int _i2512 = 0; _i2512 < _list2510.size; ++_i2512) { _elem2511 = new com.cinchapi.concourse.thrift.TObject(); _elem2511.read(iprot); struct.values.add(_elem2511); } iprot.readListEnd(); } struct.setValuesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, findKeyOperatorValuesTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.operator != null) { oprot.writeFieldBegin(OPERATOR_FIELD_DESC); oprot.writeI32(struct.operator.getValue()); oprot.writeFieldEnd(); } if (struct.values != null) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.values.size())); for (com.cinchapi.concourse.thrift.TObject _iter2513 : struct.values) { _iter2513.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorValuesTimestr_argsTupleSchemeFactory implements SchemeFactory { public findKeyOperatorValuesTimestr_argsTupleScheme getScheme() { return new findKeyOperatorValuesTimestr_argsTupleScheme(); } } private static class findKeyOperatorValuesTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValuesTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetOperator()) { optionals.set(1); } if (struct.isSetValues()) { optionals.set(2); } if (struct.isSetTimestamp()) { optionals.set(3); } if (struct.isSetCreds()) { optionals.set(4); } if (struct.isSetTransaction()) { optionals.set(5); } if (struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetOperator()) { oprot.writeI32(struct.operator.getValue()); } if (struct.isSetValues()) { { oprot.writeI32(struct.values.size()); for (com.cinchapi.concourse.thrift.TObject _iter2514 : struct.values) { _iter2514.write(oprot); } } } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValuesTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.operator = com.cinchapi.concourse.thrift.Operator.findByValue(iprot.readI32()); struct.setOperatorIsSet(true); } if (incoming.get(2)) { { org.apache.thrift.protocol.TList _list2515 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.values = new ArrayList(_list2515.size); com.cinchapi.concourse.thrift.TObject _elem2516; for (int _i2517 = 0; _i2517 < _list2515.size; ++_i2517) { _elem2516 = new com.cinchapi.concourse.thrift.TObject(); _elem2516.read(iprot); struct.values.add(_elem2516); } } struct.setValuesIsSet(true); } if (incoming.get(3)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findKeyOperatorValuesTimestr_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("findKeyOperatorValuesTimestr_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorValuesTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorValuesTimestr_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.I64)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(findKeyOperatorValuesTimestr_result.class, metaDataMap); } public findKeyOperatorValuesTimestr_result() { } public findKeyOperatorValuesTimestr_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public findKeyOperatorValuesTimestr_result(findKeyOperatorValuesTimestr_result other) { if (other.isSetSuccess()) { Set __this__success = new LinkedHashSet(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public findKeyOperatorValuesTimestr_result deepCopy() { return new findKeyOperatorValuesTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = 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(long elem) { if (this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public findKeyOperatorValuesTimestr_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findKeyOperatorValuesTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findKeyOperatorValuesTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public findKeyOperatorValuesTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findKeyOperatorValuesTimestr_result) return this.equals((findKeyOperatorValuesTimestr_result)that); return false; } public boolean equals(findKeyOperatorValuesTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(findKeyOperatorValuesTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("findKeyOperatorValuesTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 findKeyOperatorValuesTimestr_resultStandardSchemeFactory implements SchemeFactory { public findKeyOperatorValuesTimestr_resultStandardScheme getScheme() { return new findKeyOperatorValuesTimestr_resultStandardScheme(); } } private static class findKeyOperatorValuesTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorValuesTimestr_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 _set2518 = iprot.readSetBegin(); struct.success = new LinkedHashSet(2*_set2518.size); long _elem2519; for (int _i2520 = 0; _i2520 < _set2518.size; ++_i2520) { _elem2519 = iprot.readI64(); struct.success.add(_elem2519); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, findKeyOperatorValuesTimestr_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.I64, struct.success.size())); for (long _iter2521 : struct.success) { oprot.writeI64(_iter2521); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorValuesTimestr_resultTupleSchemeFactory implements SchemeFactory { public findKeyOperatorValuesTimestr_resultTupleScheme getScheme() { return new findKeyOperatorValuesTimestr_resultTupleScheme(); } } private static class findKeyOperatorValuesTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValuesTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter2522 : struct.success) { oprot.writeI64(_iter2522); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorValuesTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set2523 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet(2*_set2523.size); long _elem2524; for (int _i2525 = 0; _i2525 < _set2523.size; ++_i2525) { _elem2524 = iprot.readI64(); struct.success.add(_elem2524); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class findKeyOperatorstrValues_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("findKeyOperatorstrValues_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField OPERATOR_FIELD_DESC = new org.apache.thrift.protocol.TField("operator", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorstrValues_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorstrValues_argsTupleSchemeFactory()); } public String key; // required public String operator; // required public List values; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), OPERATOR((short)2, "operator"), VALUES((short)3, "values"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // OPERATOR return OPERATOR; case 3: // VALUES return VALUES; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.OPERATOR, new org.apache.thrift.meta_data.FieldMetaData("operator", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUES, new org.apache.thrift.meta_data.FieldMetaData("values", 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, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(findKeyOperatorstrValues_args.class, metaDataMap); } public findKeyOperatorstrValues_args() { } public findKeyOperatorstrValues_args( String key, String operator, List values, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.operator = operator; this.values = values; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findKeyOperatorstrValues_args(findKeyOperatorstrValues_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetOperator()) { this.operator = other.operator; } if (other.isSetValues()) { List __this__values = new ArrayList(other.values.size()); for (com.cinchapi.concourse.thrift.TObject other_element : other.values) { __this__values.add(new com.cinchapi.concourse.thrift.TObject(other_element)); } this.values = __this__values; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public findKeyOperatorstrValues_args deepCopy() { return new findKeyOperatorstrValues_args(this); } @Override public void clear() { this.key = null; this.operator = null; this.values = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public findKeyOperatorstrValues_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public String getOperator() { return this.operator; } public findKeyOperatorstrValues_args setOperator(String operator) { this.operator = operator; return this; } public void unsetOperator() { this.operator = null; } /** Returns true if field operator is set (has been assigned a value) and false otherwise */ public boolean isSetOperator() { return this.operator != null; } public void setOperatorIsSet(boolean value) { if (!value) { this.operator = null; } } public int getValuesSize() { return (this.values == null) ? 0 : this.values.size(); } public java.util.Iterator getValuesIterator() { return (this.values == null) ? null : this.values.iterator(); } public void addToValues(com.cinchapi.concourse.thrift.TObject elem) { if (this.values == null) { this.values = new ArrayList(); } this.values.add(elem); } public List getValues() { return this.values; } public findKeyOperatorstrValues_args setValues(List values) { this.values = values; return this; } public void unsetValues() { this.values = null; } /** Returns true if field values is set (has been assigned a value) and false otherwise */ public boolean isSetValues() { return this.values != null; } public void setValuesIsSet(boolean value) { if (!value) { this.values = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findKeyOperatorstrValues_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findKeyOperatorstrValues_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findKeyOperatorstrValues_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case OPERATOR: if (value == null) { unsetOperator(); } else { setOperator((String)value); } break; case VALUES: if (value == null) { unsetValues(); } else { setValues((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case OPERATOR: return getOperator(); case VALUES: return getValues(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case OPERATOR: return isSetOperator(); case VALUES: return isSetValues(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findKeyOperatorstrValues_args) return this.equals((findKeyOperatorstrValues_args)that); return false; } public boolean equals(findKeyOperatorstrValues_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_operator = true && this.isSetOperator(); boolean that_present_operator = true && that.isSetOperator(); if (this_present_operator || that_present_operator) { if (!(this_present_operator && that_present_operator)) return false; if (!this.operator.equals(that.operator)) return false; } boolean this_present_values = true && this.isSetValues(); boolean that_present_values = true && that.isSetValues(); if (this_present_values || that_present_values) { if (!(this_present_values && that_present_values)) return false; if (!this.values.equals(that.values)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_operator = true && (isSetOperator()); list.add(present_operator); if (present_operator) list.add(operator); boolean present_values = true && (isSetValues()); list.add(present_values); if (present_values) list.add(values); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findKeyOperatorstrValues_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOperator()).compareTo(other.isSetOperator()); if (lastComparison != 0) { return lastComparison; } if (isSetOperator()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operator, other.operator); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("findKeyOperatorstrValues_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("operator:"); if (this.operator == null) { sb.append("null"); } else { sb.append(this.operator); } first = false; if (!first) sb.append(", "); sb.append("values:"); if (this.values == null) { sb.append("null"); } else { sb.append(this.values); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 findKeyOperatorstrValues_argsStandardSchemeFactory implements SchemeFactory { public findKeyOperatorstrValues_argsStandardScheme getScheme() { return new findKeyOperatorstrValues_argsStandardScheme(); } } private static class findKeyOperatorstrValues_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorstrValues_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // OPERATOR if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.operator = iprot.readString(); struct.setOperatorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2526 = iprot.readListBegin(); struct.values = new ArrayList(_list2526.size); com.cinchapi.concourse.thrift.TObject _elem2527; for (int _i2528 = 0; _i2528 < _list2526.size; ++_i2528) { _elem2527 = new com.cinchapi.concourse.thrift.TObject(); _elem2527.read(iprot); struct.values.add(_elem2527); } iprot.readListEnd(); } struct.setValuesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, findKeyOperatorstrValues_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.operator != null) { oprot.writeFieldBegin(OPERATOR_FIELD_DESC); oprot.writeString(struct.operator); oprot.writeFieldEnd(); } if (struct.values != null) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.values.size())); for (com.cinchapi.concourse.thrift.TObject _iter2529 : struct.values) { _iter2529.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorstrValues_argsTupleSchemeFactory implements SchemeFactory { public findKeyOperatorstrValues_argsTupleScheme getScheme() { return new findKeyOperatorstrValues_argsTupleScheme(); } } private static class findKeyOperatorstrValues_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValues_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetOperator()) { optionals.set(1); } if (struct.isSetValues()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetOperator()) { oprot.writeString(struct.operator); } if (struct.isSetValues()) { { oprot.writeI32(struct.values.size()); for (com.cinchapi.concourse.thrift.TObject _iter2530 : struct.values) { _iter2530.write(oprot); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValues_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.operator = iprot.readString(); struct.setOperatorIsSet(true); } if (incoming.get(2)) { { org.apache.thrift.protocol.TList _list2531 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.values = new ArrayList(_list2531.size); com.cinchapi.concourse.thrift.TObject _elem2532; for (int _i2533 = 0; _i2533 < _list2531.size; ++_i2533) { _elem2532 = new com.cinchapi.concourse.thrift.TObject(); _elem2532.read(iprot); struct.values.add(_elem2532); } } struct.setValuesIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findKeyOperatorstrValues_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("findKeyOperatorstrValues_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorstrValues_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorstrValues_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.I64)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(findKeyOperatorstrValues_result.class, metaDataMap); } public findKeyOperatorstrValues_result() { } public findKeyOperatorstrValues_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public findKeyOperatorstrValues_result(findKeyOperatorstrValues_result other) { if (other.isSetSuccess()) { Set __this__success = new LinkedHashSet(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public findKeyOperatorstrValues_result deepCopy() { return new findKeyOperatorstrValues_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = 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(long elem) { if (this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public findKeyOperatorstrValues_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findKeyOperatorstrValues_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findKeyOperatorstrValues_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public findKeyOperatorstrValues_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findKeyOperatorstrValues_result) return this.equals((findKeyOperatorstrValues_result)that); return false; } public boolean equals(findKeyOperatorstrValues_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(findKeyOperatorstrValues_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("findKeyOperatorstrValues_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 findKeyOperatorstrValues_resultStandardSchemeFactory implements SchemeFactory { public findKeyOperatorstrValues_resultStandardScheme getScheme() { return new findKeyOperatorstrValues_resultStandardScheme(); } } private static class findKeyOperatorstrValues_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorstrValues_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 _set2534 = iprot.readSetBegin(); struct.success = new LinkedHashSet(2*_set2534.size); long _elem2535; for (int _i2536 = 0; _i2536 < _set2534.size; ++_i2536) { _elem2535 = iprot.readI64(); struct.success.add(_elem2535); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, findKeyOperatorstrValues_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.I64, struct.success.size())); for (long _iter2537 : struct.success) { oprot.writeI64(_iter2537); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorstrValues_resultTupleSchemeFactory implements SchemeFactory { public findKeyOperatorstrValues_resultTupleScheme getScheme() { return new findKeyOperatorstrValues_resultTupleScheme(); } } private static class findKeyOperatorstrValues_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValues_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter2538 : struct.success) { oprot.writeI64(_iter2538); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValues_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set2539 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet(2*_set2539.size); long _elem2540; for (int _i2541 = 0; _i2541 < _set2539.size; ++_i2541) { _elem2540 = iprot.readI64(); struct.success.add(_elem2540); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class findKeyOperatorstrValuesTime_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("findKeyOperatorstrValuesTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField OPERATOR_FIELD_DESC = new org.apache.thrift.protocol.TField("operator", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorstrValuesTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorstrValuesTime_argsTupleSchemeFactory()); } public String key; // required public String operator; // required public List values; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), OPERATOR((short)2, "operator"), VALUES((short)3, "values"), TIMESTAMP((short)4, "timestamp"), CREDS((short)5, "creds"), TRANSACTION((short)6, "transaction"), ENVIRONMENT((short)7, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // OPERATOR return OPERATOR; case 3: // VALUES return VALUES; case 4: // TIMESTAMP return TIMESTAMP; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.OPERATOR, new org.apache.thrift.meta_data.FieldMetaData("operator", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUES, new org.apache.thrift.meta_data.FieldMetaData("values", 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, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(findKeyOperatorstrValuesTime_args.class, metaDataMap); } public findKeyOperatorstrValuesTime_args() { } public findKeyOperatorstrValuesTime_args( String key, String operator, List values, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.operator = operator; this.values = values; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findKeyOperatorstrValuesTime_args(findKeyOperatorstrValuesTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetOperator()) { this.operator = other.operator; } if (other.isSetValues()) { List __this__values = new ArrayList(other.values.size()); for (com.cinchapi.concourse.thrift.TObject other_element : other.values) { __this__values.add(new com.cinchapi.concourse.thrift.TObject(other_element)); } this.values = __this__values; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public findKeyOperatorstrValuesTime_args deepCopy() { return new findKeyOperatorstrValuesTime_args(this); } @Override public void clear() { this.key = null; this.operator = null; this.values = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public findKeyOperatorstrValuesTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public String getOperator() { return this.operator; } public findKeyOperatorstrValuesTime_args setOperator(String operator) { this.operator = operator; return this; } public void unsetOperator() { this.operator = null; } /** Returns true if field operator is set (has been assigned a value) and false otherwise */ public boolean isSetOperator() { return this.operator != null; } public void setOperatorIsSet(boolean value) { if (!value) { this.operator = null; } } public int getValuesSize() { return (this.values == null) ? 0 : this.values.size(); } public java.util.Iterator getValuesIterator() { return (this.values == null) ? null : this.values.iterator(); } public void addToValues(com.cinchapi.concourse.thrift.TObject elem) { if (this.values == null) { this.values = new ArrayList(); } this.values.add(elem); } public List getValues() { return this.values; } public findKeyOperatorstrValuesTime_args setValues(List values) { this.values = values; return this; } public void unsetValues() { this.values = null; } /** Returns true if field values is set (has been assigned a value) and false otherwise */ public boolean isSetValues() { return this.values != null; } public void setValuesIsSet(boolean value) { if (!value) { this.values = null; } } public long getTimestamp() { return this.timestamp; } public findKeyOperatorstrValuesTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findKeyOperatorstrValuesTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findKeyOperatorstrValuesTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findKeyOperatorstrValuesTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case OPERATOR: if (value == null) { unsetOperator(); } else { setOperator((String)value); } break; case VALUES: if (value == null) { unsetValues(); } else { setValues((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case OPERATOR: return getOperator(); case VALUES: return getValues(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case OPERATOR: return isSetOperator(); case VALUES: return isSetValues(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findKeyOperatorstrValuesTime_args) return this.equals((findKeyOperatorstrValuesTime_args)that); return false; } public boolean equals(findKeyOperatorstrValuesTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_operator = true && this.isSetOperator(); boolean that_present_operator = true && that.isSetOperator(); if (this_present_operator || that_present_operator) { if (!(this_present_operator && that_present_operator)) return false; if (!this.operator.equals(that.operator)) return false; } boolean this_present_values = true && this.isSetValues(); boolean that_present_values = true && that.isSetValues(); if (this_present_values || that_present_values) { if (!(this_present_values && that_present_values)) return false; if (!this.values.equals(that.values)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_operator = true && (isSetOperator()); list.add(present_operator); if (present_operator) list.add(operator); boolean present_values = true && (isSetValues()); list.add(present_values); if (present_values) list.add(values); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findKeyOperatorstrValuesTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOperator()).compareTo(other.isSetOperator()); if (lastComparison != 0) { return lastComparison; } if (isSetOperator()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operator, other.operator); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("findKeyOperatorstrValuesTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("operator:"); if (this.operator == null) { sb.append("null"); } else { sb.append(this.operator); } first = false; if (!first) sb.append(", "); sb.append("values:"); if (this.values == null) { sb.append("null"); } else { sb.append(this.values); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 findKeyOperatorstrValuesTime_argsStandardSchemeFactory implements SchemeFactory { public findKeyOperatorstrValuesTime_argsStandardScheme getScheme() { return new findKeyOperatorstrValuesTime_argsStandardScheme(); } } private static class findKeyOperatorstrValuesTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorstrValuesTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // OPERATOR if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.operator = iprot.readString(); struct.setOperatorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2542 = iprot.readListBegin(); struct.values = new ArrayList(_list2542.size); com.cinchapi.concourse.thrift.TObject _elem2543; for (int _i2544 = 0; _i2544 < _list2542.size; ++_i2544) { _elem2543 = new com.cinchapi.concourse.thrift.TObject(); _elem2543.read(iprot); struct.values.add(_elem2543); } iprot.readListEnd(); } struct.setValuesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, findKeyOperatorstrValuesTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.operator != null) { oprot.writeFieldBegin(OPERATOR_FIELD_DESC); oprot.writeString(struct.operator); oprot.writeFieldEnd(); } if (struct.values != null) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.values.size())); for (com.cinchapi.concourse.thrift.TObject _iter2545 : struct.values) { _iter2545.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorstrValuesTime_argsTupleSchemeFactory implements SchemeFactory { public findKeyOperatorstrValuesTime_argsTupleScheme getScheme() { return new findKeyOperatorstrValuesTime_argsTupleScheme(); } } private static class findKeyOperatorstrValuesTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValuesTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetOperator()) { optionals.set(1); } if (struct.isSetValues()) { optionals.set(2); } if (struct.isSetTimestamp()) { optionals.set(3); } if (struct.isSetCreds()) { optionals.set(4); } if (struct.isSetTransaction()) { optionals.set(5); } if (struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetOperator()) { oprot.writeString(struct.operator); } if (struct.isSetValues()) { { oprot.writeI32(struct.values.size()); for (com.cinchapi.concourse.thrift.TObject _iter2546 : struct.values) { _iter2546.write(oprot); } } } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValuesTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.operator = iprot.readString(); struct.setOperatorIsSet(true); } if (incoming.get(2)) { { org.apache.thrift.protocol.TList _list2547 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.values = new ArrayList(_list2547.size); com.cinchapi.concourse.thrift.TObject _elem2548; for (int _i2549 = 0; _i2549 < _list2547.size; ++_i2549) { _elem2548 = new com.cinchapi.concourse.thrift.TObject(); _elem2548.read(iprot); struct.values.add(_elem2548); } } struct.setValuesIsSet(true); } if (incoming.get(3)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findKeyOperatorstrValuesTime_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("findKeyOperatorstrValuesTime_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorstrValuesTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorstrValuesTime_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.I64)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(findKeyOperatorstrValuesTime_result.class, metaDataMap); } public findKeyOperatorstrValuesTime_result() { } public findKeyOperatorstrValuesTime_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public findKeyOperatorstrValuesTime_result(findKeyOperatorstrValuesTime_result other) { if (other.isSetSuccess()) { Set __this__success = new LinkedHashSet(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public findKeyOperatorstrValuesTime_result deepCopy() { return new findKeyOperatorstrValuesTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = 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(long elem) { if (this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public findKeyOperatorstrValuesTime_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findKeyOperatorstrValuesTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findKeyOperatorstrValuesTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public findKeyOperatorstrValuesTime_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findKeyOperatorstrValuesTime_result) return this.equals((findKeyOperatorstrValuesTime_result)that); return false; } public boolean equals(findKeyOperatorstrValuesTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(findKeyOperatorstrValuesTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("findKeyOperatorstrValuesTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 findKeyOperatorstrValuesTime_resultStandardSchemeFactory implements SchemeFactory { public findKeyOperatorstrValuesTime_resultStandardScheme getScheme() { return new findKeyOperatorstrValuesTime_resultStandardScheme(); } } private static class findKeyOperatorstrValuesTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorstrValuesTime_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 _set2550 = iprot.readSetBegin(); struct.success = new LinkedHashSet(2*_set2550.size); long _elem2551; for (int _i2552 = 0; _i2552 < _set2550.size; ++_i2552) { _elem2551 = iprot.readI64(); struct.success.add(_elem2551); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, findKeyOperatorstrValuesTime_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.I64, struct.success.size())); for (long _iter2553 : struct.success) { oprot.writeI64(_iter2553); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorstrValuesTime_resultTupleSchemeFactory implements SchemeFactory { public findKeyOperatorstrValuesTime_resultTupleScheme getScheme() { return new findKeyOperatorstrValuesTime_resultTupleScheme(); } } private static class findKeyOperatorstrValuesTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValuesTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter2554 : struct.success) { oprot.writeI64(_iter2554); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValuesTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set2555 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet(2*_set2555.size); long _elem2556; for (int _i2557 = 0; _i2557 < _set2555.size; ++_i2557) { _elem2556 = iprot.readI64(); struct.success.add(_elem2556); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class findKeyOperatorstrValuesTimestr_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("findKeyOperatorstrValuesTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField OPERATOR_FIELD_DESC = new org.apache.thrift.protocol.TField("operator", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorstrValuesTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorstrValuesTimestr_argsTupleSchemeFactory()); } public String key; // required public String operator; // required public List values; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), OPERATOR((short)2, "operator"), VALUES((short)3, "values"), TIMESTAMP((short)4, "timestamp"), CREDS((short)5, "creds"), TRANSACTION((short)6, "transaction"), ENVIRONMENT((short)7, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // OPERATOR return OPERATOR; case 3: // VALUES return VALUES; case 4: // TIMESTAMP return TIMESTAMP; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.OPERATOR, new org.apache.thrift.meta_data.FieldMetaData("operator", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUES, new org.apache.thrift.meta_data.FieldMetaData("values", 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, com.cinchapi.concourse.thrift.TObject.class)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(findKeyOperatorstrValuesTimestr_args.class, metaDataMap); } public findKeyOperatorstrValuesTimestr_args() { } public findKeyOperatorstrValuesTimestr_args( String key, String operator, List values, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.operator = operator; this.values = values; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findKeyOperatorstrValuesTimestr_args(findKeyOperatorstrValuesTimestr_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetOperator()) { this.operator = other.operator; } if (other.isSetValues()) { List __this__values = new ArrayList(other.values.size()); for (com.cinchapi.concourse.thrift.TObject other_element : other.values) { __this__values.add(new com.cinchapi.concourse.thrift.TObject(other_element)); } this.values = __this__values; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public findKeyOperatorstrValuesTimestr_args deepCopy() { return new findKeyOperatorstrValuesTimestr_args(this); } @Override public void clear() { this.key = null; this.operator = null; this.values = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public findKeyOperatorstrValuesTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public String getOperator() { return this.operator; } public findKeyOperatorstrValuesTimestr_args setOperator(String operator) { this.operator = operator; return this; } public void unsetOperator() { this.operator = null; } /** Returns true if field operator is set (has been assigned a value) and false otherwise */ public boolean isSetOperator() { return this.operator != null; } public void setOperatorIsSet(boolean value) { if (!value) { this.operator = null; } } public int getValuesSize() { return (this.values == null) ? 0 : this.values.size(); } public java.util.Iterator getValuesIterator() { return (this.values == null) ? null : this.values.iterator(); } public void addToValues(com.cinchapi.concourse.thrift.TObject elem) { if (this.values == null) { this.values = new ArrayList(); } this.values.add(elem); } public List getValues() { return this.values; } public findKeyOperatorstrValuesTimestr_args setValues(List values) { this.values = values; return this; } public void unsetValues() { this.values = null; } /** Returns true if field values is set (has been assigned a value) and false otherwise */ public boolean isSetValues() { return this.values != null; } public void setValuesIsSet(boolean value) { if (!value) { this.values = null; } } public String getTimestamp() { return this.timestamp; } public findKeyOperatorstrValuesTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findKeyOperatorstrValuesTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findKeyOperatorstrValuesTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findKeyOperatorstrValuesTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case OPERATOR: if (value == null) { unsetOperator(); } else { setOperator((String)value); } break; case VALUES: if (value == null) { unsetValues(); } else { setValues((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case OPERATOR: return getOperator(); case VALUES: return getValues(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case OPERATOR: return isSetOperator(); case VALUES: return isSetValues(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findKeyOperatorstrValuesTimestr_args) return this.equals((findKeyOperatorstrValuesTimestr_args)that); return false; } public boolean equals(findKeyOperatorstrValuesTimestr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_operator = true && this.isSetOperator(); boolean that_present_operator = true && that.isSetOperator(); if (this_present_operator || that_present_operator) { if (!(this_present_operator && that_present_operator)) return false; if (!this.operator.equals(that.operator)) return false; } boolean this_present_values = true && this.isSetValues(); boolean that_present_values = true && that.isSetValues(); if (this_present_values || that_present_values) { if (!(this_present_values && that_present_values)) return false; if (!this.values.equals(that.values)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_operator = true && (isSetOperator()); list.add(present_operator); if (present_operator) list.add(operator); boolean present_values = true && (isSetValues()); list.add(present_values); if (present_values) list.add(values); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findKeyOperatorstrValuesTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOperator()).compareTo(other.isSetOperator()); if (lastComparison != 0) { return lastComparison; } if (isSetOperator()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operator, other.operator); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("findKeyOperatorstrValuesTimestr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("operator:"); if (this.operator == null) { sb.append("null"); } else { sb.append(this.operator); } first = false; if (!first) sb.append(", "); sb.append("values:"); if (this.values == null) { sb.append("null"); } else { sb.append(this.values); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 findKeyOperatorstrValuesTimestr_argsStandardSchemeFactory implements SchemeFactory { public findKeyOperatorstrValuesTimestr_argsStandardScheme getScheme() { return new findKeyOperatorstrValuesTimestr_argsStandardScheme(); } } private static class findKeyOperatorstrValuesTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorstrValuesTimestr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // OPERATOR if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.operator = iprot.readString(); struct.setOperatorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2558 = iprot.readListBegin(); struct.values = new ArrayList(_list2558.size); com.cinchapi.concourse.thrift.TObject _elem2559; for (int _i2560 = 0; _i2560 < _list2558.size; ++_i2560) { _elem2559 = new com.cinchapi.concourse.thrift.TObject(); _elem2559.read(iprot); struct.values.add(_elem2559); } iprot.readListEnd(); } struct.setValuesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, findKeyOperatorstrValuesTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.operator != null) { oprot.writeFieldBegin(OPERATOR_FIELD_DESC); oprot.writeString(struct.operator); oprot.writeFieldEnd(); } if (struct.values != null) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.values.size())); for (com.cinchapi.concourse.thrift.TObject _iter2561 : struct.values) { _iter2561.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorstrValuesTimestr_argsTupleSchemeFactory implements SchemeFactory { public findKeyOperatorstrValuesTimestr_argsTupleScheme getScheme() { return new findKeyOperatorstrValuesTimestr_argsTupleScheme(); } } private static class findKeyOperatorstrValuesTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValuesTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetOperator()) { optionals.set(1); } if (struct.isSetValues()) { optionals.set(2); } if (struct.isSetTimestamp()) { optionals.set(3); } if (struct.isSetCreds()) { optionals.set(4); } if (struct.isSetTransaction()) { optionals.set(5); } if (struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetOperator()) { oprot.writeString(struct.operator); } if (struct.isSetValues()) { { oprot.writeI32(struct.values.size()); for (com.cinchapi.concourse.thrift.TObject _iter2562 : struct.values) { _iter2562.write(oprot); } } } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValuesTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.operator = iprot.readString(); struct.setOperatorIsSet(true); } if (incoming.get(2)) { { org.apache.thrift.protocol.TList _list2563 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.values = new ArrayList(_list2563.size); com.cinchapi.concourse.thrift.TObject _elem2564; for (int _i2565 = 0; _i2565 < _list2563.size; ++_i2565) { _elem2564 = new com.cinchapi.concourse.thrift.TObject(); _elem2564.read(iprot); struct.values.add(_elem2564); } } struct.setValuesIsSet(true); } if (incoming.get(3)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findKeyOperatorstrValuesTimestr_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("findKeyOperatorstrValuesTimestr_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findKeyOperatorstrValuesTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findKeyOperatorstrValuesTimestr_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.I64)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(findKeyOperatorstrValuesTimestr_result.class, metaDataMap); } public findKeyOperatorstrValuesTimestr_result() { } public findKeyOperatorstrValuesTimestr_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public findKeyOperatorstrValuesTimestr_result(findKeyOperatorstrValuesTimestr_result other) { if (other.isSetSuccess()) { Set __this__success = new LinkedHashSet(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public findKeyOperatorstrValuesTimestr_result deepCopy() { return new findKeyOperatorstrValuesTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = 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(long elem) { if (this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public findKeyOperatorstrValuesTimestr_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findKeyOperatorstrValuesTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findKeyOperatorstrValuesTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public findKeyOperatorstrValuesTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findKeyOperatorstrValuesTimestr_result) return this.equals((findKeyOperatorstrValuesTimestr_result)that); return false; } public boolean equals(findKeyOperatorstrValuesTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(findKeyOperatorstrValuesTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("findKeyOperatorstrValuesTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 findKeyOperatorstrValuesTimestr_resultStandardSchemeFactory implements SchemeFactory { public findKeyOperatorstrValuesTimestr_resultStandardScheme getScheme() { return new findKeyOperatorstrValuesTimestr_resultStandardScheme(); } } private static class findKeyOperatorstrValuesTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findKeyOperatorstrValuesTimestr_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 _set2566 = iprot.readSetBegin(); struct.success = new LinkedHashSet(2*_set2566.size); long _elem2567; for (int _i2568 = 0; _i2568 < _set2566.size; ++_i2568) { _elem2567 = iprot.readI64(); struct.success.add(_elem2567); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, findKeyOperatorstrValuesTimestr_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.I64, struct.success.size())); for (long _iter2569 : struct.success) { oprot.writeI64(_iter2569); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findKeyOperatorstrValuesTimestr_resultTupleSchemeFactory implements SchemeFactory { public findKeyOperatorstrValuesTimestr_resultTupleScheme getScheme() { return new findKeyOperatorstrValuesTimestr_resultTupleScheme(); } } private static class findKeyOperatorstrValuesTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValuesTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter2570 : struct.success) { oprot.writeI64(_iter2570); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findKeyOperatorstrValuesTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set2571 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet(2*_set2571.size); long _elem2572; for (int _i2573 = 0; _i2573 < _set2571.size; ++_i2573) { _elem2572 = iprot.readI64(); struct.success.add(_elem2572); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class search_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("search_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new search_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new search_argsTupleSchemeFactory()); } public String key; // required public String query; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), QUERY((short)2, "query"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // QUERY return QUERY; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.QUERY, new org.apache.thrift.meta_data.FieldMetaData("query", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(search_args.class, metaDataMap); } public search_args() { } public search_args( String key, String query, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.query = query; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public search_args(search_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetQuery()) { this.query = other.query; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public search_args deepCopy() { return new search_args(this); } @Override public void clear() { this.key = null; this.query = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public search_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public String getQuery() { return this.query; } public search_args setQuery(String 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 com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public search_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public search_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public search_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case QUERY: if (value == null) { unsetQuery(); } else { setQuery((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case QUERY: return getQuery(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case QUERY: return isSetQuery(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof search_args) return this.equals((search_args)that); return false; } public boolean equals(search_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) 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_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_query = true && (isSetQuery()); list.add(present_query); if (present_query) list.add(query); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(search_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); 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(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("search_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } 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("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 search_argsStandardSchemeFactory implements SchemeFactory { public search_argsStandardScheme getScheme() { return new search_argsStandardScheme(); } } private static class search_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, search_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // QUERY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.query = iprot.readString(); struct.setQueryIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, search_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.query != null) { oprot.writeFieldBegin(QUERY_FIELD_DESC); oprot.writeString(struct.query); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class search_argsTupleSchemeFactory implements SchemeFactory { public search_argsTupleScheme getScheme() { return new search_argsTupleScheme(); } } private static class search_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, search_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetQuery()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetQuery()) { oprot.writeString(struct.query); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, search_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.query = iprot.readString(); struct.setQueryIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class search_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("search_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new search_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new search_resultTupleSchemeFactory()); } public Set success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.I64)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(search_result.class, metaDataMap); } public search_result() { } public search_result( Set success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public search_result(search_result other) { if (other.isSetSuccess()) { Set __this__success = new LinkedHashSet(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public search_result deepCopy() { return new search_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = 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(long elem) { if (this.success == null) { this.success = new LinkedHashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public search_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public search_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public search_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof search_result) return this.equals((search_result)that); return false; } public boolean equals(search_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(search_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("search_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 search_resultStandardSchemeFactory implements SchemeFactory { public search_resultStandardScheme getScheme() { return new search_resultStandardScheme(); } } private static class search_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, search_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 _set2574 = iprot.readSetBegin(); struct.success = new LinkedHashSet(2*_set2574.size); long _elem2575; for (int _i2576 = 0; _i2576 < _set2574.size; ++_i2576) { _elem2575 = iprot.readI64(); struct.success.add(_elem2575); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, search_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.I64, struct.success.size())); for (long _iter2577 : struct.success) { oprot.writeI64(_iter2577); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class search_resultTupleSchemeFactory implements SchemeFactory { public search_resultTupleScheme getScheme() { return new search_resultTupleScheme(); } } private static class search_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, search_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (long _iter2578 : struct.success) { oprot.writeI64(_iter2578); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, search_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set2579 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.success = new LinkedHashSet(2*_set2579.size); long _elem2580; for (int _i2581 = 0; _i2581 < _set2579.size; ++_i2581) { _elem2580 = iprot.readI64(); struct.success.add(_elem2580); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class revertKeysRecordsTime_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("revertKeysRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeysRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeysRecordsTime_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORDS((short)2, "records"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(revertKeysRecordsTime_args.class, metaDataMap); } public revertKeysRecordsTime_args() { } public revertKeysRecordsTime_args( List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public revertKeysRecordsTime_args(revertKeysRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public revertKeysRecordsTime_args deepCopy() { return new revertKeysRecordsTime_args(this); } @Override public void clear() { this.keys = null; this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public revertKeysRecordsTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public revertKeysRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public revertKeysRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public revertKeysRecordsTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public revertKeysRecordsTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public revertKeysRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof revertKeysRecordsTime_args) return this.equals((revertKeysRecordsTime_args)that); return false; } public boolean equals(revertKeysRecordsTime_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(revertKeysRecordsTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("revertKeysRecordsTime_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 revertKeysRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public revertKeysRecordsTime_argsStandardScheme getScheme() { return new revertKeysRecordsTime_argsStandardScheme(); } } private static class revertKeysRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeysRecordsTime_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2582 = iprot.readListBegin(); struct.keys = new ArrayList(_list2582.size); String _elem2583; for (int _i2584 = 0; _i2584 < _list2582.size; ++_i2584) { _elem2583 = iprot.readString(); struct.keys.add(_elem2583); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2585 = iprot.readListBegin(); struct.records = new ArrayList(_list2585.size); long _elem2586; for (int _i2587 = 0; _i2587 < _list2585.size; ++_i2587) { _elem2586 = iprot.readI64(); struct.records.add(_elem2586); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, revertKeysRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2588 : struct.keys) { oprot.writeString(_iter2588); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2589 : struct.records) { oprot.writeI64(_iter2589); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeysRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public revertKeysRecordsTime_argsTupleScheme getScheme() { return new revertKeysRecordsTime_argsTupleScheme(); } } private static class revertKeysRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2590 : struct.keys) { oprot.writeString(_iter2590); } } } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2591 : struct.records) { oprot.writeI64(_iter2591); } } } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2592 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2592.size); String _elem2593; for (int _i2594 = 0; _i2594 < _list2592.size; ++_i2594) { _elem2593 = iprot.readString(); struct.keys.add(_elem2593); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list2595 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2595.size); long _elem2596; for (int _i2597 = 0; _i2597 < _list2595.size; ++_i2597) { _elem2596 = iprot.readI64(); struct.records.add(_elem2596); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class revertKeysRecordsTime_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("revertKeysRecordsTime_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeysRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeysRecordsTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(revertKeysRecordsTime_result.class, metaDataMap); } public revertKeysRecordsTime_result() { } public revertKeysRecordsTime_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public revertKeysRecordsTime_result(revertKeysRecordsTime_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public revertKeysRecordsTime_result deepCopy() { return new revertKeysRecordsTime_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public revertKeysRecordsTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public revertKeysRecordsTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof revertKeysRecordsTime_result) return this.equals((revertKeysRecordsTime_result)that); return false; } public boolean equals(revertKeysRecordsTime_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(revertKeysRecordsTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("revertKeysRecordsTime_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 revertKeysRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public revertKeysRecordsTime_resultStandardScheme getScheme() { return new revertKeysRecordsTime_resultStandardScheme(); } } private static class revertKeysRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeysRecordsTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, revertKeysRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeysRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public revertKeysRecordsTime_resultTupleScheme getScheme() { return new revertKeysRecordsTime_resultTupleScheme(); } } private static class revertKeysRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } if (struct.isSetEx2()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(1)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class revertKeysRecordsTimestr_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("revertKeysRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeysRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeysRecordsTimestr_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORDS((short)2, "records"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(revertKeysRecordsTimestr_args.class, metaDataMap); } public revertKeysRecordsTimestr_args() { } public revertKeysRecordsTimestr_args( List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public revertKeysRecordsTimestr_args(revertKeysRecordsTimestr_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public revertKeysRecordsTimestr_args deepCopy() { return new revertKeysRecordsTimestr_args(this); } @Override public void clear() { this.keys = null; this.records = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public revertKeysRecordsTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public revertKeysRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public revertKeysRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public revertKeysRecordsTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public revertKeysRecordsTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public revertKeysRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof revertKeysRecordsTimestr_args) return this.equals((revertKeysRecordsTimestr_args)that); return false; } public boolean equals(revertKeysRecordsTimestr_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(revertKeysRecordsTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("revertKeysRecordsTimestr_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 revertKeysRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public revertKeysRecordsTimestr_argsStandardScheme getScheme() { return new revertKeysRecordsTimestr_argsStandardScheme(); } } private static class revertKeysRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeysRecordsTimestr_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2598 = iprot.readListBegin(); struct.keys = new ArrayList(_list2598.size); String _elem2599; for (int _i2600 = 0; _i2600 < _list2598.size; ++_i2600) { _elem2599 = iprot.readString(); struct.keys.add(_elem2599); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2601 = iprot.readListBegin(); struct.records = new ArrayList(_list2601.size); long _elem2602; for (int _i2603 = 0; _i2603 < _list2601.size; ++_i2603) { _elem2602 = iprot.readI64(); struct.records.add(_elem2602); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, revertKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2604 : struct.keys) { oprot.writeString(_iter2604); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2605 : struct.records) { oprot.writeI64(_iter2605); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeysRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public revertKeysRecordsTimestr_argsTupleScheme getScheme() { return new revertKeysRecordsTimestr_argsTupleScheme(); } } private static class revertKeysRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2606 : struct.keys) { oprot.writeString(_iter2606); } } } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2607 : struct.records) { oprot.writeI64(_iter2607); } } } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2608 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2608.size); String _elem2609; for (int _i2610 = 0; _i2610 < _list2608.size; ++_i2610) { _elem2609 = iprot.readString(); struct.keys.add(_elem2609); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list2611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2611.size); long _elem2612; for (int _i2613 = 0; _i2613 < _list2611.size; ++_i2613) { _elem2612 = iprot.readI64(); struct.records.add(_elem2612); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class revertKeysRecordsTimestr_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("revertKeysRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeysRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeysRecordsTimestr_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(revertKeysRecordsTimestr_result.class, metaDataMap); } public revertKeysRecordsTimestr_result() { } public revertKeysRecordsTimestr_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public revertKeysRecordsTimestr_result(revertKeysRecordsTimestr_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public revertKeysRecordsTimestr_result deepCopy() { return new revertKeysRecordsTimestr_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; this.ex3 = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public revertKeysRecordsTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public revertKeysRecordsTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public revertKeysRecordsTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof revertKeysRecordsTimestr_result) return this.equals((revertKeysRecordsTimestr_result)that); return false; } public boolean equals(revertKeysRecordsTimestr_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(revertKeysRecordsTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("revertKeysRecordsTimestr_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 revertKeysRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public revertKeysRecordsTimestr_resultStandardScheme getScheme() { return new revertKeysRecordsTimestr_resultStandardScheme(); } } private static class revertKeysRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, revertKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeysRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public revertKeysRecordsTimestr_resultTupleScheme getScheme() { return new revertKeysRecordsTimestr_resultTupleScheme(); } } private static class revertKeysRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } if (struct.isSetEx2()) { optionals.set(1); } if (struct.isSetEx3()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(1)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(2)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class revertKeysRecordTime_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("revertKeysRecordTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeysRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeysRecordTime_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORD((short)2, "record"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(revertKeysRecordTime_args.class, metaDataMap); } public revertKeysRecordTime_args() { } public revertKeysRecordTime_args( List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public revertKeysRecordTime_args(revertKeysRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public revertKeysRecordTime_args deepCopy() { return new revertKeysRecordTime_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public revertKeysRecordTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public long getRecord() { return this.record; } public revertKeysRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public revertKeysRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public revertKeysRecordTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public revertKeysRecordTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public revertKeysRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof revertKeysRecordTime_args) return this.equals((revertKeysRecordTime_args)that); return false; } public boolean equals(revertKeysRecordTime_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(revertKeysRecordTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("revertKeysRecordTime_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 revertKeysRecordTime_argsStandardSchemeFactory implements SchemeFactory { public revertKeysRecordTime_argsStandardScheme getScheme() { return new revertKeysRecordTime_argsStandardScheme(); } } private static class revertKeysRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeysRecordTime_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2614 = iprot.readListBegin(); struct.keys = new ArrayList(_list2614.size); String _elem2615; for (int _i2616 = 0; _i2616 < _list2614.size; ++_i2616) { _elem2615 = iprot.readString(); struct.keys.add(_elem2615); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, revertKeysRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2617 : struct.keys) { oprot.writeString(_iter2617); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeysRecordTime_argsTupleSchemeFactory implements SchemeFactory { public revertKeysRecordTime_argsTupleScheme getScheme() { return new revertKeysRecordTime_argsTupleScheme(); } } private static class revertKeysRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2618 : struct.keys) { oprot.writeString(_iter2618); } } } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2619.size); String _elem2620; for (int _i2621 = 0; _i2621 < _list2619.size; ++_i2621) { _elem2620 = iprot.readString(); struct.keys.add(_elem2620); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class revertKeysRecordTime_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("revertKeysRecordTime_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeysRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeysRecordTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(revertKeysRecordTime_result.class, metaDataMap); } public revertKeysRecordTime_result() { } public revertKeysRecordTime_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public revertKeysRecordTime_result(revertKeysRecordTime_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public revertKeysRecordTime_result deepCopy() { return new revertKeysRecordTime_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public revertKeysRecordTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public revertKeysRecordTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof revertKeysRecordTime_result) return this.equals((revertKeysRecordTime_result)that); return false; } public boolean equals(revertKeysRecordTime_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(revertKeysRecordTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("revertKeysRecordTime_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 revertKeysRecordTime_resultStandardSchemeFactory implements SchemeFactory { public revertKeysRecordTime_resultStandardScheme getScheme() { return new revertKeysRecordTime_resultStandardScheme(); } } private static class revertKeysRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeysRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, revertKeysRecordTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeysRecordTime_resultTupleSchemeFactory implements SchemeFactory { public revertKeysRecordTime_resultTupleScheme getScheme() { return new revertKeysRecordTime_resultTupleScheme(); } } private static class revertKeysRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } if (struct.isSetEx2()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(1)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class revertKeysRecordTimestr_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("revertKeysRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeysRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeysRecordTimestr_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORD((short)2, "record"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(revertKeysRecordTimestr_args.class, metaDataMap); } public revertKeysRecordTimestr_args() { } public revertKeysRecordTimestr_args( List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public revertKeysRecordTimestr_args(revertKeysRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public revertKeysRecordTimestr_args deepCopy() { return new revertKeysRecordTimestr_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public revertKeysRecordTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public long getRecord() { return this.record; } public revertKeysRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public revertKeysRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public revertKeysRecordTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public revertKeysRecordTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public revertKeysRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof revertKeysRecordTimestr_args) return this.equals((revertKeysRecordTimestr_args)that); return false; } public boolean equals(revertKeysRecordTimestr_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(revertKeysRecordTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("revertKeysRecordTimestr_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 revertKeysRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public revertKeysRecordTimestr_argsStandardScheme getScheme() { return new revertKeysRecordTimestr_argsStandardScheme(); } } private static class revertKeysRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeysRecordTimestr_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2622 = iprot.readListBegin(); struct.keys = new ArrayList(_list2622.size); String _elem2623; for (int _i2624 = 0; _i2624 < _list2622.size; ++_i2624) { _elem2623 = iprot.readString(); struct.keys.add(_elem2623); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, revertKeysRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2625 : struct.keys) { oprot.writeString(_iter2625); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeysRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public revertKeysRecordTimestr_argsTupleScheme getScheme() { return new revertKeysRecordTimestr_argsTupleScheme(); } } private static class revertKeysRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2626 : struct.keys) { oprot.writeString(_iter2626); } } } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2627.size); String _elem2628; for (int _i2629 = 0; _i2629 < _list2627.size; ++_i2629) { _elem2628 = iprot.readString(); struct.keys.add(_elem2628); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class revertKeysRecordTimestr_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("revertKeysRecordTimestr_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeysRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeysRecordTimestr_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(revertKeysRecordTimestr_result.class, metaDataMap); } public revertKeysRecordTimestr_result() { } public revertKeysRecordTimestr_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public revertKeysRecordTimestr_result(revertKeysRecordTimestr_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public revertKeysRecordTimestr_result deepCopy() { return new revertKeysRecordTimestr_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; this.ex3 = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public revertKeysRecordTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public revertKeysRecordTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public revertKeysRecordTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof revertKeysRecordTimestr_result) return this.equals((revertKeysRecordTimestr_result)that); return false; } public boolean equals(revertKeysRecordTimestr_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(revertKeysRecordTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("revertKeysRecordTimestr_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 revertKeysRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public revertKeysRecordTimestr_resultStandardScheme getScheme() { return new revertKeysRecordTimestr_resultStandardScheme(); } } private static class revertKeysRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeysRecordTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, revertKeysRecordTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeysRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public revertKeysRecordTimestr_resultTupleScheme getScheme() { return new revertKeysRecordTimestr_resultTupleScheme(); } } private static class revertKeysRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } if (struct.isSetEx2()) { optionals.set(1); } if (struct.isSetEx3()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeysRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(1)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(2)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class revertKeyRecordsTime_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("revertKeyRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeyRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeyRecordsTime_argsTupleSchemeFactory()); } public String key; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORDS((short)2, "records"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(revertKeyRecordsTime_args.class, metaDataMap); } public revertKeyRecordsTime_args() { } public revertKeyRecordsTime_args( String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public revertKeyRecordsTime_args(revertKeyRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public revertKeyRecordsTime_args deepCopy() { return new revertKeyRecordsTime_args(this); } @Override public void clear() { this.key = null; this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public revertKeyRecordsTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public revertKeyRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public revertKeyRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public revertKeyRecordsTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public revertKeyRecordsTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public revertKeyRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof revertKeyRecordsTime_args) return this.equals((revertKeyRecordsTime_args)that); return false; } public boolean equals(revertKeyRecordsTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(revertKeyRecordsTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("revertKeyRecordsTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 revertKeyRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public revertKeyRecordsTime_argsStandardScheme getScheme() { return new revertKeyRecordsTime_argsStandardScheme(); } } private static class revertKeyRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeyRecordsTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2630 = iprot.readListBegin(); struct.records = new ArrayList(_list2630.size); long _elem2631; for (int _i2632 = 0; _i2632 < _list2630.size; ++_i2632) { _elem2631 = iprot.readI64(); struct.records.add(_elem2631); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, revertKeyRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2633 : struct.records) { oprot.writeI64(_iter2633); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeyRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public revertKeyRecordsTime_argsTupleScheme getScheme() { return new revertKeyRecordsTime_argsTupleScheme(); } } private static class revertKeyRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2634 : struct.records) { oprot.writeI64(_iter2634); } } } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list2635 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2635.size); long _elem2636; for (int _i2637 = 0; _i2637 < _list2635.size; ++_i2637) { _elem2636 = iprot.readI64(); struct.records.add(_elem2636); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class revertKeyRecordsTime_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("revertKeyRecordsTime_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeyRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeyRecordsTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(revertKeyRecordsTime_result.class, metaDataMap); } public revertKeyRecordsTime_result() { } public revertKeyRecordsTime_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public revertKeyRecordsTime_result(revertKeyRecordsTime_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public revertKeyRecordsTime_result deepCopy() { return new revertKeyRecordsTime_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public revertKeyRecordsTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public revertKeyRecordsTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof revertKeyRecordsTime_result) return this.equals((revertKeyRecordsTime_result)that); return false; } public boolean equals(revertKeyRecordsTime_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(revertKeyRecordsTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("revertKeyRecordsTime_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 revertKeyRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public revertKeyRecordsTime_resultStandardScheme getScheme() { return new revertKeyRecordsTime_resultStandardScheme(); } } private static class revertKeyRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeyRecordsTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, revertKeyRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeyRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public revertKeyRecordsTime_resultTupleScheme getScheme() { return new revertKeyRecordsTime_resultTupleScheme(); } } private static class revertKeyRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } if (struct.isSetEx2()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(1)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class revertKeyRecordsTimestr_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("revertKeyRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeyRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeyRecordsTimestr_argsTupleSchemeFactory()); } public String key; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORDS((short)2, "records"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(revertKeyRecordsTimestr_args.class, metaDataMap); } public revertKeyRecordsTimestr_args() { } public revertKeyRecordsTimestr_args( String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public revertKeyRecordsTimestr_args(revertKeyRecordsTimestr_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public revertKeyRecordsTimestr_args deepCopy() { return new revertKeyRecordsTimestr_args(this); } @Override public void clear() { this.key = null; this.records = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public revertKeyRecordsTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public revertKeyRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public revertKeyRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public revertKeyRecordsTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public revertKeyRecordsTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public revertKeyRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof revertKeyRecordsTimestr_args) return this.equals((revertKeyRecordsTimestr_args)that); return false; } public boolean equals(revertKeyRecordsTimestr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(revertKeyRecordsTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("revertKeyRecordsTimestr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 revertKeyRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public revertKeyRecordsTimestr_argsStandardScheme getScheme() { return new revertKeyRecordsTimestr_argsStandardScheme(); } } private static class revertKeyRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeyRecordsTimestr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2638 = iprot.readListBegin(); struct.records = new ArrayList(_list2638.size); long _elem2639; for (int _i2640 = 0; _i2640 < _list2638.size; ++_i2640) { _elem2639 = iprot.readI64(); struct.records.add(_elem2639); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, revertKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2641 : struct.records) { oprot.writeI64(_iter2641); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeyRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public revertKeyRecordsTimestr_argsTupleScheme getScheme() { return new revertKeyRecordsTimestr_argsTupleScheme(); } } private static class revertKeyRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2642 : struct.records) { oprot.writeI64(_iter2642); } } } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list2643 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2643.size); long _elem2644; for (int _i2645 = 0; _i2645 < _list2643.size; ++_i2645) { _elem2644 = iprot.readI64(); struct.records.add(_elem2644); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class revertKeyRecordsTimestr_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("revertKeyRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeyRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeyRecordsTimestr_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(revertKeyRecordsTimestr_result.class, metaDataMap); } public revertKeyRecordsTimestr_result() { } public revertKeyRecordsTimestr_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public revertKeyRecordsTimestr_result(revertKeyRecordsTimestr_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public revertKeyRecordsTimestr_result deepCopy() { return new revertKeyRecordsTimestr_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; this.ex3 = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public revertKeyRecordsTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public revertKeyRecordsTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public revertKeyRecordsTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof revertKeyRecordsTimestr_result) return this.equals((revertKeyRecordsTimestr_result)that); return false; } public boolean equals(revertKeyRecordsTimestr_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(revertKeyRecordsTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("revertKeyRecordsTimestr_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 revertKeyRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public revertKeyRecordsTimestr_resultStandardScheme getScheme() { return new revertKeyRecordsTimestr_resultStandardScheme(); } } private static class revertKeyRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, revertKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeyRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public revertKeyRecordsTimestr_resultTupleScheme getScheme() { return new revertKeyRecordsTimestr_resultTupleScheme(); } } private static class revertKeyRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } if (struct.isSetEx2()) { optionals.set(1); } if (struct.isSetEx3()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(1)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(2)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class revertKeyRecordTime_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("revertKeyRecordTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeyRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeyRecordTime_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(revertKeyRecordTime_args.class, metaDataMap); } public revertKeyRecordTime_args() { } public revertKeyRecordTime_args( String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public revertKeyRecordTime_args(revertKeyRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public revertKeyRecordTime_args deepCopy() { return new revertKeyRecordTime_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public revertKeyRecordTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public revertKeyRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public revertKeyRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public revertKeyRecordTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public revertKeyRecordTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public revertKeyRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof revertKeyRecordTime_args) return this.equals((revertKeyRecordTime_args)that); return false; } public boolean equals(revertKeyRecordTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(revertKeyRecordTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("revertKeyRecordTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 revertKeyRecordTime_argsStandardSchemeFactory implements SchemeFactory { public revertKeyRecordTime_argsStandardScheme getScheme() { return new revertKeyRecordTime_argsStandardScheme(); } } private static class revertKeyRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeyRecordTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, revertKeyRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeyRecordTime_argsTupleSchemeFactory implements SchemeFactory { public revertKeyRecordTime_argsTupleScheme getScheme() { return new revertKeyRecordTime_argsTupleScheme(); } } private static class revertKeyRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class revertKeyRecordTime_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("revertKeyRecordTime_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeyRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeyRecordTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(revertKeyRecordTime_result.class, metaDataMap); } public revertKeyRecordTime_result() { } public revertKeyRecordTime_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public revertKeyRecordTime_result(revertKeyRecordTime_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public revertKeyRecordTime_result deepCopy() { return new revertKeyRecordTime_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public revertKeyRecordTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public revertKeyRecordTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof revertKeyRecordTime_result) return this.equals((revertKeyRecordTime_result)that); return false; } public boolean equals(revertKeyRecordTime_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(revertKeyRecordTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("revertKeyRecordTime_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 revertKeyRecordTime_resultStandardSchemeFactory implements SchemeFactory { public revertKeyRecordTime_resultStandardScheme getScheme() { return new revertKeyRecordTime_resultStandardScheme(); } } private static class revertKeyRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeyRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, revertKeyRecordTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeyRecordTime_resultTupleSchemeFactory implements SchemeFactory { public revertKeyRecordTime_resultTupleScheme getScheme() { return new revertKeyRecordTime_resultTupleScheme(); } } private static class revertKeyRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } if (struct.isSetEx2()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(1)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class revertKeyRecordTimestr_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("revertKeyRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeyRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeyRecordTimestr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(revertKeyRecordTimestr_args.class, metaDataMap); } public revertKeyRecordTimestr_args() { } public revertKeyRecordTimestr_args( String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public revertKeyRecordTimestr_args(revertKeyRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public revertKeyRecordTimestr_args deepCopy() { return new revertKeyRecordTimestr_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public revertKeyRecordTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public revertKeyRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public revertKeyRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public revertKeyRecordTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public revertKeyRecordTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public revertKeyRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof revertKeyRecordTimestr_args) return this.equals((revertKeyRecordTimestr_args)that); return false; } public boolean equals(revertKeyRecordTimestr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(revertKeyRecordTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("revertKeyRecordTimestr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 revertKeyRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public revertKeyRecordTimestr_argsStandardScheme getScheme() { return new revertKeyRecordTimestr_argsStandardScheme(); } } private static class revertKeyRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeyRecordTimestr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, revertKeyRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeyRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public revertKeyRecordTimestr_argsTupleScheme getScheme() { return new revertKeyRecordTimestr_argsTupleScheme(); } } private static class revertKeyRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class revertKeyRecordTimestr_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("revertKeyRecordTimestr_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revertKeyRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new revertKeyRecordTimestr_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(revertKeyRecordTimestr_result.class, metaDataMap); } public revertKeyRecordTimestr_result() { } public revertKeyRecordTimestr_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public revertKeyRecordTimestr_result(revertKeyRecordTimestr_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public revertKeyRecordTimestr_result deepCopy() { return new revertKeyRecordTimestr_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; this.ex3 = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public revertKeyRecordTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public revertKeyRecordTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public revertKeyRecordTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof revertKeyRecordTimestr_result) return this.equals((revertKeyRecordTimestr_result)that); return false; } public boolean equals(revertKeyRecordTimestr_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(revertKeyRecordTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("revertKeyRecordTimestr_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 revertKeyRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public revertKeyRecordTimestr_resultStandardScheme getScheme() { return new revertKeyRecordTimestr_resultStandardScheme(); } } private static class revertKeyRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, revertKeyRecordTimestr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, revertKeyRecordTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revertKeyRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public revertKeyRecordTimestr_resultTupleScheme getScheme() { return new revertKeyRecordTimestr_resultTupleScheme(); } } private static class revertKeyRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } if (struct.isSetEx2()) { optionals.set(1); } if (struct.isSetEx3()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revertKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(1)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(2)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class pingRecords_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("pingRecords_args"); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new pingRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new pingRecords_argsTupleSchemeFactory()); } public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORDS((short)1, "records"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORDS return RECORDS; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pingRecords_args.class, metaDataMap); } public pingRecords_args() { } public pingRecords_args( List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public pingRecords_args(pingRecords_args other) { if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public pingRecords_args deepCopy() { return new pingRecords_args(this); } @Override public void clear() { this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public pingRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public pingRecords_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public pingRecords_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public pingRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof pingRecords_args) return this.equals((pingRecords_args)that); return false; } public boolean equals(pingRecords_args that) { if (that == null) return false; boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(pingRecords_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("pingRecords_args("); boolean first = true; sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 pingRecords_argsStandardSchemeFactory implements SchemeFactory { public pingRecords_argsStandardScheme getScheme() { return new pingRecords_argsStandardScheme(); } } private static class pingRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, pingRecords_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: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2646 = iprot.readListBegin(); struct.records = new ArrayList(_list2646.size); long _elem2647; for (int _i2648 = 0; _i2648 < _list2646.size; ++_i2648) { _elem2647 = iprot.readI64(); struct.records.add(_elem2647); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, pingRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2649 : struct.records) { oprot.writeI64(_iter2649); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class pingRecords_argsTupleSchemeFactory implements SchemeFactory { public pingRecords_argsTupleScheme getScheme() { return new pingRecords_argsTupleScheme(); } } private static class pingRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, pingRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecords()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2650 : struct.records) { oprot.writeI64(_iter2650); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, pingRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2651 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2651.size); long _elem2652; for (int _i2653 = 0; _i2653 < _list2651.size; ++_i2653) { _elem2652 = iprot.readI64(); struct.records.add(_elem2652); } } struct.setRecordsIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class pingRecords_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("pingRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new pingRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new pingRecords_resultTupleSchemeFactory()); } public Map success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(pingRecords_result.class, metaDataMap); } public pingRecords_result() { } public pingRecords_result( Map success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public pingRecords_result(pingRecords_result other) { if (other.isSetSuccess()) { Map __this__success = new LinkedHashMap(other.success); this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public pingRecords_result deepCopy() { return new pingRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, boolean val) { if (this.success == null) { this.success = new LinkedHashMap(); } this.success.put(key, val); } public Map getSuccess() { return this.success; } public pingRecords_result setSuccess(Map success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public pingRecords_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public pingRecords_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof pingRecords_result) return this.equals((pingRecords_result)that); return false; } public boolean equals(pingRecords_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(pingRecords_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("pingRecords_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 pingRecords_resultStandardSchemeFactory implements SchemeFactory { public pingRecords_resultStandardScheme getScheme() { return new pingRecords_resultStandardScheme(); } } private static class pingRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, pingRecords_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.MAP) { { org.apache.thrift.protocol.TMap _map2654 = iprot.readMapBegin(); struct.success = new LinkedHashMap(2*_map2654.size); long _key2655; boolean _val2656; for (int _i2657 = 0; _i2657 < _map2654.size; ++_i2657) { _key2655 = iprot.readI64(); _val2656 = iprot.readBool(); struct.success.put(_key2655, _val2656); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, pingRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, struct.success.size())); for (Map.Entry _iter2658 : struct.success.entrySet()) { oprot.writeI64(_iter2658.getKey()); oprot.writeBool(_iter2658.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class pingRecords_resultTupleSchemeFactory implements SchemeFactory { public pingRecords_resultTupleScheme getScheme() { return new pingRecords_resultTupleScheme(); } } private static class pingRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, pingRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry _iter2659 : struct.success.entrySet()) { oprot.writeI64(_iter2659.getKey()); oprot.writeBool(_iter2659.getValue()); } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, pingRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2660 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, iprot.readI32()); struct.success = new LinkedHashMap(2*_map2660.size); long _key2661; boolean _val2662; for (int _i2663 = 0; _i2663 < _map2660.size; ++_i2663) { _key2661 = iprot.readI64(); _val2662 = iprot.readBool(); struct.success.put(_key2661, _val2662); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class pingRecord_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("pingRecord_args"); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new pingRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new pingRecord_argsTupleSchemeFactory()); } public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { RECORD((short)1, "record"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // RECORD return RECORD; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pingRecord_args.class, metaDataMap); } public pingRecord_args() { } public pingRecord_args( long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public pingRecord_args(pingRecord_args other) { __isset_bitfield = other.__isset_bitfield; this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public pingRecord_args deepCopy() { return new pingRecord_args(this); } @Override public void clear() { setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public long getRecord() { return this.record; } public pingRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public pingRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public pingRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public pingRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof pingRecord_args) return this.equals((pingRecord_args)that); return false; } public boolean equals(pingRecord_args that) { if (that == null) return false; boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(pingRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("pingRecord_args("); boolean first = true; sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 pingRecord_argsStandardSchemeFactory implements SchemeFactory { public pingRecord_argsStandardScheme getScheme() { return new pingRecord_argsStandardScheme(); } } private static class pingRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, pingRecord_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: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, pingRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class pingRecord_argsTupleSchemeFactory implements SchemeFactory { public pingRecord_argsTupleScheme getScheme() { return new pingRecord_argsTupleScheme(); } } private static class pingRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, pingRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRecord()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, pingRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class pingRecord_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("pingRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new pingRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new pingRecord_resultTupleSchemeFactory()); } public boolean success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(pingRecord_result.class, metaDataMap); } public pingRecord_result() { } public pingRecord_result( boolean success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public pingRecord_result(pingRecord_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public pingRecord_result deepCopy() { return new pingRecord_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = false; this.ex = null; this.ex2 = null; } public boolean isSuccess() { return this.success; } public pingRecord_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public pingRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public pingRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Boolean)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof pingRecord_result) return this.equals((pingRecord_result)that); return false; } public boolean equals(pingRecord_result that) { if (that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if (present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(pingRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("pingRecord_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class pingRecord_resultStandardSchemeFactory implements SchemeFactory { public pingRecord_resultStandardScheme getScheme() { return new pingRecord_resultStandardScheme(); } } private static class pingRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, pingRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, pingRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class pingRecord_resultTupleSchemeFactory implements SchemeFactory { public pingRecord_resultTupleScheme getScheme() { return new pingRecord_resultTupleScheme(); } } private static class pingRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, pingRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { oprot.writeBool(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, pingRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class verifyAndSwap_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("verifyAndSwap_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField EXPECTED_FIELD_DESC = new org.apache.thrift.protocol.TField("expected", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField REPLACEMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("replacement", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)6); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)7); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new verifyAndSwap_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new verifyAndSwap_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject expected; // required public long record; // required public com.cinchapi.concourse.thrift.TObject replacement; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), EXPECTED((short)2, "expected"), RECORD((short)3, "record"), REPLACEMENT((short)4, "replacement"), CREDS((short)5, "creds"), TRANSACTION((short)6, "transaction"), ENVIRONMENT((short)7, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // EXPECTED return EXPECTED; case 3: // RECORD return RECORD; case 4: // REPLACEMENT return REPLACEMENT; case 5: // CREDS return CREDS; case 6: // TRANSACTION return TRANSACTION; case 7: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.EXPECTED, new org.apache.thrift.meta_data.FieldMetaData("expected", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.REPLACEMENT, new org.apache.thrift.meta_data.FieldMetaData("replacement", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(verifyAndSwap_args.class, metaDataMap); } public verifyAndSwap_args() { } public verifyAndSwap_args( String key, com.cinchapi.concourse.thrift.TObject expected, long record, com.cinchapi.concourse.thrift.TObject replacement, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.expected = expected; this.record = record; setRecordIsSet(true); this.replacement = replacement; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public verifyAndSwap_args(verifyAndSwap_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetExpected()) { this.expected = new com.cinchapi.concourse.thrift.TObject(other.expected); } this.record = other.record; if (other.isSetReplacement()) { this.replacement = new com.cinchapi.concourse.thrift.TObject(other.replacement); } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public verifyAndSwap_args deepCopy() { return new verifyAndSwap_args(this); } @Override public void clear() { this.key = null; this.expected = null; setRecordIsSet(false); this.record = 0; this.replacement = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public verifyAndSwap_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getExpected() { return this.expected; } public verifyAndSwap_args setExpected(com.cinchapi.concourse.thrift.TObject expected) { this.expected = expected; return this; } public void unsetExpected() { this.expected = null; } /** Returns true if field expected is set (has been assigned a value) and false otherwise */ public boolean isSetExpected() { return this.expected != null; } public void setExpectedIsSet(boolean value) { if (!value) { this.expected = null; } } public long getRecord() { return this.record; } public verifyAndSwap_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.TObject getReplacement() { return this.replacement; } public verifyAndSwap_args setReplacement(com.cinchapi.concourse.thrift.TObject replacement) { this.replacement = replacement; return this; } public void unsetReplacement() { this.replacement = null; } /** Returns true if field replacement is set (has been assigned a value) and false otherwise */ public boolean isSetReplacement() { return this.replacement != null; } public void setReplacementIsSet(boolean value) { if (!value) { this.replacement = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public verifyAndSwap_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public verifyAndSwap_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public verifyAndSwap_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case EXPECTED: if (value == null) { unsetExpected(); } else { setExpected((com.cinchapi.concourse.thrift.TObject)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case REPLACEMENT: if (value == null) { unsetReplacement(); } else { setReplacement((com.cinchapi.concourse.thrift.TObject)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case EXPECTED: return getExpected(); case RECORD: return getRecord(); case REPLACEMENT: return getReplacement(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case EXPECTED: return isSetExpected(); case RECORD: return isSetRecord(); case REPLACEMENT: return isSetReplacement(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof verifyAndSwap_args) return this.equals((verifyAndSwap_args)that); return false; } public boolean equals(verifyAndSwap_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_expected = true && this.isSetExpected(); boolean that_present_expected = true && that.isSetExpected(); if (this_present_expected || that_present_expected) { if (!(this_present_expected && that_present_expected)) return false; if (!this.expected.equals(that.expected)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_replacement = true && this.isSetReplacement(); boolean that_present_replacement = true && that.isSetReplacement(); if (this_present_replacement || that_present_replacement) { if (!(this_present_replacement && that_present_replacement)) return false; if (!this.replacement.equals(that.replacement)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_expected = true && (isSetExpected()); list.add(present_expected); if (present_expected) list.add(expected); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_replacement = true && (isSetReplacement()); list.add(present_replacement); if (present_replacement) list.add(replacement); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(verifyAndSwap_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetExpected()).compareTo(other.isSetExpected()); if (lastComparison != 0) { return lastComparison; } if (isSetExpected()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expected, other.expected); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetReplacement()).compareTo(other.isSetReplacement()); if (lastComparison != 0) { return lastComparison; } if (isSetReplacement()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.replacement, other.replacement); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("verifyAndSwap_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("expected:"); if (this.expected == null) { sb.append("null"); } else { sb.append(this.expected); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("replacement:"); if (this.replacement == null) { sb.append("null"); } else { sb.append(this.replacement); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (expected != null) { expected.validate(); } if (replacement != null) { replacement.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 verifyAndSwap_argsStandardSchemeFactory implements SchemeFactory { public verifyAndSwap_argsStandardScheme getScheme() { return new verifyAndSwap_argsStandardScheme(); } } private static class verifyAndSwap_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, verifyAndSwap_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EXPECTED if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.expected = new com.cinchapi.concourse.thrift.TObject(); struct.expected.read(iprot); struct.setExpectedIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // REPLACEMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.replacement = new com.cinchapi.concourse.thrift.TObject(); struct.replacement.read(iprot); struct.setReplacementIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, verifyAndSwap_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.expected != null) { oprot.writeFieldBegin(EXPECTED_FIELD_DESC); struct.expected.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.replacement != null) { oprot.writeFieldBegin(REPLACEMENT_FIELD_DESC); struct.replacement.write(oprot); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class verifyAndSwap_argsTupleSchemeFactory implements SchemeFactory { public verifyAndSwap_argsTupleScheme getScheme() { return new verifyAndSwap_argsTupleScheme(); } } private static class verifyAndSwap_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, verifyAndSwap_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetExpected()) { optionals.set(1); } if (struct.isSetRecord()) { optionals.set(2); } if (struct.isSetReplacement()) { optionals.set(3); } if (struct.isSetCreds()) { optionals.set(4); } if (struct.isSetTransaction()) { optionals.set(5); } if (struct.isSetEnvironment()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetExpected()) { struct.expected.write(oprot); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetReplacement()) { struct.replacement.write(oprot); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, verifyAndSwap_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.expected = new com.cinchapi.concourse.thrift.TObject(); struct.expected.read(iprot); struct.setExpectedIsSet(true); } if (incoming.get(2)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(3)) { struct.replacement = new com.cinchapi.concourse.thrift.TObject(); struct.replacement.read(iprot); struct.setReplacementIsSet(true); } if (incoming.get(4)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(5)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(6)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class verifyAndSwap_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("verifyAndSwap_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new verifyAndSwap_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new verifyAndSwap_resultTupleSchemeFactory()); } public boolean success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(verifyAndSwap_result.class, metaDataMap); } public verifyAndSwap_result() { } public verifyAndSwap_result( boolean success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public verifyAndSwap_result(verifyAndSwap_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public verifyAndSwap_result deepCopy() { return new verifyAndSwap_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = false; this.ex = null; this.ex2 = null; } public boolean isSuccess() { return this.success; } public verifyAndSwap_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public verifyAndSwap_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public verifyAndSwap_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Boolean)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof verifyAndSwap_result) return this.equals((verifyAndSwap_result)that); return false; } public boolean equals(verifyAndSwap_result that) { if (that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if (present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(verifyAndSwap_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("verifyAndSwap_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class verifyAndSwap_resultStandardSchemeFactory implements SchemeFactory { public verifyAndSwap_resultStandardScheme getScheme() { return new verifyAndSwap_resultStandardScheme(); } } private static class verifyAndSwap_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, verifyAndSwap_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, verifyAndSwap_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class verifyAndSwap_resultTupleSchemeFactory implements SchemeFactory { public verifyAndSwap_resultTupleScheme getScheme() { return new verifyAndSwap_resultTupleScheme(); } } private static class verifyAndSwap_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, verifyAndSwap_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { oprot.writeBool(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, verifyAndSwap_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class verifyOrSet_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("verifyOrSet_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new verifyOrSet_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new verifyOrSet_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), VALUE((short)2, "value"), RECORD((short)3, "record"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // RECORD return RECORD; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(verifyOrSet_args.class, metaDataMap); } public verifyOrSet_args() { } public verifyOrSet_args( String key, com.cinchapi.concourse.thrift.TObject value, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public verifyOrSet_args(verifyOrSet_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject(other.value); } this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public verifyOrSet_args deepCopy() { return new verifyOrSet_args(this); } @Override public void clear() { this.key = null; this.value = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public verifyOrSet_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public verifyOrSet_args setValue(com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** Returns true if field value is set (has been assigned a value) and false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if (!value) { this.value = null; } } public long getRecord() { return this.record; } public verifyOrSet_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public verifyOrSet_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public verifyOrSet_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public verifyOrSet_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case VALUE: if (value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case VALUE: return isSetValue(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof verifyOrSet_args) return this.equals((verifyOrSet_args)that); return false; } public boolean equals(verifyOrSet_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (!this.value.equals(that.value)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if (present_value) list.add(value); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(verifyOrSet_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("verifyOrSet_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("value:"); if (this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (value != null) { value.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 verifyOrSet_argsStandardSchemeFactory implements SchemeFactory { public verifyOrSet_argsStandardScheme getScheme() { return new verifyOrSet_argsStandardScheme(); } } private static class verifyOrSet_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, verifyOrSet_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, verifyOrSet_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class verifyOrSet_argsTupleSchemeFactory implements SchemeFactory { public verifyOrSet_argsTupleScheme getScheme() { return new verifyOrSet_argsTupleScheme(); } } private static class verifyOrSet_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, verifyOrSet_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetRecord()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { struct.value.write(oprot); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, verifyOrSet_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if (incoming.get(2)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class verifyOrSet_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("verifyOrSet_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new verifyOrSet_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new verifyOrSet_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.InvalidArgumentException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(verifyOrSet_result.class, metaDataMap); } public verifyOrSet_result() { } public verifyOrSet_result( com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this(); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public verifyOrSet_result(verifyOrSet_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(other.ex3); } } public verifyOrSet_result deepCopy() { return new verifyOrSet_result(this); } @Override public void clear() { this.ex = null; this.ex2 = null; this.ex3 = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public verifyOrSet_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public verifyOrSet_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.InvalidArgumentException getEx3() { return this.ex3; } public verifyOrSet_result setEx3(com.cinchapi.concourse.thrift.InvalidArgumentException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.InvalidArgumentException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof verifyOrSet_result) return this.equals((verifyOrSet_result)that); return false; } public boolean equals(verifyOrSet_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(verifyOrSet_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("verifyOrSet_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 verifyOrSet_resultStandardSchemeFactory implements SchemeFactory { public verifyOrSet_resultStandardScheme getScheme() { return new verifyOrSet_resultStandardScheme(); } } private static class verifyOrSet_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, verifyOrSet_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, verifyOrSet_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class verifyOrSet_resultTupleSchemeFactory implements SchemeFactory { public verifyOrSet_resultTupleScheme getScheme() { return new verifyOrSet_resultTupleScheme(); } } private static class verifyOrSet_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, verifyOrSet_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } if (struct.isSetEx2()) { optionals.set(1); } if (struct.isSetEx3()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, verifyOrSet_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(1)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(2)) { struct.ex3 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class findOrAddKeyValue_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("findOrAddKeyValue_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findOrAddKeyValue_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findOrAddKeyValue_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TObject value; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), VALUE((short)2, "value"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // VALUE return VALUE; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(findOrAddKeyValue_args.class, metaDataMap); } public findOrAddKeyValue_args() { } public findOrAddKeyValue_args( String key, com.cinchapi.concourse.thrift.TObject value, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.value = value; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findOrAddKeyValue_args(findOrAddKeyValue_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = new com.cinchapi.concourse.thrift.TObject(other.value); } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public findOrAddKeyValue_args deepCopy() { return new findOrAddKeyValue_args(this); } @Override public void clear() { this.key = null; this.value = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public findOrAddKeyValue_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TObject getValue() { return this.value; } public findOrAddKeyValue_args setValue(com.cinchapi.concourse.thrift.TObject value) { this.value = value; return this; } public void unsetValue() { this.value = null; } /** Returns true if field value is set (has been assigned a value) and false otherwise */ public boolean isSetValue() { return this.value != null; } public void setValueIsSet(boolean value) { if (!value) { this.value = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findOrAddKeyValue_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findOrAddKeyValue_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findOrAddKeyValue_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case VALUE: if (value == null) { unsetValue(); } else { setValue((com.cinchapi.concourse.thrift.TObject)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case VALUE: return getValue(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case VALUE: return isSetValue(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findOrAddKeyValue_args) return this.equals((findOrAddKeyValue_args)that); return false; } public boolean equals(findOrAddKeyValue_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (!this.value.equals(that.value)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_value = true && (isSetValue()); list.add(present_value); if (present_value) list.add(value); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findOrAddKeyValue_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("findOrAddKeyValue_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("value:"); if (this.value == null) { sb.append("null"); } else { sb.append(this.value); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (value != null) { value.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 findOrAddKeyValue_argsStandardSchemeFactory implements SchemeFactory { public findOrAddKeyValue_argsStandardScheme getScheme() { return new findOrAddKeyValue_argsStandardScheme(); } } private static class findOrAddKeyValue_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findOrAddKeyValue_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // VALUE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, findOrAddKeyValue_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); struct.value.write(oprot); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findOrAddKeyValue_argsTupleSchemeFactory implements SchemeFactory { public findOrAddKeyValue_argsTupleScheme getScheme() { return new findOrAddKeyValue_argsTupleScheme(); } } private static class findOrAddKeyValue_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findOrAddKeyValue_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { struct.value.write(oprot); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findOrAddKeyValue_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.value = new com.cinchapi.concourse.thrift.TObject(); struct.value.read(iprot); struct.setValueIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findOrAddKeyValue_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("findOrAddKeyValue_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField("ex4", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findOrAddKeyValue_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findOrAddKeyValue_resultTupleSchemeFactory()); } public long success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.DuplicateEntryException ex3; // required public com.cinchapi.concourse.thrift.InvalidArgumentException ex4; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"), EX4((short)4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", 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(findOrAddKeyValue_result.class, metaDataMap); } public findOrAddKeyValue_result() { } public findOrAddKeyValue_result( long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.DuplicateEntryException ex3, com.cinchapi.concourse.thrift.InvalidArgumentException ex4) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public findOrAddKeyValue_result(findOrAddKeyValue_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.DuplicateEntryException(other.ex3); } if (other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.InvalidArgumentException(other.ex4); } } public findOrAddKeyValue_result deepCopy() { return new findOrAddKeyValue_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = 0; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public long getSuccess() { return this.success; } public findOrAddKeyValue_result setSuccess(long success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findOrAddKeyValue_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findOrAddKeyValue_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.DuplicateEntryException getEx3() { return this.ex3; } public findOrAddKeyValue_result setEx3(com.cinchapi.concourse.thrift.DuplicateEntryException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.InvalidArgumentException getEx4() { return this.ex4; } public findOrAddKeyValue_result setEx4(com.cinchapi.concourse.thrift.InvalidArgumentException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** Returns true if field ex4 is set (has been assigned a value) and false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if (!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Long)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.DuplicateEntryException)value); } break; case EX4: if (value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.InvalidArgumentException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findOrAddKeyValue_result) return this.equals((findOrAddKeyValue_result)that); return false; } public boolean equals(findOrAddKeyValue_result that) { if (that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if (this_present_ex4 || that_present_ex4) { if (!(this_present_ex4 && that_present_ex4)) return false; if (!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if (present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if (present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(findOrAddKeyValue_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()).compareTo(other.isSetEx4()); if (lastComparison != 0) { return lastComparison; } if (isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex4, other.ex4); 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("findOrAddKeyValue_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if (!first) sb.append(", "); sb.append("ex4:"); if (this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findOrAddKeyValue_resultStandardSchemeFactory implements SchemeFactory { public findOrAddKeyValue_resultStandardScheme getScheme() { return new findOrAddKeyValue_resultStandardScheme(); } } private static class findOrAddKeyValue_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findOrAddKeyValue_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.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.DuplicateEntryException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex4.read(iprot); struct.setEx4IsSet(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, findOrAddKeyValue_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeI64(struct.success); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if (struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findOrAddKeyValue_resultTupleSchemeFactory implements SchemeFactory { public findOrAddKeyValue_resultTupleScheme getScheme() { return new findOrAddKeyValue_resultTupleScheme(); } } private static class findOrAddKeyValue_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findOrAddKeyValue_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } if (struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetSuccess()) { oprot.writeI64(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } if (struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findOrAddKeyValue_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.DuplicateEntryException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if (incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.InvalidArgumentException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class findOrInsertCriteriaJson_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("findOrInsertCriteriaJson_args"); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField JSON_FIELD_DESC = new org.apache.thrift.protocol.TField("json", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findOrInsertCriteriaJson_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findOrInsertCriteriaJson_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String json; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CRITERIA((short)1, "criteria"), JSON((short)2, "json"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // CRITERIA return CRITERIA; case 2: // JSON return JSON; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.JSON, new org.apache.thrift.meta_data.FieldMetaData("json", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(findOrInsertCriteriaJson_args.class, metaDataMap); } public findOrInsertCriteriaJson_args() { } public findOrInsertCriteriaJson_args( com.cinchapi.concourse.thrift.TCriteria criteria, String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.criteria = criteria; this.json = json; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findOrInsertCriteriaJson_args(findOrInsertCriteriaJson_args other) { if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } if (other.isSetJson()) { this.json = other.json; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public findOrInsertCriteriaJson_args deepCopy() { return new findOrInsertCriteriaJson_args(this); } @Override public void clear() { this.criteria = null; this.json = null; this.creds = null; this.transaction = null; this.environment = null; } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public findOrInsertCriteriaJson_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public String getJson() { return this.json; } public findOrInsertCriteriaJson_args setJson(String json) { this.json = json; return this; } public void unsetJson() { this.json = null; } /** Returns true if field json is set (has been assigned a value) and false otherwise */ public boolean isSetJson() { return this.json != null; } public void setJsonIsSet(boolean value) { if (!value) { this.json = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findOrInsertCriteriaJson_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findOrInsertCriteriaJson_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findOrInsertCriteriaJson_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case JSON: if (value == null) { unsetJson(); } else { setJson((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CRITERIA: return getCriteria(); case JSON: return getJson(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 CRITERIA: return isSetCriteria(); case JSON: return isSetJson(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findOrInsertCriteriaJson_args) return this.equals((findOrInsertCriteriaJson_args)that); return false; } public boolean equals(findOrInsertCriteriaJson_args that) { if (that == null) return false; boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_json = true && this.isSetJson(); boolean that_present_json = true && that.isSetJson(); if (this_present_json || that_present_json) { if (!(this_present_json && that_present_json)) return false; if (!this.json.equals(that.json)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_json = true && (isSetJson()); list.add(present_json); if (present_json) list.add(json); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findOrInsertCriteriaJson_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetJson()).compareTo(other.isSetJson()); if (lastComparison != 0) { return lastComparison; } if (isSetJson()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.json, other.json); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("findOrInsertCriteriaJson_args("); boolean first = true; sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("json:"); if (this.json == null) { sb.append("null"); } else { sb.append(this.json); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 findOrInsertCriteriaJson_argsStandardSchemeFactory implements SchemeFactory { public findOrInsertCriteriaJson_argsStandardScheme getScheme() { return new findOrInsertCriteriaJson_argsStandardScheme(); } } private static class findOrInsertCriteriaJson_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findOrInsertCriteriaJson_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: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // JSON if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.json = iprot.readString(); struct.setJsonIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, findOrInsertCriteriaJson_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if (struct.json != null) { oprot.writeFieldBegin(JSON_FIELD_DESC); oprot.writeString(struct.json); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findOrInsertCriteriaJson_argsTupleSchemeFactory implements SchemeFactory { public findOrInsertCriteriaJson_argsTupleScheme getScheme() { return new findOrInsertCriteriaJson_argsTupleScheme(); } } private static class findOrInsertCriteriaJson_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findOrInsertCriteriaJson_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCriteria()) { optionals.set(0); } if (struct.isSetJson()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetJson()) { oprot.writeString(struct.json); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findOrInsertCriteriaJson_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(1)) { struct.json = iprot.readString(); struct.setJsonIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findOrInsertCriteriaJson_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("findOrInsertCriteriaJson_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findOrInsertCriteriaJson_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findOrInsertCriteriaJson_resultTupleSchemeFactory()); } public long success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.DuplicateEntryException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(findOrInsertCriteriaJson_result.class, metaDataMap); } public findOrInsertCriteriaJson_result() { } public findOrInsertCriteriaJson_result( long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.DuplicateEntryException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public findOrInsertCriteriaJson_result(findOrInsertCriteriaJson_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.DuplicateEntryException(other.ex3); } } public findOrInsertCriteriaJson_result deepCopy() { return new findOrInsertCriteriaJson_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = 0; this.ex = null; this.ex2 = null; this.ex3 = null; } public long getSuccess() { return this.success; } public findOrInsertCriteriaJson_result setSuccess(long success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findOrInsertCriteriaJson_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findOrInsertCriteriaJson_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.DuplicateEntryException getEx3() { return this.ex3; } public findOrInsertCriteriaJson_result setEx3(com.cinchapi.concourse.thrift.DuplicateEntryException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Long)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.DuplicateEntryException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findOrInsertCriteriaJson_result) return this.equals((findOrInsertCriteriaJson_result)that); return false; } public boolean equals(findOrInsertCriteriaJson_result that) { if (that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if (present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(findOrInsertCriteriaJson_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("findOrInsertCriteriaJson_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findOrInsertCriteriaJson_resultStandardSchemeFactory implements SchemeFactory { public findOrInsertCriteriaJson_resultStandardScheme getScheme() { return new findOrInsertCriteriaJson_resultStandardScheme(); } } private static class findOrInsertCriteriaJson_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findOrInsertCriteriaJson_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.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.DuplicateEntryException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, findOrInsertCriteriaJson_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeI64(struct.success); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findOrInsertCriteriaJson_resultTupleSchemeFactory implements SchemeFactory { public findOrInsertCriteriaJson_resultTupleScheme getScheme() { return new findOrInsertCriteriaJson_resultTupleScheme(); } } private static class findOrInsertCriteriaJson_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findOrInsertCriteriaJson_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { oprot.writeI64(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findOrInsertCriteriaJson_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.DuplicateEntryException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class findOrInsertCclJson_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("findOrInsertCclJson_args"); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField JSON_FIELD_DESC = new org.apache.thrift.protocol.TField("json", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findOrInsertCclJson_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new findOrInsertCclJson_argsTupleSchemeFactory()); } public String ccl; // required public String json; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CCL((short)1, "ccl"), JSON((short)2, "json"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // CCL return CCL; case 2: // JSON return JSON; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.JSON, new org.apache.thrift.meta_data.FieldMetaData("json", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(findOrInsertCclJson_args.class, metaDataMap); } public findOrInsertCclJson_args() { } public findOrInsertCclJson_args( String ccl, String json, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.ccl = ccl; this.json = json; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public findOrInsertCclJson_args(findOrInsertCclJson_args other) { if (other.isSetCcl()) { this.ccl = other.ccl; } if (other.isSetJson()) { this.json = other.json; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public findOrInsertCclJson_args deepCopy() { return new findOrInsertCclJson_args(this); } @Override public void clear() { this.ccl = null; this.json = null; this.creds = null; this.transaction = null; this.environment = null; } public String getCcl() { return this.ccl; } public findOrInsertCclJson_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public String getJson() { return this.json; } public findOrInsertCclJson_args setJson(String json) { this.json = json; return this; } public void unsetJson() { this.json = null; } /** Returns true if field json is set (has been assigned a value) and false otherwise */ public boolean isSetJson() { return this.json != null; } public void setJsonIsSet(boolean value) { if (!value) { this.json = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public findOrInsertCclJson_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public findOrInsertCclJson_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public findOrInsertCclJson_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case JSON: if (value == null) { unsetJson(); } else { setJson((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CCL: return getCcl(); case JSON: return getJson(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 CCL: return isSetCcl(); case JSON: return isSetJson(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findOrInsertCclJson_args) return this.equals((findOrInsertCclJson_args)that); return false; } public boolean equals(findOrInsertCclJson_args that) { if (that == null) return false; boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_json = true && this.isSetJson(); boolean that_present_json = true && that.isSetJson(); if (this_present_json || that_present_json) { if (!(this_present_json && that_present_json)) return false; if (!this.json.equals(that.json)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_json = true && (isSetJson()); list.add(present_json); if (present_json) list.add(json); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(findOrInsertCclJson_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetJson()).compareTo(other.isSetJson()); if (lastComparison != 0) { return lastComparison; } if (isSetJson()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.json, other.json); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("findOrInsertCclJson_args("); boolean first = true; sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("json:"); if (this.json == null) { sb.append("null"); } else { sb.append(this.json); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 findOrInsertCclJson_argsStandardSchemeFactory implements SchemeFactory { public findOrInsertCclJson_argsStandardScheme getScheme() { return new findOrInsertCclJson_argsStandardScheme(); } } private static class findOrInsertCclJson_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findOrInsertCclJson_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: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // JSON if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.json = iprot.readString(); struct.setJsonIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, findOrInsertCclJson_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if (struct.json != null) { oprot.writeFieldBegin(JSON_FIELD_DESC); oprot.writeString(struct.json); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findOrInsertCclJson_argsTupleSchemeFactory implements SchemeFactory { public findOrInsertCclJson_argsTupleScheme getScheme() { return new findOrInsertCclJson_argsTupleScheme(); } } private static class findOrInsertCclJson_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findOrInsertCclJson_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCcl()) { optionals.set(0); } if (struct.isSetJson()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetJson()) { oprot.writeString(struct.json); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findOrInsertCclJson_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(1)) { struct.json = iprot.readString(); struct.setJsonIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class findOrInsertCclJson_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("findOrInsertCclJson_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField EX4_FIELD_DESC = new org.apache.thrift.protocol.TField("ex4", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new findOrInsertCclJson_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new findOrInsertCclJson_resultTupleSchemeFactory()); } public long success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required public com.cinchapi.concourse.thrift.DuplicateEntryException ex4; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"), EX4((short)4, "ex4"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; case 4: // EX4 return EX4; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX4, new org.apache.thrift.meta_data.FieldMetaData("ex4", 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(findOrInsertCclJson_result.class, metaDataMap); } public findOrInsertCclJson_result() { } public findOrInsertCclJson_result( long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3, com.cinchapi.concourse.thrift.DuplicateEntryException ex4) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; this.ex4 = ex4; } /** * Performs a deep copy on other. */ public findOrInsertCclJson_result(findOrInsertCclJson_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } if (other.isSetEx4()) { this.ex4 = new com.cinchapi.concourse.thrift.DuplicateEntryException(other.ex4); } } public findOrInsertCclJson_result deepCopy() { return new findOrInsertCclJson_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = 0; this.ex = null; this.ex2 = null; this.ex3 = null; this.ex4 = null; } public long getSuccess() { return this.success; } public findOrInsertCclJson_result setSuccess(long success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public findOrInsertCclJson_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public findOrInsertCclJson_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public findOrInsertCclJson_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public com.cinchapi.concourse.thrift.DuplicateEntryException getEx4() { return this.ex4; } public findOrInsertCclJson_result setEx4(com.cinchapi.concourse.thrift.DuplicateEntryException ex4) { this.ex4 = ex4; return this; } public void unsetEx4() { this.ex4 = null; } /** Returns true if field ex4 is set (has been assigned a value) and false otherwise */ public boolean isSetEx4() { return this.ex4 != null; } public void setEx4IsSet(boolean value) { if (!value) { this.ex4 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Long)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; case EX4: if (value == null) { unsetEx4(); } else { setEx4((com.cinchapi.concourse.thrift.DuplicateEntryException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); case EX4: return getEx4(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); case EX4: return isSetEx4(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof findOrInsertCclJson_result) return this.equals((findOrInsertCclJson_result)that); return false; } public boolean equals(findOrInsertCclJson_result that) { if (that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) return false; } boolean this_present_ex4 = true && this.isSetEx4(); boolean that_present_ex4 = true && that.isSetEx4(); if (this_present_ex4 || that_present_ex4) { if (!(this_present_ex4 && that_present_ex4)) return false; if (!this.ex4.equals(that.ex4)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if (present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); boolean present_ex4 = true && (isSetEx4()); list.add(present_ex4); if (present_ex4) list.add(ex4); return list.hashCode(); } @Override public int compareTo(findOrInsertCclJson_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx4()).compareTo(other.isSetEx4()); if (lastComparison != 0) { return lastComparison; } if (isSetEx4()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex4, other.ex4); 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("findOrInsertCclJson_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; if (!first) sb.append(", "); sb.append("ex4:"); if (this.ex4 == null) { sb.append("null"); } else { sb.append(this.ex4); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class findOrInsertCclJson_resultStandardSchemeFactory implements SchemeFactory { public findOrInsertCclJson_resultStandardScheme getScheme() { return new findOrInsertCclJson_resultStandardScheme(); } } private static class findOrInsertCclJson_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findOrInsertCclJson_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.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // EX4 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex4 = new com.cinchapi.concourse.thrift.DuplicateEntryException(); struct.ex4.read(iprot); struct.setEx4IsSet(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, findOrInsertCclJson_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeI64(struct.success); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } if (struct.ex4 != null) { oprot.writeFieldBegin(EX4_FIELD_DESC); struct.ex4.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class findOrInsertCclJson_resultTupleSchemeFactory implements SchemeFactory { public findOrInsertCclJson_resultTupleScheme getScheme() { return new findOrInsertCclJson_resultTupleScheme(); } } private static class findOrInsertCclJson_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findOrInsertCclJson_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } if (struct.isSetEx4()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetSuccess()) { oprot.writeI64(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } if (struct.isSetEx4()) { struct.ex4.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, findOrInsertCclJson_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } if (incoming.get(4)) { struct.ex4 = new com.cinchapi.concourse.thrift.DuplicateEntryException(); struct.ex4.read(iprot); struct.setEx4IsSet(true); } } } } public static class sumKeyRecord_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("sumKeyRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyRecord_argsTupleSchemeFactory()); } public String key; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sumKeyRecord_args.class, metaDataMap); } public sumKeyRecord_args() { } public sumKeyRecord_args( String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyRecord_args(sumKeyRecord_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public sumKeyRecord_args deepCopy() { return new sumKeyRecord_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public sumKeyRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public sumKeyRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public sumKeyRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sumKeyRecord_args) return this.equals((sumKeyRecord_args)that); return false; } public boolean equals(sumKeyRecord_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("sumKeyRecord_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 sumKeyRecord_argsStandardSchemeFactory implements SchemeFactory { public sumKeyRecord_argsStandardScheme getScheme() { return new sumKeyRecord_argsStandardScheme(); } } private static class sumKeyRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyRecord_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, sumKeyRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyRecord_argsTupleSchemeFactory implements SchemeFactory { public sumKeyRecord_argsTupleScheme getScheme() { return new sumKeyRecord_argsTupleScheme(); } } private static class sumKeyRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class sumKeyRecord_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("sumKeyRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyRecord_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(sumKeyRecord_result.class, metaDataMap); } public sumKeyRecord_result() { } public sumKeyRecord_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public sumKeyRecord_result(sumKeyRecord_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public sumKeyRecord_result deepCopy() { return new sumKeyRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public sumKeyRecord_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public sumKeyRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sumKeyRecord_result) return this.equals((sumKeyRecord_result)that); return false; } public boolean equals(sumKeyRecord_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(sumKeyRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("sumKeyRecord_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 sumKeyRecord_resultStandardSchemeFactory implements SchemeFactory { public sumKeyRecord_resultStandardScheme getScheme() { return new sumKeyRecord_resultStandardScheme(); } } private static class sumKeyRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, sumKeyRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyRecord_resultTupleSchemeFactory implements SchemeFactory { public sumKeyRecord_resultTupleScheme getScheme() { return new sumKeyRecord_resultTupleScheme(); } } private static class sumKeyRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class sumKey_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("sumKey_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKey_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKey_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sumKey_args.class, metaDataMap); } public sumKey_args() { } public sumKey_args( String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKey_args(sumKey_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public sumKey_args deepCopy() { return new sumKey_args(this); } @Override public void clear() { this.key = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public sumKey_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public sumKey_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKey_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKey_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sumKey_args) return this.equals((sumKey_args)that); return false; } public boolean equals(sumKey_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKey_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("sumKey_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 sumKey_argsStandardSchemeFactory implements SchemeFactory { public sumKey_argsStandardScheme getScheme() { return new sumKey_argsStandardScheme(); } } private static class sumKey_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKey_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, sumKey_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKey_argsTupleSchemeFactory implements SchemeFactory { public sumKey_argsTupleScheme getScheme() { return new sumKey_argsTupleScheme(); } } private static class sumKey_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKey_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKey_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class sumKey_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("sumKey_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKey_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKey_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(sumKey_result.class, metaDataMap); } public sumKey_result() { } public sumKey_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public sumKey_result(sumKey_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public sumKey_result deepCopy() { return new sumKey_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public sumKey_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public sumKey_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKey_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sumKey_result) return this.equals((sumKey_result)that); return false; } public boolean equals(sumKey_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(sumKey_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("sumKey_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 sumKey_resultStandardSchemeFactory implements SchemeFactory { public sumKey_resultStandardScheme getScheme() { return new sumKey_resultStandardScheme(); } } private static class sumKey_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKey_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, sumKey_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKey_resultTupleSchemeFactory implements SchemeFactory { public sumKey_resultTupleScheme getScheme() { return new sumKey_resultTupleScheme(); } } private static class sumKey_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKey_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKey_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class sumKeyTime_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("sumKeyTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyTime_argsTupleSchemeFactory()); } public String key; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sumKeyTime_args.class, metaDataMap); } public sumKeyTime_args() { } public sumKeyTime_args( String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyTime_args(sumKeyTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public sumKeyTime_args deepCopy() { return new sumKeyTime_args(this); } @Override public void clear() { this.key = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public sumKeyTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getTimestamp() { return this.timestamp; } public sumKeyTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public sumKeyTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sumKeyTime_args) return this.equals((sumKeyTime_args)that); return false; } public boolean equals(sumKeyTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("sumKeyTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 sumKeyTime_argsStandardSchemeFactory implements SchemeFactory { public sumKeyTime_argsStandardScheme getScheme() { return new sumKeyTime_argsStandardScheme(); } } private static class sumKeyTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, sumKeyTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyTime_argsTupleSchemeFactory implements SchemeFactory { public sumKeyTime_argsTupleScheme getScheme() { return new sumKeyTime_argsTupleScheme(); } } private static class sumKeyTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class sumKeyTime_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("sumKeyTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(sumKeyTime_result.class, metaDataMap); } public sumKeyTime_result() { } public sumKeyTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public sumKeyTime_result(sumKeyTime_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public sumKeyTime_result deepCopy() { return new sumKeyTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public sumKeyTime_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public sumKeyTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sumKeyTime_result) return this.equals((sumKeyTime_result)that); return false; } public boolean equals(sumKeyTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(sumKeyTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("sumKeyTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 sumKeyTime_resultStandardSchemeFactory implements SchemeFactory { public sumKeyTime_resultStandardScheme getScheme() { return new sumKeyTime_resultStandardScheme(); } } private static class sumKeyTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, sumKeyTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyTime_resultTupleSchemeFactory implements SchemeFactory { public sumKeyTime_resultTupleScheme getScheme() { return new sumKeyTime_resultTupleScheme(); } } private static class sumKeyTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class sumKeyRecordTime_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("sumKeyRecordTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyRecordTime_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sumKeyRecordTime_args.class, metaDataMap); } public sumKeyRecordTime_args() { } public sumKeyRecordTime_args( String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyRecordTime_args(sumKeyRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public sumKeyRecordTime_args deepCopy() { return new sumKeyRecordTime_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public sumKeyRecordTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public sumKeyRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public sumKeyRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public sumKeyRecordTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyRecordTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sumKeyRecordTime_args) return this.equals((sumKeyRecordTime_args)that); return false; } public boolean equals(sumKeyRecordTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyRecordTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("sumKeyRecordTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 sumKeyRecordTime_argsStandardSchemeFactory implements SchemeFactory { public sumKeyRecordTime_argsStandardScheme getScheme() { return new sumKeyRecordTime_argsStandardScheme(); } } private static class sumKeyRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyRecordTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, sumKeyRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyRecordTime_argsTupleSchemeFactory implements SchemeFactory { public sumKeyRecordTime_argsTupleScheme getScheme() { return new sumKeyRecordTime_argsTupleScheme(); } } private static class sumKeyRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class sumKeyRecordTime_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("sumKeyRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyRecordTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(sumKeyRecordTime_result.class, metaDataMap); } public sumKeyRecordTime_result() { } public sumKeyRecordTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public sumKeyRecordTime_result(sumKeyRecordTime_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public sumKeyRecordTime_result deepCopy() { return new sumKeyRecordTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public sumKeyRecordTime_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public sumKeyRecordTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyRecordTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sumKeyRecordTime_result) return this.equals((sumKeyRecordTime_result)that); return false; } public boolean equals(sumKeyRecordTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(sumKeyRecordTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("sumKeyRecordTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 sumKeyRecordTime_resultStandardSchemeFactory implements SchemeFactory { public sumKeyRecordTime_resultStandardScheme getScheme() { return new sumKeyRecordTime_resultStandardScheme(); } } private static class sumKeyRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, sumKeyRecordTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyRecordTime_resultTupleSchemeFactory implements SchemeFactory { public sumKeyRecordTime_resultTupleScheme getScheme() { return new sumKeyRecordTime_resultTupleScheme(); } } private static class sumKeyRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class sumKeyRecords_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("sumKeyRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyRecords_argsTupleSchemeFactory()); } public String key; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORDS((short)2, "records"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sumKeyRecords_args.class, metaDataMap); } public sumKeyRecords_args() { } public sumKeyRecords_args( String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyRecords_args(sumKeyRecords_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public sumKeyRecords_args deepCopy() { return new sumKeyRecords_args(this); } @Override public void clear() { this.key = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public sumKeyRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public sumKeyRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public sumKeyRecords_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyRecords_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sumKeyRecords_args) return this.equals((sumKeyRecords_args)that); return false; } public boolean equals(sumKeyRecords_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyRecords_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("sumKeyRecords_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 sumKeyRecords_argsStandardSchemeFactory implements SchemeFactory { public sumKeyRecords_argsStandardScheme getScheme() { return new sumKeyRecords_argsStandardScheme(); } } private static class sumKeyRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyRecords_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2664 = iprot.readListBegin(); struct.records = new ArrayList(_list2664.size); long _elem2665; for (int _i2666 = 0; _i2666 < _list2664.size; ++_i2666) { _elem2665 = iprot.readI64(); struct.records.add(_elem2665); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, sumKeyRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2667 : struct.records) { oprot.writeI64(_iter2667); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyRecords_argsTupleSchemeFactory implements SchemeFactory { public sumKeyRecords_argsTupleScheme getScheme() { return new sumKeyRecords_argsTupleScheme(); } } private static class sumKeyRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2668 : struct.records) { oprot.writeI64(_iter2668); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list2669 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2669.size); long _elem2670; for (int _i2671 = 0; _i2671 < _list2669.size; ++_i2671) { _elem2670 = iprot.readI64(); struct.records.add(_elem2670); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class sumKeyRecords_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("sumKeyRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyRecords_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(sumKeyRecords_result.class, metaDataMap); } public sumKeyRecords_result() { } public sumKeyRecords_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public sumKeyRecords_result(sumKeyRecords_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public sumKeyRecords_result deepCopy() { return new sumKeyRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public sumKeyRecords_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public sumKeyRecords_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyRecords_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sumKeyRecords_result) return this.equals((sumKeyRecords_result)that); return false; } public boolean equals(sumKeyRecords_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(sumKeyRecords_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("sumKeyRecords_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 sumKeyRecords_resultStandardSchemeFactory implements SchemeFactory { public sumKeyRecords_resultStandardScheme getScheme() { return new sumKeyRecords_resultStandardScheme(); } } private static class sumKeyRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, sumKeyRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyRecords_resultTupleSchemeFactory implements SchemeFactory { public sumKeyRecords_resultTupleScheme getScheme() { return new sumKeyRecords_resultTupleScheme(); } } private static class sumKeyRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class sumKeyRecordsTime_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("sumKeyRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyRecordsTime_argsTupleSchemeFactory()); } public String key; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORDS((short)2, "records"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sumKeyRecordsTime_args.class, metaDataMap); } public sumKeyRecordsTime_args() { } public sumKeyRecordsTime_args( String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyRecordsTime_args(sumKeyRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public sumKeyRecordsTime_args deepCopy() { return new sumKeyRecordsTime_args(this); } @Override public void clear() { this.key = null; this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public sumKeyRecordsTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public sumKeyRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public sumKeyRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public sumKeyRecordsTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyRecordsTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sumKeyRecordsTime_args) return this.equals((sumKeyRecordsTime_args)that); return false; } public boolean equals(sumKeyRecordsTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyRecordsTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("sumKeyRecordsTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 sumKeyRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public sumKeyRecordsTime_argsStandardScheme getScheme() { return new sumKeyRecordsTime_argsStandardScheme(); } } private static class sumKeyRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyRecordsTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2672 = iprot.readListBegin(); struct.records = new ArrayList(_list2672.size); long _elem2673; for (int _i2674 = 0; _i2674 < _list2672.size; ++_i2674) { _elem2673 = iprot.readI64(); struct.records.add(_elem2673); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, sumKeyRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2675 : struct.records) { oprot.writeI64(_iter2675); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public sumKeyRecordsTime_argsTupleScheme getScheme() { return new sumKeyRecordsTime_argsTupleScheme(); } } private static class sumKeyRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2676 : struct.records) { oprot.writeI64(_iter2676); } } } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list2677 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2677.size); long _elem2678; for (int _i2679 = 0; _i2679 < _list2677.size; ++_i2679) { _elem2678 = iprot.readI64(); struct.records.add(_elem2678); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class sumKeyRecordsTime_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("sumKeyRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyRecordsTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(sumKeyRecordsTime_result.class, metaDataMap); } public sumKeyRecordsTime_result() { } public sumKeyRecordsTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public sumKeyRecordsTime_result(sumKeyRecordsTime_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public sumKeyRecordsTime_result deepCopy() { return new sumKeyRecordsTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public sumKeyRecordsTime_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public sumKeyRecordsTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyRecordsTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sumKeyRecordsTime_result) return this.equals((sumKeyRecordsTime_result)that); return false; } public boolean equals(sumKeyRecordsTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(sumKeyRecordsTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("sumKeyRecordsTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 sumKeyRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public sumKeyRecordsTime_resultStandardScheme getScheme() { return new sumKeyRecordsTime_resultStandardScheme(); } } private static class sumKeyRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyRecordsTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, sumKeyRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public sumKeyRecordsTime_resultTupleScheme getScheme() { return new sumKeyRecordsTime_resultTupleScheme(); } } private static class sumKeyRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class sumKeyCriteria_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("sumKeyCriteria_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyCriteria_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CRITERIA((short)2, "criteria"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sumKeyCriteria_args.class, metaDataMap); } public sumKeyCriteria_args() { } public sumKeyCriteria_args( String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyCriteria_args(sumKeyCriteria_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public sumKeyCriteria_args deepCopy() { return new sumKeyCriteria_args(this); } @Override public void clear() { this.key = null; this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public sumKeyCriteria_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public sumKeyCriteria_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public sumKeyCriteria_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyCriteria_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sumKeyCriteria_args) return this.equals((sumKeyCriteria_args)that); return false; } public boolean equals(sumKeyCriteria_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyCriteria_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("sumKeyCriteria_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 sumKeyCriteria_argsStandardSchemeFactory implements SchemeFactory { public sumKeyCriteria_argsStandardScheme getScheme() { return new sumKeyCriteria_argsStandardScheme(); } } private static class sumKeyCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyCriteria_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, sumKeyCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyCriteria_argsTupleSchemeFactory implements SchemeFactory { public sumKeyCriteria_argsTupleScheme getScheme() { return new sumKeyCriteria_argsTupleScheme(); } } private static class sumKeyCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class sumKeyCriteria_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("sumKeyCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyCriteria_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(sumKeyCriteria_result.class, metaDataMap); } public sumKeyCriteria_result() { } public sumKeyCriteria_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public sumKeyCriteria_result(sumKeyCriteria_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public sumKeyCriteria_result deepCopy() { return new sumKeyCriteria_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public sumKeyCriteria_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public sumKeyCriteria_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyCriteria_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sumKeyCriteria_result) return this.equals((sumKeyCriteria_result)that); return false; } public boolean equals(sumKeyCriteria_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(sumKeyCriteria_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("sumKeyCriteria_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 sumKeyCriteria_resultStandardSchemeFactory implements SchemeFactory { public sumKeyCriteria_resultStandardScheme getScheme() { return new sumKeyCriteria_resultStandardScheme(); } } private static class sumKeyCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyCriteria_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, sumKeyCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyCriteria_resultTupleSchemeFactory implements SchemeFactory { public sumKeyCriteria_resultTupleScheme getScheme() { return new sumKeyCriteria_resultTupleScheme(); } } private static class sumKeyCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class sumKeyCcl_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("sumKeyCcl_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyCcl_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CCL((short)2, "ccl"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CCL return CCL; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sumKeyCcl_args.class, metaDataMap); } public sumKeyCcl_args() { } public sumKeyCcl_args( String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyCcl_args(sumKeyCcl_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetCcl()) { this.ccl = other.ccl; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public sumKeyCcl_args deepCopy() { return new sumKeyCcl_args(this); } @Override public void clear() { this.key = null; this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public sumKeyCcl_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public String getCcl() { return this.ccl; } public sumKeyCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public sumKeyCcl_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyCcl_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sumKeyCcl_args) return this.equals((sumKeyCcl_args)that); return false; } public boolean equals(sumKeyCcl_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyCcl_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("sumKeyCcl_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 sumKeyCcl_argsStandardSchemeFactory implements SchemeFactory { public sumKeyCcl_argsStandardScheme getScheme() { return new sumKeyCcl_argsStandardScheme(); } } private static class sumKeyCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyCcl_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, sumKeyCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyCcl_argsTupleSchemeFactory implements SchemeFactory { public sumKeyCcl_argsTupleScheme getScheme() { return new sumKeyCcl_argsTupleScheme(); } } private static class sumKeyCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class sumKeyCcl_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("sumKeyCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyCcl_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(sumKeyCcl_result.class, metaDataMap); } public sumKeyCcl_result() { } public sumKeyCcl_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public sumKeyCcl_result(sumKeyCcl_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public sumKeyCcl_result deepCopy() { return new sumKeyCcl_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public sumKeyCcl_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public sumKeyCcl_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyCcl_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public sumKeyCcl_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sumKeyCcl_result) return this.equals((sumKeyCcl_result)that); return false; } public boolean equals(sumKeyCcl_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(sumKeyCcl_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("sumKeyCcl_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 sumKeyCcl_resultStandardSchemeFactory implements SchemeFactory { public sumKeyCcl_resultStandardScheme getScheme() { return new sumKeyCcl_resultStandardScheme(); } } private static class sumKeyCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyCcl_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, sumKeyCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyCcl_resultTupleSchemeFactory implements SchemeFactory { public sumKeyCcl_resultTupleScheme getScheme() { return new sumKeyCcl_resultTupleScheme(); } } private static class sumKeyCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class sumKeyCriteriaTime_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("sumKeyCriteriaTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyCriteriaTime_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CRITERIA((short)2, "criteria"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sumKeyCriteriaTime_args.class, metaDataMap); } public sumKeyCriteriaTime_args() { } public sumKeyCriteriaTime_args( String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyCriteriaTime_args(sumKeyCriteriaTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public sumKeyCriteriaTime_args deepCopy() { return new sumKeyCriteriaTime_args(this); } @Override public void clear() { this.key = null; this.criteria = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public sumKeyCriteriaTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public sumKeyCriteriaTime_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public long getTimestamp() { return this.timestamp; } public sumKeyCriteriaTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public sumKeyCriteriaTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyCriteriaTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sumKeyCriteriaTime_args) return this.equals((sumKeyCriteriaTime_args)that); return false; } public boolean equals(sumKeyCriteriaTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyCriteriaTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("sumKeyCriteriaTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 sumKeyCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public sumKeyCriteriaTime_argsStandardScheme getScheme() { return new sumKeyCriteriaTime_argsStandardScheme(); } } private static class sumKeyCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyCriteriaTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, sumKeyCriteriaTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public sumKeyCriteriaTime_argsTupleScheme getScheme() { return new sumKeyCriteriaTime_argsTupleScheme(); } } private static class sumKeyCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class sumKeyCriteriaTime_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("sumKeyCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyCriteriaTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(sumKeyCriteriaTime_result.class, metaDataMap); } public sumKeyCriteriaTime_result() { } public sumKeyCriteriaTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public sumKeyCriteriaTime_result(sumKeyCriteriaTime_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public sumKeyCriteriaTime_result deepCopy() { return new sumKeyCriteriaTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public sumKeyCriteriaTime_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public sumKeyCriteriaTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyCriteriaTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sumKeyCriteriaTime_result) return this.equals((sumKeyCriteriaTime_result)that); return false; } public boolean equals(sumKeyCriteriaTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(sumKeyCriteriaTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("sumKeyCriteriaTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 sumKeyCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public sumKeyCriteriaTime_resultStandardScheme getScheme() { return new sumKeyCriteriaTime_resultStandardScheme(); } } private static class sumKeyCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyCriteriaTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, sumKeyCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public sumKeyCriteriaTime_resultTupleScheme getScheme() { return new sumKeyCriteriaTime_resultTupleScheme(); } } private static class sumKeyCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class sumKeyCclTime_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("sumKeyCclTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyCclTime_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CCL((short)2, "ccl"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sumKeyCclTime_args.class, metaDataMap); } public sumKeyCclTime_args() { } public sumKeyCclTime_args( String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public sumKeyCclTime_args(sumKeyCclTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetCcl()) { this.ccl = other.ccl; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public sumKeyCclTime_args deepCopy() { return new sumKeyCclTime_args(this); } @Override public void clear() { this.key = null; this.ccl = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public sumKeyCclTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public String getCcl() { return this.ccl; } public sumKeyCclTime_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public long getTimestamp() { return this.timestamp; } public sumKeyCclTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public sumKeyCclTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public sumKeyCclTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public sumKeyCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sumKeyCclTime_args) return this.equals((sumKeyCclTime_args)that); return false; } public boolean equals(sumKeyCclTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(sumKeyCclTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("sumKeyCclTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 sumKeyCclTime_argsStandardSchemeFactory implements SchemeFactory { public sumKeyCclTime_argsStandardScheme getScheme() { return new sumKeyCclTime_argsStandardScheme(); } } private static class sumKeyCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyCclTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, sumKeyCclTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyCclTime_argsTupleSchemeFactory implements SchemeFactory { public sumKeyCclTime_argsTupleScheme getScheme() { return new sumKeyCclTime_argsTupleScheme(); } } private static class sumKeyCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class sumKeyCclTime_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("sumKeyCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new sumKeyCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new sumKeyCclTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(sumKeyCclTime_result.class, metaDataMap); } public sumKeyCclTime_result() { } public sumKeyCclTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public sumKeyCclTime_result(sumKeyCclTime_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public sumKeyCclTime_result deepCopy() { return new sumKeyCclTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public sumKeyCclTime_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public sumKeyCclTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public sumKeyCclTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public sumKeyCclTime_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sumKeyCclTime_result) return this.equals((sumKeyCclTime_result)that); return false; } public boolean equals(sumKeyCclTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(sumKeyCclTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("sumKeyCclTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 sumKeyCclTime_resultStandardSchemeFactory implements SchemeFactory { public sumKeyCclTime_resultStandardScheme getScheme() { return new sumKeyCclTime_resultStandardScheme(); } } private static class sumKeyCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, sumKeyCclTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, sumKeyCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class sumKeyCclTime_resultTupleSchemeFactory implements SchemeFactory { public sumKeyCclTime_resultTupleScheme getScheme() { return new sumKeyCclTime_resultTupleScheme(); } } private static class sumKeyCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, sumKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, sumKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class averageKeyRecord_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("averageKeyRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyRecord_argsTupleSchemeFactory()); } public String key; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(averageKeyRecord_args.class, metaDataMap); } public averageKeyRecord_args() { } public averageKeyRecord_args( String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyRecord_args(averageKeyRecord_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public averageKeyRecord_args deepCopy() { return new averageKeyRecord_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public averageKeyRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public averageKeyRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public averageKeyRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof averageKeyRecord_args) return this.equals((averageKeyRecord_args)that); return false; } public boolean equals(averageKeyRecord_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("averageKeyRecord_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 averageKeyRecord_argsStandardSchemeFactory implements SchemeFactory { public averageKeyRecord_argsStandardScheme getScheme() { return new averageKeyRecord_argsStandardScheme(); } } private static class averageKeyRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyRecord_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, averageKeyRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyRecord_argsTupleSchemeFactory implements SchemeFactory { public averageKeyRecord_argsTupleScheme getScheme() { return new averageKeyRecord_argsTupleScheme(); } } private static class averageKeyRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class averageKeyRecord_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("averageKeyRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyRecord_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(averageKeyRecord_result.class, metaDataMap); } public averageKeyRecord_result() { } public averageKeyRecord_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public averageKeyRecord_result(averageKeyRecord_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public averageKeyRecord_result deepCopy() { return new averageKeyRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public averageKeyRecord_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public averageKeyRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof averageKeyRecord_result) return this.equals((averageKeyRecord_result)that); return false; } public boolean equals(averageKeyRecord_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(averageKeyRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("averageKeyRecord_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 averageKeyRecord_resultStandardSchemeFactory implements SchemeFactory { public averageKeyRecord_resultStandardScheme getScheme() { return new averageKeyRecord_resultStandardScheme(); } } private static class averageKeyRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyRecord_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, averageKeyRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyRecord_resultTupleSchemeFactory implements SchemeFactory { public averageKeyRecord_resultTupleScheme getScheme() { return new averageKeyRecord_resultTupleScheme(); } } private static class averageKeyRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class averageKey_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("averageKey_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKey_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKey_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CREDS((short)2, "creds"), TRANSACTION((short)3, "transaction"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CREDS return CREDS; case 3: // TRANSACTION return TRANSACTION; case 4: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(averageKey_args.class, metaDataMap); } public averageKey_args() { } public averageKey_args( String key, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKey_args(averageKey_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public averageKey_args deepCopy() { return new averageKey_args(this); } @Override public void clear() { this.key = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public averageKey_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public averageKey_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKey_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKey_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof averageKey_args) return this.equals((averageKey_args)that); return false; } public boolean equals(averageKey_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKey_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("averageKey_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 averageKey_argsStandardSchemeFactory implements SchemeFactory { public averageKey_argsStandardScheme getScheme() { return new averageKey_argsStandardScheme(); } } private static class averageKey_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKey_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, averageKey_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKey_argsTupleSchemeFactory implements SchemeFactory { public averageKey_argsTupleScheme getScheme() { return new averageKey_argsTupleScheme(); } } private static class averageKey_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKey_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetTransaction()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKey_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class averageKey_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("averageKey_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKey_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKey_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(averageKey_result.class, metaDataMap); } public averageKey_result() { } public averageKey_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public averageKey_result(averageKey_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public averageKey_result deepCopy() { return new averageKey_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public averageKey_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public averageKey_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKey_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof averageKey_result) return this.equals((averageKey_result)that); return false; } public boolean equals(averageKey_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(averageKey_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("averageKey_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 averageKey_resultStandardSchemeFactory implements SchemeFactory { public averageKey_resultStandardScheme getScheme() { return new averageKey_resultStandardScheme(); } } private static class averageKey_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKey_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, averageKey_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKey_resultTupleSchemeFactory implements SchemeFactory { public averageKey_resultTupleScheme getScheme() { return new averageKey_resultTupleScheme(); } } private static class averageKey_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKey_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKey_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class averageKeyTime_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("averageKeyTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyTime_argsTupleSchemeFactory()); } public String key; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), TIMESTAMP((short)2, "timestamp"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // TIMESTAMP return TIMESTAMP; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(averageKeyTime_args.class, metaDataMap); } public averageKeyTime_args() { } public averageKeyTime_args( String key, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyTime_args(averageKeyTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public averageKeyTime_args deepCopy() { return new averageKeyTime_args(this); } @Override public void clear() { this.key = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public averageKeyTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getTimestamp() { return this.timestamp; } public averageKeyTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public averageKeyTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof averageKeyTime_args) return this.equals((averageKeyTime_args)that); return false; } public boolean equals(averageKeyTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("averageKeyTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 averageKeyTime_argsStandardSchemeFactory implements SchemeFactory { public averageKeyTime_argsStandardScheme getScheme() { return new averageKeyTime_argsStandardScheme(); } } private static class averageKeyTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, averageKeyTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyTime_argsTupleSchemeFactory implements SchemeFactory { public averageKeyTime_argsTupleScheme getScheme() { return new averageKeyTime_argsTupleScheme(); } } private static class averageKeyTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class averageKeyTime_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("averageKeyTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(averageKeyTime_result.class, metaDataMap); } public averageKeyTime_result() { } public averageKeyTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public averageKeyTime_result(averageKeyTime_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public averageKeyTime_result deepCopy() { return new averageKeyTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public averageKeyTime_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public averageKeyTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof averageKeyTime_result) return this.equals((averageKeyTime_result)that); return false; } public boolean equals(averageKeyTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(averageKeyTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("averageKeyTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 averageKeyTime_resultStandardSchemeFactory implements SchemeFactory { public averageKeyTime_resultStandardScheme getScheme() { return new averageKeyTime_resultStandardScheme(); } } private static class averageKeyTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, averageKeyTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyTime_resultTupleSchemeFactory implements SchemeFactory { public averageKeyTime_resultTupleScheme getScheme() { return new averageKeyTime_resultTupleScheme(); } } private static class averageKeyTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class averageKeyRecordTime_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("averageKeyRecordTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyRecordTime_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(averageKeyRecordTime_args.class, metaDataMap); } public averageKeyRecordTime_args() { } public averageKeyRecordTime_args( String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyRecordTime_args(averageKeyRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public averageKeyRecordTime_args deepCopy() { return new averageKeyRecordTime_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public averageKeyRecordTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public averageKeyRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public averageKeyRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public averageKeyRecordTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyRecordTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof averageKeyRecordTime_args) return this.equals((averageKeyRecordTime_args)that); return false; } public boolean equals(averageKeyRecordTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyRecordTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("averageKeyRecordTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 averageKeyRecordTime_argsStandardSchemeFactory implements SchemeFactory { public averageKeyRecordTime_argsStandardScheme getScheme() { return new averageKeyRecordTime_argsStandardScheme(); } } private static class averageKeyRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyRecordTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, averageKeyRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyRecordTime_argsTupleSchemeFactory implements SchemeFactory { public averageKeyRecordTime_argsTupleScheme getScheme() { return new averageKeyRecordTime_argsTupleScheme(); } } private static class averageKeyRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class averageKeyRecordTime_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("averageKeyRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyRecordTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(averageKeyRecordTime_result.class, metaDataMap); } public averageKeyRecordTime_result() { } public averageKeyRecordTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public averageKeyRecordTime_result(averageKeyRecordTime_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public averageKeyRecordTime_result deepCopy() { return new averageKeyRecordTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public averageKeyRecordTime_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public averageKeyRecordTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyRecordTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof averageKeyRecordTime_result) return this.equals((averageKeyRecordTime_result)that); return false; } public boolean equals(averageKeyRecordTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(averageKeyRecordTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("averageKeyRecordTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 averageKeyRecordTime_resultStandardSchemeFactory implements SchemeFactory { public averageKeyRecordTime_resultStandardScheme getScheme() { return new averageKeyRecordTime_resultStandardScheme(); } } private static class averageKeyRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyRecordTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, averageKeyRecordTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyRecordTime_resultTupleSchemeFactory implements SchemeFactory { public averageKeyRecordTime_resultTupleScheme getScheme() { return new averageKeyRecordTime_resultTupleScheme(); } } private static class averageKeyRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class averageKeyRecords_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("averageKeyRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyRecords_argsTupleSchemeFactory()); } public String key; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORDS((short)2, "records"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(averageKeyRecords_args.class, metaDataMap); } public averageKeyRecords_args() { } public averageKeyRecords_args( String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyRecords_args(averageKeyRecords_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public averageKeyRecords_args deepCopy() { return new averageKeyRecords_args(this); } @Override public void clear() { this.key = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public averageKeyRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public averageKeyRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public averageKeyRecords_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyRecords_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof averageKeyRecords_args) return this.equals((averageKeyRecords_args)that); return false; } public boolean equals(averageKeyRecords_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyRecords_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("averageKeyRecords_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 averageKeyRecords_argsStandardSchemeFactory implements SchemeFactory { public averageKeyRecords_argsStandardScheme getScheme() { return new averageKeyRecords_argsStandardScheme(); } } private static class averageKeyRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyRecords_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2680 = iprot.readListBegin(); struct.records = new ArrayList(_list2680.size); long _elem2681; for (int _i2682 = 0; _i2682 < _list2680.size; ++_i2682) { _elem2681 = iprot.readI64(); struct.records.add(_elem2681); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, averageKeyRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2683 : struct.records) { oprot.writeI64(_iter2683); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyRecords_argsTupleSchemeFactory implements SchemeFactory { public averageKeyRecords_argsTupleScheme getScheme() { return new averageKeyRecords_argsTupleScheme(); } } private static class averageKeyRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2684 : struct.records) { oprot.writeI64(_iter2684); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list2685 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2685.size); long _elem2686; for (int _i2687 = 0; _i2687 < _list2685.size; ++_i2687) { _elem2686 = iprot.readI64(); struct.records.add(_elem2686); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class averageKeyRecords_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("averageKeyRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyRecords_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(averageKeyRecords_result.class, metaDataMap); } public averageKeyRecords_result() { } public averageKeyRecords_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public averageKeyRecords_result(averageKeyRecords_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public averageKeyRecords_result deepCopy() { return new averageKeyRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public averageKeyRecords_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public averageKeyRecords_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyRecords_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof averageKeyRecords_result) return this.equals((averageKeyRecords_result)that); return false; } public boolean equals(averageKeyRecords_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(averageKeyRecords_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("averageKeyRecords_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 averageKeyRecords_resultStandardSchemeFactory implements SchemeFactory { public averageKeyRecords_resultStandardScheme getScheme() { return new averageKeyRecords_resultStandardScheme(); } } private static class averageKeyRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyRecords_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, averageKeyRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyRecords_resultTupleSchemeFactory implements SchemeFactory { public averageKeyRecords_resultTupleScheme getScheme() { return new averageKeyRecords_resultTupleScheme(); } } private static class averageKeyRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class averageKeyRecordsTime_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("averageKeyRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyRecordsTime_argsTupleSchemeFactory()); } public String key; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORDS((short)2, "records"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(averageKeyRecordsTime_args.class, metaDataMap); } public averageKeyRecordsTime_args() { } public averageKeyRecordsTime_args( String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyRecordsTime_args(averageKeyRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public averageKeyRecordsTime_args deepCopy() { return new averageKeyRecordsTime_args(this); } @Override public void clear() { this.key = null; this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public averageKeyRecordsTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public averageKeyRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public averageKeyRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public averageKeyRecordsTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyRecordsTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof averageKeyRecordsTime_args) return this.equals((averageKeyRecordsTime_args)that); return false; } public boolean equals(averageKeyRecordsTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyRecordsTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("averageKeyRecordsTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 averageKeyRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public averageKeyRecordsTime_argsStandardScheme getScheme() { return new averageKeyRecordsTime_argsStandardScheme(); } } private static class averageKeyRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyRecordsTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2688 = iprot.readListBegin(); struct.records = new ArrayList(_list2688.size); long _elem2689; for (int _i2690 = 0; _i2690 < _list2688.size; ++_i2690) { _elem2689 = iprot.readI64(); struct.records.add(_elem2689); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, averageKeyRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2691 : struct.records) { oprot.writeI64(_iter2691); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public averageKeyRecordsTime_argsTupleScheme getScheme() { return new averageKeyRecordsTime_argsTupleScheme(); } } private static class averageKeyRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2692 : struct.records) { oprot.writeI64(_iter2692); } } } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list2693 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2693.size); long _elem2694; for (int _i2695 = 0; _i2695 < _list2693.size; ++_i2695) { _elem2694 = iprot.readI64(); struct.records.add(_elem2694); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class averageKeyRecordsTime_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("averageKeyRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyRecordsTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(averageKeyRecordsTime_result.class, metaDataMap); } public averageKeyRecordsTime_result() { } public averageKeyRecordsTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public averageKeyRecordsTime_result(averageKeyRecordsTime_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public averageKeyRecordsTime_result deepCopy() { return new averageKeyRecordsTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public averageKeyRecordsTime_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public averageKeyRecordsTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyRecordsTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof averageKeyRecordsTime_result) return this.equals((averageKeyRecordsTime_result)that); return false; } public boolean equals(averageKeyRecordsTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(averageKeyRecordsTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("averageKeyRecordsTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 averageKeyRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public averageKeyRecordsTime_resultStandardScheme getScheme() { return new averageKeyRecordsTime_resultStandardScheme(); } } private static class averageKeyRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyRecordsTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, averageKeyRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public averageKeyRecordsTime_resultTupleScheme getScheme() { return new averageKeyRecordsTime_resultTupleScheme(); } } private static class averageKeyRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class averageKeyCriteria_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("averageKeyCriteria_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyCriteria_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CRITERIA((short)2, "criteria"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(averageKeyCriteria_args.class, metaDataMap); } public averageKeyCriteria_args() { } public averageKeyCriteria_args( String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyCriteria_args(averageKeyCriteria_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public averageKeyCriteria_args deepCopy() { return new averageKeyCriteria_args(this); } @Override public void clear() { this.key = null; this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public averageKeyCriteria_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public averageKeyCriteria_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public averageKeyCriteria_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyCriteria_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof averageKeyCriteria_args) return this.equals((averageKeyCriteria_args)that); return false; } public boolean equals(averageKeyCriteria_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyCriteria_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("averageKeyCriteria_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 averageKeyCriteria_argsStandardSchemeFactory implements SchemeFactory { public averageKeyCriteria_argsStandardScheme getScheme() { return new averageKeyCriteria_argsStandardScheme(); } } private static class averageKeyCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyCriteria_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, averageKeyCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyCriteria_argsTupleSchemeFactory implements SchemeFactory { public averageKeyCriteria_argsTupleScheme getScheme() { return new averageKeyCriteria_argsTupleScheme(); } } private static class averageKeyCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class averageKeyCriteria_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("averageKeyCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyCriteria_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(averageKeyCriteria_result.class, metaDataMap); } public averageKeyCriteria_result() { } public averageKeyCriteria_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public averageKeyCriteria_result(averageKeyCriteria_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public averageKeyCriteria_result deepCopy() { return new averageKeyCriteria_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public averageKeyCriteria_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public averageKeyCriteria_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyCriteria_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof averageKeyCriteria_result) return this.equals((averageKeyCriteria_result)that); return false; } public boolean equals(averageKeyCriteria_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(averageKeyCriteria_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("averageKeyCriteria_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 averageKeyCriteria_resultStandardSchemeFactory implements SchemeFactory { public averageKeyCriteria_resultStandardScheme getScheme() { return new averageKeyCriteria_resultStandardScheme(); } } private static class averageKeyCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyCriteria_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, averageKeyCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyCriteria_resultTupleSchemeFactory implements SchemeFactory { public averageKeyCriteria_resultTupleScheme getScheme() { return new averageKeyCriteria_resultTupleScheme(); } } private static class averageKeyCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class averageKeyCcl_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("averageKeyCcl_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyCcl_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CCL((short)2, "ccl"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CCL return CCL; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(averageKeyCcl_args.class, metaDataMap); } public averageKeyCcl_args() { } public averageKeyCcl_args( String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyCcl_args(averageKeyCcl_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetCcl()) { this.ccl = other.ccl; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public averageKeyCcl_args deepCopy() { return new averageKeyCcl_args(this); } @Override public void clear() { this.key = null; this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public averageKeyCcl_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public String getCcl() { return this.ccl; } public averageKeyCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public averageKeyCcl_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyCcl_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof averageKeyCcl_args) return this.equals((averageKeyCcl_args)that); return false; } public boolean equals(averageKeyCcl_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyCcl_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("averageKeyCcl_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 averageKeyCcl_argsStandardSchemeFactory implements SchemeFactory { public averageKeyCcl_argsStandardScheme getScheme() { return new averageKeyCcl_argsStandardScheme(); } } private static class averageKeyCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyCcl_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, averageKeyCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyCcl_argsTupleSchemeFactory implements SchemeFactory { public averageKeyCcl_argsTupleScheme getScheme() { return new averageKeyCcl_argsTupleScheme(); } } private static class averageKeyCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class averageKeyCcl_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("averageKeyCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyCcl_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(averageKeyCcl_result.class, metaDataMap); } public averageKeyCcl_result() { } public averageKeyCcl_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public averageKeyCcl_result(averageKeyCcl_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public averageKeyCcl_result deepCopy() { return new averageKeyCcl_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public averageKeyCcl_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public averageKeyCcl_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyCcl_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public averageKeyCcl_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof averageKeyCcl_result) return this.equals((averageKeyCcl_result)that); return false; } public boolean equals(averageKeyCcl_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(averageKeyCcl_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("averageKeyCcl_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 averageKeyCcl_resultStandardSchemeFactory implements SchemeFactory { public averageKeyCcl_resultStandardScheme getScheme() { return new averageKeyCcl_resultStandardScheme(); } } private static class averageKeyCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyCcl_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, averageKeyCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyCcl_resultTupleSchemeFactory implements SchemeFactory { public averageKeyCcl_resultTupleScheme getScheme() { return new averageKeyCcl_resultTupleScheme(); } } private static class averageKeyCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class averageKeyCriteriaTime_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("averageKeyCriteriaTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyCriteriaTime_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CRITERIA((short)2, "criteria"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(averageKeyCriteriaTime_args.class, metaDataMap); } public averageKeyCriteriaTime_args() { } public averageKeyCriteriaTime_args( String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyCriteriaTime_args(averageKeyCriteriaTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public averageKeyCriteriaTime_args deepCopy() { return new averageKeyCriteriaTime_args(this); } @Override public void clear() { this.key = null; this.criteria = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public averageKeyCriteriaTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public averageKeyCriteriaTime_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public long getTimestamp() { return this.timestamp; } public averageKeyCriteriaTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public averageKeyCriteriaTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyCriteriaTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof averageKeyCriteriaTime_args) return this.equals((averageKeyCriteriaTime_args)that); return false; } public boolean equals(averageKeyCriteriaTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyCriteriaTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("averageKeyCriteriaTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 averageKeyCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public averageKeyCriteriaTime_argsStandardScheme getScheme() { return new averageKeyCriteriaTime_argsStandardScheme(); } } private static class averageKeyCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyCriteriaTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, averageKeyCriteriaTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public averageKeyCriteriaTime_argsTupleScheme getScheme() { return new averageKeyCriteriaTime_argsTupleScheme(); } } private static class averageKeyCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class averageKeyCriteriaTime_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("averageKeyCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyCriteriaTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(averageKeyCriteriaTime_result.class, metaDataMap); } public averageKeyCriteriaTime_result() { } public averageKeyCriteriaTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public averageKeyCriteriaTime_result(averageKeyCriteriaTime_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public averageKeyCriteriaTime_result deepCopy() { return new averageKeyCriteriaTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public averageKeyCriteriaTime_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public averageKeyCriteriaTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyCriteriaTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof averageKeyCriteriaTime_result) return this.equals((averageKeyCriteriaTime_result)that); return false; } public boolean equals(averageKeyCriteriaTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(averageKeyCriteriaTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("averageKeyCriteriaTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 averageKeyCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public averageKeyCriteriaTime_resultStandardScheme getScheme() { return new averageKeyCriteriaTime_resultStandardScheme(); } } private static class averageKeyCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyCriteriaTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, averageKeyCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public averageKeyCriteriaTime_resultTupleScheme getScheme() { return new averageKeyCriteriaTime_resultTupleScheme(); } } private static class averageKeyCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class averageKeyCclTime_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("averageKeyCclTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyCclTime_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CCL((short)2, "ccl"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(averageKeyCclTime_args.class, metaDataMap); } public averageKeyCclTime_args() { } public averageKeyCclTime_args( String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public averageKeyCclTime_args(averageKeyCclTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetCcl()) { this.ccl = other.ccl; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public averageKeyCclTime_args deepCopy() { return new averageKeyCclTime_args(this); } @Override public void clear() { this.key = null; this.ccl = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public averageKeyCclTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public String getCcl() { return this.ccl; } public averageKeyCclTime_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public long getTimestamp() { return this.timestamp; } public averageKeyCclTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public averageKeyCclTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public averageKeyCclTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public averageKeyCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof averageKeyCclTime_args) return this.equals((averageKeyCclTime_args)that); return false; } public boolean equals(averageKeyCclTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(averageKeyCclTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("averageKeyCclTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 averageKeyCclTime_argsStandardSchemeFactory implements SchemeFactory { public averageKeyCclTime_argsStandardScheme getScheme() { return new averageKeyCclTime_argsStandardScheme(); } } private static class averageKeyCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyCclTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, averageKeyCclTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyCclTime_argsTupleSchemeFactory implements SchemeFactory { public averageKeyCclTime_argsTupleScheme getScheme() { return new averageKeyCclTime_argsTupleScheme(); } } private static class averageKeyCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class averageKeyCclTime_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("averageKeyCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new averageKeyCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new averageKeyCclTime_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.TObject success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(averageKeyCclTime_result.class, metaDataMap); } public averageKeyCclTime_result() { } public averageKeyCclTime_result( com.cinchapi.concourse.thrift.TObject success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public averageKeyCclTime_result(averageKeyCclTime_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.TObject(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public averageKeyCclTime_result deepCopy() { return new averageKeyCclTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public com.cinchapi.concourse.thrift.TObject getSuccess() { return this.success; } public averageKeyCclTime_result setSuccess(com.cinchapi.concourse.thrift.TObject success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public averageKeyCclTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public averageKeyCclTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public averageKeyCclTime_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.TObject)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof averageKeyCclTime_result) return this.equals((averageKeyCclTime_result)that); return false; } public boolean equals(averageKeyCclTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(averageKeyCclTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("averageKeyCclTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 averageKeyCclTime_resultStandardSchemeFactory implements SchemeFactory { public averageKeyCclTime_resultStandardScheme getScheme() { return new averageKeyCclTime_resultStandardScheme(); } } private static class averageKeyCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, averageKeyCclTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, averageKeyCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class averageKeyCclTime_resultTupleSchemeFactory implements SchemeFactory { public averageKeyCclTime_resultTupleScheme getScheme() { return new averageKeyCclTime_resultTupleScheme(); } } private static class averageKeyCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, averageKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, averageKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.TObject(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeyRecord_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("navigateKeyRecord_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecord_argsTupleSchemeFactory()); } public String key; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeyRecord_args.class, metaDataMap); } public navigateKeyRecord_args() { } public navigateKeyRecord_args( String key, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyRecord_args(navigateKeyRecord_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyRecord_args deepCopy() { return new navigateKeyRecord_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyRecord_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public navigateKeyRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyRecord_args) return this.equals((navigateKeyRecord_args)that); return false; } public boolean equals(navigateKeyRecord_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeyRecord_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeyRecord_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyRecord_argsStandardScheme getScheme() { return new navigateKeyRecord_argsStandardScheme(); } } private static class navigateKeyRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecord_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeyRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyRecord_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyRecord_argsTupleScheme getScheme() { return new navigateKeyRecord_argsTupleScheme(); } } private static class navigateKeyRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyRecord_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("navigateKeyRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecord_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(navigateKeyRecord_result.class, metaDataMap); } public navigateKeyRecord_result() { } public navigateKeyRecord_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public navigateKeyRecord_result(navigateKeyRecord_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public navigateKeyRecord_result deepCopy() { return new navigateKeyRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyRecord_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyRecord_result) return this.equals((navigateKeyRecord_result)that); return false; } public boolean equals(navigateKeyRecord_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(navigateKeyRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("navigateKeyRecord_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 navigateKeyRecord_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyRecord_resultStandardScheme getScheme() { return new navigateKeyRecord_resultStandardScheme(); } } private static class navigateKeyRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecord_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.MAP) { { org.apache.thrift.protocol.TMap _map2696 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map2696.size); long _key2697; Set _val2698; for (int _i2699 = 0; _i2699 < _map2696.size; ++_i2699) { _key2697 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set2700 = iprot.readSetBegin(); _val2698 = new LinkedHashSet(2*_set2700.size); com.cinchapi.concourse.thrift.TObject _elem2701; for (int _i2702 = 0; _i2702 < _set2700.size; ++_i2702) { _elem2701 = new com.cinchapi.concourse.thrift.TObject(); _elem2701.read(iprot); _val2698.add(_elem2701); } iprot.readSetEnd(); } struct.success.put(_key2697, _val2698); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, navigateKeyRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter2703 : struct.success.entrySet()) { oprot.writeI64(_iter2703.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter2703.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter2704 : _iter2703.getValue()) { _iter2704.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyRecord_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyRecord_resultTupleScheme getScheme() { return new navigateKeyRecord_resultTupleScheme(); } } private static class navigateKeyRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2705 : struct.success.entrySet()) { oprot.writeI64(_iter2705.getKey()); { oprot.writeI32(_iter2705.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter2706 : _iter2705.getValue()) { _iter2706.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2707 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map2707.size); long _key2708; Set _val2709; for (int _i2710 = 0; _i2710 < _map2707.size; ++_i2710) { _key2708 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set2711 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2709 = new LinkedHashSet(2*_set2711.size); com.cinchapi.concourse.thrift.TObject _elem2712; for (int _i2713 = 0; _i2713 < _set2711.size; ++_i2713) { _elem2712 = new com.cinchapi.concourse.thrift.TObject(); _elem2712.read(iprot); _val2709.add(_elem2712); } } struct.success.put(_key2708, _val2709); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class navigateKeyRecordTime_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("navigateKeyRecordTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecordTime_argsTupleSchemeFactory()); } public String key; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeyRecordTime_args.class, metaDataMap); } public navigateKeyRecordTime_args() { } public navigateKeyRecordTime_args( String key, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyRecordTime_args(navigateKeyRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyRecordTime_args deepCopy() { return new navigateKeyRecordTime_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyRecordTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public navigateKeyRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public navigateKeyRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyRecordTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyRecordTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyRecordTime_args) return this.equals((navigateKeyRecordTime_args)that); return false; } public boolean equals(navigateKeyRecordTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyRecordTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeyRecordTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeyRecordTime_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyRecordTime_argsStandardScheme getScheme() { return new navigateKeyRecordTime_argsStandardScheme(); } } private static class navigateKeyRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecordTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeyRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyRecordTime_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyRecordTime_argsTupleScheme getScheme() { return new navigateKeyRecordTime_argsTupleScheme(); } } private static class navigateKeyRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyRecordTime_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("navigateKeyRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecordTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(navigateKeyRecordTime_result.class, metaDataMap); } public navigateKeyRecordTime_result() { } public navigateKeyRecordTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public navigateKeyRecordTime_result(navigateKeyRecordTime_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public navigateKeyRecordTime_result deepCopy() { return new navigateKeyRecordTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyRecordTime_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyRecordTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyRecordTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyRecordTime_result) return this.equals((navigateKeyRecordTime_result)that); return false; } public boolean equals(navigateKeyRecordTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(navigateKeyRecordTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("navigateKeyRecordTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 navigateKeyRecordTime_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyRecordTime_resultStandardScheme getScheme() { return new navigateKeyRecordTime_resultStandardScheme(); } } private static class navigateKeyRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecordTime_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.MAP) { { org.apache.thrift.protocol.TMap _map2714 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map2714.size); long _key2715; Set _val2716; for (int _i2717 = 0; _i2717 < _map2714.size; ++_i2717) { _key2715 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set2718 = iprot.readSetBegin(); _val2716 = new LinkedHashSet(2*_set2718.size); com.cinchapi.concourse.thrift.TObject _elem2719; for (int _i2720 = 0; _i2720 < _set2718.size; ++_i2720) { _elem2719 = new com.cinchapi.concourse.thrift.TObject(); _elem2719.read(iprot); _val2716.add(_elem2719); } iprot.readSetEnd(); } struct.success.put(_key2715, _val2716); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, navigateKeyRecordTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter2721 : struct.success.entrySet()) { oprot.writeI64(_iter2721.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter2721.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter2722 : _iter2721.getValue()) { _iter2722.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyRecordTime_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyRecordTime_resultTupleScheme getScheme() { return new navigateKeyRecordTime_resultTupleScheme(); } } private static class navigateKeyRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2723 : struct.success.entrySet()) { oprot.writeI64(_iter2723.getKey()); { oprot.writeI32(_iter2723.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter2724 : _iter2723.getValue()) { _iter2724.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2725 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map2725.size); long _key2726; Set _val2727; for (int _i2728 = 0; _i2728 < _map2725.size; ++_i2728) { _key2726 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set2729 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2727 = new LinkedHashSet(2*_set2729.size); com.cinchapi.concourse.thrift.TObject _elem2730; for (int _i2731 = 0; _i2731 < _set2729.size; ++_i2731) { _elem2730 = new com.cinchapi.concourse.thrift.TObject(); _elem2730.read(iprot); _val2727.add(_elem2730); } } struct.success.put(_key2726, _val2727); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class navigateKeyRecordTimestr_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("navigateKeyRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecordTimestr_argsTupleSchemeFactory()); } public String key; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORD((short)2, "record"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeyRecordTimestr_args.class, metaDataMap); } public navigateKeyRecordTimestr_args() { } public navigateKeyRecordTimestr_args( String key, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyRecordTimestr_args(navigateKeyRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } this.record = other.record; if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyRecordTimestr_args deepCopy() { return new navigateKeyRecordTimestr_args(this); } @Override public void clear() { this.key = null; setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyRecordTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public long getRecord() { return this.record; } public navigateKeyRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public navigateKeyRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyRecordTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyRecordTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyRecordTimestr_args) return this.equals((navigateKeyRecordTimestr_args)that); return false; } public boolean equals(navigateKeyRecordTimestr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyRecordTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeyRecordTimestr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeyRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyRecordTimestr_argsStandardScheme getScheme() { return new navigateKeyRecordTimestr_argsStandardScheme(); } } private static class navigateKeyRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecordTimestr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeyRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyRecordTimestr_argsTupleScheme getScheme() { return new navigateKeyRecordTimestr_argsTupleScheme(); } } private static class navigateKeyRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyRecordTimestr_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("navigateKeyRecordTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecordTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(navigateKeyRecordTimestr_result.class, metaDataMap); } public navigateKeyRecordTimestr_result() { } public navigateKeyRecordTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public navigateKeyRecordTimestr_result(navigateKeyRecordTimestr_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public navigateKeyRecordTimestr_result deepCopy() { return new navigateKeyRecordTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyRecordTimestr_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyRecordTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyRecordTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyRecordTimestr_result) return this.equals((navigateKeyRecordTimestr_result)that); return false; } public boolean equals(navigateKeyRecordTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(navigateKeyRecordTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("navigateKeyRecordTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 navigateKeyRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyRecordTimestr_resultStandardScheme getScheme() { return new navigateKeyRecordTimestr_resultStandardScheme(); } } private static class navigateKeyRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecordTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map2732 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map2732.size); long _key2733; Set _val2734; for (int _i2735 = 0; _i2735 < _map2732.size; ++_i2735) { _key2733 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set2736 = iprot.readSetBegin(); _val2734 = new LinkedHashSet(2*_set2736.size); com.cinchapi.concourse.thrift.TObject _elem2737; for (int _i2738 = 0; _i2738 < _set2736.size; ++_i2738) { _elem2737 = new com.cinchapi.concourse.thrift.TObject(); _elem2737.read(iprot); _val2734.add(_elem2737); } iprot.readSetEnd(); } struct.success.put(_key2733, _val2734); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, navigateKeyRecordTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter2739 : struct.success.entrySet()) { oprot.writeI64(_iter2739.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter2739.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter2740 : _iter2739.getValue()) { _iter2740.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyRecordTimestr_resultTupleScheme getScheme() { return new navigateKeyRecordTimestr_resultTupleScheme(); } } private static class navigateKeyRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2741 : struct.success.entrySet()) { oprot.writeI64(_iter2741.getKey()); { oprot.writeI32(_iter2741.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter2742 : _iter2741.getValue()) { _iter2742.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2743 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map2743.size); long _key2744; Set _val2745; for (int _i2746 = 0; _i2746 < _map2743.size; ++_i2746) { _key2744 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set2747 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2745 = new LinkedHashSet(2*_set2747.size); com.cinchapi.concourse.thrift.TObject _elem2748; for (int _i2749 = 0; _i2749 < _set2747.size; ++_i2749) { _elem2748 = new com.cinchapi.concourse.thrift.TObject(); _elem2748.read(iprot); _val2745.add(_elem2748); } } struct.success.put(_key2744, _val2745); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class navigateKeysRecord_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("navigateKeysRecord_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecord_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecord_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORD((short)2, "record"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeysRecord_args.class, metaDataMap); } public navigateKeysRecord_args() { } public navigateKeysRecord_args( List keys, long record, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysRecord_args(navigateKeysRecord_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysRecord_args deepCopy() { return new navigateKeysRecord_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysRecord_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public long getRecord() { return this.record; } public navigateKeysRecord_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysRecord_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysRecord_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysRecord_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysRecord_args) return this.equals((navigateKeysRecord_args)that); return false; } public boolean equals(navigateKeysRecord_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysRecord_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeysRecord_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeysRecord_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysRecord_argsStandardScheme getScheme() { return new navigateKeysRecord_argsStandardScheme(); } } private static class navigateKeysRecord_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecord_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2750 = iprot.readListBegin(); struct.keys = new ArrayList(_list2750.size); String _elem2751; for (int _i2752 = 0; _i2752 < _list2750.size; ++_i2752) { _elem2751 = iprot.readString(); struct.keys.add(_elem2751); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeysRecord_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2753 : struct.keys) { oprot.writeString(_iter2753); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysRecord_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysRecord_argsTupleScheme getScheme() { return new navigateKeysRecord_argsTupleScheme(); } } private static class navigateKeysRecord_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2754 : struct.keys) { oprot.writeString(_iter2754); } } } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecord_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2755 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2755.size); String _elem2756; for (int _i2757 = 0; _i2757 < _list2755.size; ++_i2757) { _elem2756 = iprot.readString(); struct.keys.add(_elem2756); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysRecord_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("navigateKeysRecord_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecord_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecord_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(navigateKeysRecord_result.class, metaDataMap); } public navigateKeysRecord_result() { } public navigateKeysRecord_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public navigateKeysRecord_result(navigateKeysRecord_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public navigateKeysRecord_result deepCopy() { return new navigateKeysRecord_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysRecord_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysRecord_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysRecord_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysRecord_result) return this.equals((navigateKeysRecord_result)that); return false; } public boolean equals(navigateKeysRecord_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(navigateKeysRecord_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("navigateKeysRecord_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 navigateKeysRecord_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysRecord_resultStandardScheme getScheme() { return new navigateKeysRecord_resultStandardScheme(); } } private static class navigateKeysRecord_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecord_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.MAP) { { org.apache.thrift.protocol.TMap _map2758 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map2758.size); long _key2759; Map> _val2760; for (int _i2761 = 0; _i2761 < _map2758.size; ++_i2761) { _key2759 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2762 = iprot.readMapBegin(); _val2760 = new LinkedHashMap>(2*_map2762.size); String _key2763; Set _val2764; for (int _i2765 = 0; _i2765 < _map2762.size; ++_i2765) { _key2763 = iprot.readString(); { org.apache.thrift.protocol.TSet _set2766 = iprot.readSetBegin(); _val2764 = new LinkedHashSet(2*_set2766.size); com.cinchapi.concourse.thrift.TObject _elem2767; for (int _i2768 = 0; _i2768 < _set2766.size; ++_i2768) { _elem2767 = new com.cinchapi.concourse.thrift.TObject(); _elem2767.read(iprot); _val2764.add(_elem2767); } iprot.readSetEnd(); } _val2760.put(_key2763, _val2764); } iprot.readMapEnd(); } struct.success.put(_key2759, _val2760); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, navigateKeysRecord_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter2769 : struct.success.entrySet()) { oprot.writeI64(_iter2769.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter2769.getValue().size())); for (Map.Entry> _iter2770 : _iter2769.getValue().entrySet()) { oprot.writeString(_iter2770.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter2770.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter2771 : _iter2770.getValue()) { _iter2771.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysRecord_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysRecord_resultTupleScheme getScheme() { return new navigateKeysRecord_resultTupleScheme(); } } private static class navigateKeysRecord_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter2772 : struct.success.entrySet()) { oprot.writeI64(_iter2772.getKey()); { oprot.writeI32(_iter2772.getValue().size()); for (Map.Entry> _iter2773 : _iter2772.getValue().entrySet()) { oprot.writeString(_iter2773.getKey()); { oprot.writeI32(_iter2773.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter2774 : _iter2773.getValue()) { _iter2774.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecord_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2775 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map2775.size); long _key2776; Map> _val2777; for (int _i2778 = 0; _i2778 < _map2775.size; ++_i2778) { _key2776 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2779 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val2777 = new LinkedHashMap>(2*_map2779.size); String _key2780; Set _val2781; for (int _i2782 = 0; _i2782 < _map2779.size; ++_i2782) { _key2780 = iprot.readString(); { org.apache.thrift.protocol.TSet _set2783 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2781 = new LinkedHashSet(2*_set2783.size); com.cinchapi.concourse.thrift.TObject _elem2784; for (int _i2785 = 0; _i2785 < _set2783.size; ++_i2785) { _elem2784 = new com.cinchapi.concourse.thrift.TObject(); _elem2784.read(iprot); _val2781.add(_elem2784); } } _val2777.put(_key2780, _val2781); } } struct.success.put(_key2776, _val2777); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class navigateKeysRecordTime_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("navigateKeysRecordTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecordTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecordTime_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORD((short)2, "record"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_ISSET_ID = 0; private static final int __TIMESTAMP_ISSET_ID = 1; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeysRecordTime_args.class, metaDataMap); } public navigateKeysRecordTime_args() { } public navigateKeysRecordTime_args( List keys, long record, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysRecordTime_args(navigateKeysRecordTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysRecordTime_args deepCopy() { return new navigateKeysRecordTime_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysRecordTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public long getRecord() { return this.record; } public navigateKeysRecordTime_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public long getTimestamp() { return this.timestamp; } public navigateKeysRecordTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysRecordTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysRecordTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysRecordTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysRecordTime_args) return this.equals((navigateKeysRecordTime_args)that); return false; } public boolean equals(navigateKeysRecordTime_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysRecordTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeysRecordTime_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeysRecordTime_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysRecordTime_argsStandardScheme getScheme() { return new navigateKeysRecordTime_argsStandardScheme(); } } private static class navigateKeysRecordTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecordTime_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2786 = iprot.readListBegin(); struct.keys = new ArrayList(_list2786.size); String _elem2787; for (int _i2788 = 0; _i2788 < _list2786.size; ++_i2788) { _elem2787 = iprot.readString(); struct.keys.add(_elem2787); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeysRecordTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2789 : struct.keys) { oprot.writeString(_iter2789); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysRecordTime_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysRecordTime_argsTupleScheme getScheme() { return new navigateKeysRecordTime_argsTupleScheme(); } } private static class navigateKeysRecordTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2790 : struct.keys) { oprot.writeString(_iter2790); } } } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2791 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2791.size); String _elem2792; for (int _i2793 = 0; _i2793 < _list2791.size; ++_i2793) { _elem2792 = iprot.readString(); struct.keys.add(_elem2792); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysRecordTime_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("navigateKeysRecordTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecordTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecordTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(navigateKeysRecordTime_result.class, metaDataMap); } public navigateKeysRecordTime_result() { } public navigateKeysRecordTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public navigateKeysRecordTime_result(navigateKeysRecordTime_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public navigateKeysRecordTime_result deepCopy() { return new navigateKeysRecordTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysRecordTime_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysRecordTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysRecordTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysRecordTime_result) return this.equals((navigateKeysRecordTime_result)that); return false; } public boolean equals(navigateKeysRecordTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(navigateKeysRecordTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("navigateKeysRecordTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 navigateKeysRecordTime_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysRecordTime_resultStandardScheme getScheme() { return new navigateKeysRecordTime_resultStandardScheme(); } } private static class navigateKeysRecordTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecordTime_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.MAP) { { org.apache.thrift.protocol.TMap _map2794 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map2794.size); long _key2795; Map> _val2796; for (int _i2797 = 0; _i2797 < _map2794.size; ++_i2797) { _key2795 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2798 = iprot.readMapBegin(); _val2796 = new LinkedHashMap>(2*_map2798.size); String _key2799; Set _val2800; for (int _i2801 = 0; _i2801 < _map2798.size; ++_i2801) { _key2799 = iprot.readString(); { org.apache.thrift.protocol.TSet _set2802 = iprot.readSetBegin(); _val2800 = new LinkedHashSet(2*_set2802.size); com.cinchapi.concourse.thrift.TObject _elem2803; for (int _i2804 = 0; _i2804 < _set2802.size; ++_i2804) { _elem2803 = new com.cinchapi.concourse.thrift.TObject(); _elem2803.read(iprot); _val2800.add(_elem2803); } iprot.readSetEnd(); } _val2796.put(_key2799, _val2800); } iprot.readMapEnd(); } struct.success.put(_key2795, _val2796); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, navigateKeysRecordTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter2805 : struct.success.entrySet()) { oprot.writeI64(_iter2805.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter2805.getValue().size())); for (Map.Entry> _iter2806 : _iter2805.getValue().entrySet()) { oprot.writeString(_iter2806.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter2806.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter2807 : _iter2806.getValue()) { _iter2807.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysRecordTime_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysRecordTime_resultTupleScheme getScheme() { return new navigateKeysRecordTime_resultTupleScheme(); } } private static class navigateKeysRecordTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter2808 : struct.success.entrySet()) { oprot.writeI64(_iter2808.getKey()); { oprot.writeI32(_iter2808.getValue().size()); for (Map.Entry> _iter2809 : _iter2808.getValue().entrySet()) { oprot.writeString(_iter2809.getKey()); { oprot.writeI32(_iter2809.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter2810 : _iter2809.getValue()) { _iter2810.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2811 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map2811.size); long _key2812; Map> _val2813; for (int _i2814 = 0; _i2814 < _map2811.size; ++_i2814) { _key2812 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2815 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val2813 = new LinkedHashMap>(2*_map2815.size); String _key2816; Set _val2817; for (int _i2818 = 0; _i2818 < _map2815.size; ++_i2818) { _key2816 = iprot.readString(); { org.apache.thrift.protocol.TSet _set2819 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2817 = new LinkedHashSet(2*_set2819.size); com.cinchapi.concourse.thrift.TObject _elem2820; for (int _i2821 = 0; _i2821 < _set2819.size; ++_i2821) { _elem2820 = new com.cinchapi.concourse.thrift.TObject(); _elem2820.read(iprot); _val2817.add(_elem2820); } } _val2813.put(_key2816, _val2817); } } struct.success.put(_key2812, _val2813); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class navigateKeysRecordTimestr_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("navigateKeysRecordTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORD_FIELD_DESC = new org.apache.thrift.protocol.TField("record", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecordTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecordTimestr_argsTupleSchemeFactory()); } public List keys; // required public long record; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORD((short)2, "record"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORD return RECORD; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __RECORD_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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORD, new org.apache.thrift.meta_data.FieldMetaData("record", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeysRecordTimestr_args.class, metaDataMap); } public navigateKeysRecordTimestr_args() { } public navigateKeysRecordTimestr_args( List keys, long record, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.record = record; setRecordIsSet(true); this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysRecordTimestr_args(navigateKeysRecordTimestr_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } this.record = other.record; if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysRecordTimestr_args deepCopy() { return new navigateKeysRecordTimestr_args(this); } @Override public void clear() { this.keys = null; setRecordIsSet(false); this.record = 0; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysRecordTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public long getRecord() { return this.record; } public navigateKeysRecordTimestr_args setRecord(long record) { this.record = record; setRecordIsSet(true); return this; } public void unsetRecord() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RECORD_ISSET_ID); } /** Returns true if field record is set (has been assigned a value) and false otherwise */ public boolean isSetRecord() { return EncodingUtils.testBit(__isset_bitfield, __RECORD_ISSET_ID); } public void setRecordIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RECORD_ISSET_ID, value); } public String getTimestamp() { return this.timestamp; } public navigateKeysRecordTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysRecordTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysRecordTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysRecordTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORD: if (value == null) { unsetRecord(); } else { setRecord((Long)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORD: return getRecord(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORD: return isSetRecord(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysRecordTimestr_args) return this.equals((navigateKeysRecordTimestr_args)that); return false; } public boolean equals(navigateKeysRecordTimestr_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_record = true; boolean that_present_record = true; if (this_present_record || that_present_record) { if (!(this_present_record && that_present_record)) return false; if (this.record != that.record) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_record = true; list.add(present_record); if (present_record) list.add(record); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysRecordTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecord()).compareTo(other.isSetRecord()); if (lastComparison != 0) { return lastComparison; } if (isSetRecord()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.record, other.record); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeysRecordTimestr_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("record:"); sb.append(this.record); first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeysRecordTimestr_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysRecordTimestr_argsStandardScheme getScheme() { return new navigateKeysRecordTimestr_argsStandardScheme(); } } private static class navigateKeysRecordTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecordTimestr_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2822 = iprot.readListBegin(); struct.keys = new ArrayList(_list2822.size); String _elem2823; for (int _i2824 = 0; _i2824 < _list2822.size; ++_i2824) { _elem2823 = iprot.readString(); struct.keys.add(_elem2823); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORD if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeysRecordTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2825 : struct.keys) { oprot.writeString(_iter2825); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(RECORD_FIELD_DESC); oprot.writeI64(struct.record); oprot.writeFieldEnd(); if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysRecordTimestr_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysRecordTimestr_argsTupleScheme getScheme() { return new navigateKeysRecordTimestr_argsTupleScheme(); } } private static class navigateKeysRecordTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecord()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2826 : struct.keys) { oprot.writeString(_iter2826); } } } if (struct.isSetRecord()) { oprot.writeI64(struct.record); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2827 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2827.size); String _elem2828; for (int _i2829 = 0; _i2829 < _list2827.size; ++_i2829) { _elem2828 = iprot.readString(); struct.keys.add(_elem2828); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.record = iprot.readI64(); struct.setRecordIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysRecordTimestr_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("navigateKeysRecordTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecordTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecordTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(navigateKeysRecordTimestr_result.class, metaDataMap); } public navigateKeysRecordTimestr_result() { } public navigateKeysRecordTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public navigateKeysRecordTimestr_result(navigateKeysRecordTimestr_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public navigateKeysRecordTimestr_result deepCopy() { return new navigateKeysRecordTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysRecordTimestr_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysRecordTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysRecordTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysRecordTimestr_result) return this.equals((navigateKeysRecordTimestr_result)that); return false; } public boolean equals(navigateKeysRecordTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(navigateKeysRecordTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("navigateKeysRecordTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 navigateKeysRecordTimestr_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysRecordTimestr_resultStandardScheme getScheme() { return new navigateKeysRecordTimestr_resultStandardScheme(); } } private static class navigateKeysRecordTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecordTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map2830 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map2830.size); long _key2831; Map> _val2832; for (int _i2833 = 0; _i2833 < _map2830.size; ++_i2833) { _key2831 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2834 = iprot.readMapBegin(); _val2832 = new LinkedHashMap>(2*_map2834.size); String _key2835; Set _val2836; for (int _i2837 = 0; _i2837 < _map2834.size; ++_i2837) { _key2835 = iprot.readString(); { org.apache.thrift.protocol.TSet _set2838 = iprot.readSetBegin(); _val2836 = new LinkedHashSet(2*_set2838.size); com.cinchapi.concourse.thrift.TObject _elem2839; for (int _i2840 = 0; _i2840 < _set2838.size; ++_i2840) { _elem2839 = new com.cinchapi.concourse.thrift.TObject(); _elem2839.read(iprot); _val2836.add(_elem2839); } iprot.readSetEnd(); } _val2832.put(_key2835, _val2836); } iprot.readMapEnd(); } struct.success.put(_key2831, _val2832); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, navigateKeysRecordTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter2841 : struct.success.entrySet()) { oprot.writeI64(_iter2841.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter2841.getValue().size())); for (Map.Entry> _iter2842 : _iter2841.getValue().entrySet()) { oprot.writeString(_iter2842.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter2842.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter2843 : _iter2842.getValue()) { _iter2843.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysRecordTimestr_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysRecordTimestr_resultTupleScheme getScheme() { return new navigateKeysRecordTimestr_resultTupleScheme(); } } private static class navigateKeysRecordTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter2844 : struct.success.entrySet()) { oprot.writeI64(_iter2844.getKey()); { oprot.writeI32(_iter2844.getValue().size()); for (Map.Entry> _iter2845 : _iter2844.getValue().entrySet()) { oprot.writeString(_iter2845.getKey()); { oprot.writeI32(_iter2845.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter2846 : _iter2845.getValue()) { _iter2846.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2847 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map2847.size); long _key2848; Map> _val2849; for (int _i2850 = 0; _i2850 < _map2847.size; ++_i2850) { _key2848 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2851 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val2849 = new LinkedHashMap>(2*_map2851.size); String _key2852; Set _val2853; for (int _i2854 = 0; _i2854 < _map2851.size; ++_i2854) { _key2852 = iprot.readString(); { org.apache.thrift.protocol.TSet _set2855 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2853 = new LinkedHashSet(2*_set2855.size); com.cinchapi.concourse.thrift.TObject _elem2856; for (int _i2857 = 0; _i2857 < _set2855.size; ++_i2857) { _elem2856 = new com.cinchapi.concourse.thrift.TObject(); _elem2856.read(iprot); _val2853.add(_elem2856); } } _val2849.put(_key2852, _val2853); } } struct.success.put(_key2848, _val2849); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class navigateKeysRecords_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("navigateKeysRecords_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecords_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORDS((short)2, "records"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeysRecords_args.class, metaDataMap); } public navigateKeysRecords_args() { } public navigateKeysRecords_args( List keys, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysRecords_args(navigateKeysRecords_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysRecords_args deepCopy() { return new navigateKeysRecords_args(this); } @Override public void clear() { this.keys = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysRecords_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public navigateKeysRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysRecords_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysRecords_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysRecords_args) return this.equals((navigateKeysRecords_args)that); return false; } public boolean equals(navigateKeysRecords_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysRecords_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeysRecords_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeysRecords_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysRecords_argsStandardScheme getScheme() { return new navigateKeysRecords_argsStandardScheme(); } } private static class navigateKeysRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecords_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2858 = iprot.readListBegin(); struct.keys = new ArrayList(_list2858.size); String _elem2859; for (int _i2860 = 0; _i2860 < _list2858.size; ++_i2860) { _elem2859 = iprot.readString(); struct.keys.add(_elem2859); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2861 = iprot.readListBegin(); struct.records = new ArrayList(_list2861.size); long _elem2862; for (int _i2863 = 0; _i2863 < _list2861.size; ++_i2863) { _elem2862 = iprot.readI64(); struct.records.add(_elem2862); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeysRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2864 : struct.keys) { oprot.writeString(_iter2864); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2865 : struct.records) { oprot.writeI64(_iter2865); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysRecords_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysRecords_argsTupleScheme getScheme() { return new navigateKeysRecords_argsTupleScheme(); } } private static class navigateKeysRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2866 : struct.keys) { oprot.writeString(_iter2866); } } } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2867 : struct.records) { oprot.writeI64(_iter2867); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2868 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2868.size); String _elem2869; for (int _i2870 = 0; _i2870 < _list2868.size; ++_i2870) { _elem2869 = iprot.readString(); struct.keys.add(_elem2869); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list2871 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2871.size); long _elem2872; for (int _i2873 = 0; _i2873 < _list2871.size; ++_i2873) { _elem2872 = iprot.readI64(); struct.records.add(_elem2872); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysRecords_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("navigateKeysRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecords_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(navigateKeysRecords_result.class, metaDataMap); } public navigateKeysRecords_result() { } public navigateKeysRecords_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public navigateKeysRecords_result(navigateKeysRecords_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public navigateKeysRecords_result deepCopy() { return new navigateKeysRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysRecords_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysRecords_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysRecords_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysRecords_result) return this.equals((navigateKeysRecords_result)that); return false; } public boolean equals(navigateKeysRecords_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(navigateKeysRecords_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("navigateKeysRecords_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 navigateKeysRecords_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysRecords_resultStandardScheme getScheme() { return new navigateKeysRecords_resultStandardScheme(); } } private static class navigateKeysRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecords_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.MAP) { { org.apache.thrift.protocol.TMap _map2874 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map2874.size); long _key2875; Map> _val2876; for (int _i2877 = 0; _i2877 < _map2874.size; ++_i2877) { _key2875 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2878 = iprot.readMapBegin(); _val2876 = new LinkedHashMap>(2*_map2878.size); String _key2879; Set _val2880; for (int _i2881 = 0; _i2881 < _map2878.size; ++_i2881) { _key2879 = iprot.readString(); { org.apache.thrift.protocol.TSet _set2882 = iprot.readSetBegin(); _val2880 = new LinkedHashSet(2*_set2882.size); com.cinchapi.concourse.thrift.TObject _elem2883; for (int _i2884 = 0; _i2884 < _set2882.size; ++_i2884) { _elem2883 = new com.cinchapi.concourse.thrift.TObject(); _elem2883.read(iprot); _val2880.add(_elem2883); } iprot.readSetEnd(); } _val2876.put(_key2879, _val2880); } iprot.readMapEnd(); } struct.success.put(_key2875, _val2876); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, navigateKeysRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter2885 : struct.success.entrySet()) { oprot.writeI64(_iter2885.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter2885.getValue().size())); for (Map.Entry> _iter2886 : _iter2885.getValue().entrySet()) { oprot.writeString(_iter2886.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter2886.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter2887 : _iter2886.getValue()) { _iter2887.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysRecords_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysRecords_resultTupleScheme getScheme() { return new navigateKeysRecords_resultTupleScheme(); } } private static class navigateKeysRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter2888 : struct.success.entrySet()) { oprot.writeI64(_iter2888.getKey()); { oprot.writeI32(_iter2888.getValue().size()); for (Map.Entry> _iter2889 : _iter2888.getValue().entrySet()) { oprot.writeString(_iter2889.getKey()); { oprot.writeI32(_iter2889.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter2890 : _iter2889.getValue()) { _iter2890.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2891 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map2891.size); long _key2892; Map> _val2893; for (int _i2894 = 0; _i2894 < _map2891.size; ++_i2894) { _key2892 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map2895 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val2893 = new LinkedHashMap>(2*_map2895.size); String _key2896; Set _val2897; for (int _i2898 = 0; _i2898 < _map2895.size; ++_i2898) { _key2896 = iprot.readString(); { org.apache.thrift.protocol.TSet _set2899 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2897 = new LinkedHashSet(2*_set2899.size); com.cinchapi.concourse.thrift.TObject _elem2900; for (int _i2901 = 0; _i2901 < _set2899.size; ++_i2901) { _elem2900 = new com.cinchapi.concourse.thrift.TObject(); _elem2900.read(iprot); _val2897.add(_elem2900); } } _val2893.put(_key2896, _val2897); } } struct.success.put(_key2892, _val2893); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class navigateKeyRecords_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("navigateKeyRecords_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecords_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecords_argsTupleSchemeFactory()); } public String key; // required public List records; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORDS((short)2, "records"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeyRecords_args.class, metaDataMap); } public navigateKeyRecords_args() { } public navigateKeyRecords_args( String key, List records, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyRecords_args(navigateKeyRecords_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyRecords_args deepCopy() { return new navigateKeyRecords_args(this); } @Override public void clear() { this.key = null; this.records = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyRecords_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public navigateKeyRecords_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyRecords_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyRecords_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyRecords_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORDS: return isSetRecords(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyRecords_args) return this.equals((navigateKeyRecords_args)that); return false; } public boolean equals(navigateKeyRecords_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyRecords_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeyRecords_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeyRecords_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyRecords_argsStandardScheme getScheme() { return new navigateKeyRecords_argsStandardScheme(); } } private static class navigateKeyRecords_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecords_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2902 = iprot.readListBegin(); struct.records = new ArrayList(_list2902.size); long _elem2903; for (int _i2904 = 0; _i2904 < _list2902.size; ++_i2904) { _elem2903 = iprot.readI64(); struct.records.add(_elem2903); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeyRecords_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2905 : struct.records) { oprot.writeI64(_iter2905); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyRecords_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyRecords_argsTupleScheme getScheme() { return new navigateKeyRecords_argsTupleScheme(); } } private static class navigateKeyRecords_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2906 : struct.records) { oprot.writeI64(_iter2906); } } } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecords_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list2907 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2907.size); long _elem2908; for (int _i2909 = 0; _i2909 < _list2907.size; ++_i2909) { _elem2908 = iprot.readI64(); struct.records.add(_elem2908); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyRecords_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("navigateKeyRecords_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecords_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecords_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(navigateKeyRecords_result.class, metaDataMap); } public navigateKeyRecords_result() { } public navigateKeyRecords_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public navigateKeyRecords_result(navigateKeyRecords_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public navigateKeyRecords_result deepCopy() { return new navigateKeyRecords_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyRecords_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyRecords_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyRecords_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyRecords_result) return this.equals((navigateKeyRecords_result)that); return false; } public boolean equals(navigateKeyRecords_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(navigateKeyRecords_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("navigateKeyRecords_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 navigateKeyRecords_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyRecords_resultStandardScheme getScheme() { return new navigateKeyRecords_resultStandardScheme(); } } private static class navigateKeyRecords_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecords_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.MAP) { { org.apache.thrift.protocol.TMap _map2910 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map2910.size); long _key2911; Set _val2912; for (int _i2913 = 0; _i2913 < _map2910.size; ++_i2913) { _key2911 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set2914 = iprot.readSetBegin(); _val2912 = new LinkedHashSet(2*_set2914.size); com.cinchapi.concourse.thrift.TObject _elem2915; for (int _i2916 = 0; _i2916 < _set2914.size; ++_i2916) { _elem2915 = new com.cinchapi.concourse.thrift.TObject(); _elem2915.read(iprot); _val2912.add(_elem2915); } iprot.readSetEnd(); } struct.success.put(_key2911, _val2912); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, navigateKeyRecords_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter2917 : struct.success.entrySet()) { oprot.writeI64(_iter2917.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter2917.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter2918 : _iter2917.getValue()) { _iter2918.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyRecords_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyRecords_resultTupleScheme getScheme() { return new navigateKeyRecords_resultTupleScheme(); } } private static class navigateKeyRecords_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2919 : struct.success.entrySet()) { oprot.writeI64(_iter2919.getKey()); { oprot.writeI32(_iter2919.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter2920 : _iter2919.getValue()) { _iter2920.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecords_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2921 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map2921.size); long _key2922; Set _val2923; for (int _i2924 = 0; _i2924 < _map2921.size; ++_i2924) { _key2922 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set2925 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2923 = new LinkedHashSet(2*_set2925.size); com.cinchapi.concourse.thrift.TObject _elem2926; for (int _i2927 = 0; _i2927 < _set2925.size; ++_i2927) { _elem2926 = new com.cinchapi.concourse.thrift.TObject(); _elem2926.read(iprot); _val2923.add(_elem2926); } } struct.success.put(_key2922, _val2923); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class navigateKeyRecordsTime_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("navigateKeyRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecordsTime_argsTupleSchemeFactory()); } public String key; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORDS((short)2, "records"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeyRecordsTime_args.class, metaDataMap); } public navigateKeyRecordsTime_args() { } public navigateKeyRecordsTime_args( String key, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyRecordsTime_args(navigateKeyRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyRecordsTime_args deepCopy() { return new navigateKeyRecordsTime_args(this); } @Override public void clear() { this.key = null; this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyRecordsTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public navigateKeyRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public navigateKeyRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyRecordsTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyRecordsTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyRecordsTime_args) return this.equals((navigateKeyRecordsTime_args)that); return false; } public boolean equals(navigateKeyRecordsTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyRecordsTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeyRecordsTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeyRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyRecordsTime_argsStandardScheme getScheme() { return new navigateKeyRecordsTime_argsStandardScheme(); } } private static class navigateKeyRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecordsTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2928 = iprot.readListBegin(); struct.records = new ArrayList(_list2928.size); long _elem2929; for (int _i2930 = 0; _i2930 < _list2928.size; ++_i2930) { _elem2929 = iprot.readI64(); struct.records.add(_elem2929); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeyRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2931 : struct.records) { oprot.writeI64(_iter2931); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyRecordsTime_argsTupleScheme getScheme() { return new navigateKeyRecordsTime_argsTupleScheme(); } } private static class navigateKeyRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2932 : struct.records) { oprot.writeI64(_iter2932); } } } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list2933 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2933.size); long _elem2934; for (int _i2935 = 0; _i2935 < _list2933.size; ++_i2935) { _elem2934 = iprot.readI64(); struct.records.add(_elem2934); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyRecordsTime_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("navigateKeyRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecordsTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(navigateKeyRecordsTime_result.class, metaDataMap); } public navigateKeyRecordsTime_result() { } public navigateKeyRecordsTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public navigateKeyRecordsTime_result(navigateKeyRecordsTime_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public navigateKeyRecordsTime_result deepCopy() { return new navigateKeyRecordsTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyRecordsTime_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyRecordsTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyRecordsTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyRecordsTime_result) return this.equals((navigateKeyRecordsTime_result)that); return false; } public boolean equals(navigateKeyRecordsTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(navigateKeyRecordsTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("navigateKeyRecordsTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 navigateKeyRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyRecordsTime_resultStandardScheme getScheme() { return new navigateKeyRecordsTime_resultStandardScheme(); } } private static class navigateKeyRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecordsTime_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.MAP) { { org.apache.thrift.protocol.TMap _map2936 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map2936.size); long _key2937; Set _val2938; for (int _i2939 = 0; _i2939 < _map2936.size; ++_i2939) { _key2937 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set2940 = iprot.readSetBegin(); _val2938 = new LinkedHashSet(2*_set2940.size); com.cinchapi.concourse.thrift.TObject _elem2941; for (int _i2942 = 0; _i2942 < _set2940.size; ++_i2942) { _elem2941 = new com.cinchapi.concourse.thrift.TObject(); _elem2941.read(iprot); _val2938.add(_elem2941); } iprot.readSetEnd(); } struct.success.put(_key2937, _val2938); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, navigateKeyRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter2943 : struct.success.entrySet()) { oprot.writeI64(_iter2943.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter2943.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter2944 : _iter2943.getValue()) { _iter2944.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyRecordsTime_resultTupleScheme getScheme() { return new navigateKeyRecordsTime_resultTupleScheme(); } } private static class navigateKeyRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2945 : struct.success.entrySet()) { oprot.writeI64(_iter2945.getKey()); { oprot.writeI32(_iter2945.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter2946 : _iter2945.getValue()) { _iter2946.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2947 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map2947.size); long _key2948; Set _val2949; for (int _i2950 = 0; _i2950 < _map2947.size; ++_i2950) { _key2948 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set2951 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2949 = new LinkedHashSet(2*_set2951.size); com.cinchapi.concourse.thrift.TObject _elem2952; for (int _i2953 = 0; _i2953 < _set2951.size; ++_i2953) { _elem2952 = new com.cinchapi.concourse.thrift.TObject(); _elem2952.read(iprot); _val2949.add(_elem2952); } } struct.success.put(_key2948, _val2949); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class navigateKeyRecordsTimestr_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("navigateKeyRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecordsTimestr_argsTupleSchemeFactory()); } public String key; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), RECORDS((short)2, "records"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeyRecordsTimestr_args.class, metaDataMap); } public navigateKeyRecordsTimestr_args() { } public navigateKeyRecordsTimestr_args( String key, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyRecordsTimestr_args(navigateKeyRecordsTimestr_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyRecordsTimestr_args deepCopy() { return new navigateKeyRecordsTimestr_args(this); } @Override public void clear() { this.key = null; this.records = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyRecordsTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public navigateKeyRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public navigateKeyRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyRecordsTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyRecordsTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyRecordsTimestr_args) return this.equals((navigateKeyRecordsTimestr_args)that); return false; } public boolean equals(navigateKeyRecordsTimestr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyRecordsTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeyRecordsTimestr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeyRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyRecordsTimestr_argsStandardScheme getScheme() { return new navigateKeyRecordsTimestr_argsStandardScheme(); } } private static class navigateKeyRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecordsTimestr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2954 = iprot.readListBegin(); struct.records = new ArrayList(_list2954.size); long _elem2955; for (int _i2956 = 0; _i2956 < _list2954.size; ++_i2956) { _elem2955 = iprot.readI64(); struct.records.add(_elem2955); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2957 : struct.records) { oprot.writeI64(_iter2957); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyRecordsTimestr_argsTupleScheme getScheme() { return new navigateKeyRecordsTimestr_argsTupleScheme(); } } private static class navigateKeyRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2958 : struct.records) { oprot.writeI64(_iter2958); } } } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list2959 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2959.size); long _elem2960; for (int _i2961 = 0; _i2961 < _list2959.size; ++_i2961) { _elem2960 = iprot.readI64(); struct.records.add(_elem2960); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyRecordsTimestr_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("navigateKeyRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyRecordsTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(navigateKeyRecordsTimestr_result.class, metaDataMap); } public navigateKeyRecordsTimestr_result() { } public navigateKeyRecordsTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public navigateKeyRecordsTimestr_result(navigateKeyRecordsTimestr_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public navigateKeyRecordsTimestr_result deepCopy() { return new navigateKeyRecordsTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyRecordsTimestr_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyRecordsTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyRecordsTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyRecordsTimestr_result) return this.equals((navigateKeyRecordsTimestr_result)that); return false; } public boolean equals(navigateKeyRecordsTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(navigateKeyRecordsTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("navigateKeyRecordsTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 navigateKeyRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyRecordsTimestr_resultStandardScheme getScheme() { return new navigateKeyRecordsTimestr_resultStandardScheme(); } } private static class navigateKeyRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyRecordsTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map2962 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map2962.size); long _key2963; Set _val2964; for (int _i2965 = 0; _i2965 < _map2962.size; ++_i2965) { _key2963 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set2966 = iprot.readSetBegin(); _val2964 = new LinkedHashSet(2*_set2966.size); com.cinchapi.concourse.thrift.TObject _elem2967; for (int _i2968 = 0; _i2968 < _set2966.size; ++_i2968) { _elem2967 = new com.cinchapi.concourse.thrift.TObject(); _elem2967.read(iprot); _val2964.add(_elem2967); } iprot.readSetEnd(); } struct.success.put(_key2963, _val2964); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, navigateKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter2969 : struct.success.entrySet()) { oprot.writeI64(_iter2969.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter2969.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter2970 : _iter2969.getValue()) { _iter2970.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyRecordsTimestr_resultTupleScheme getScheme() { return new navigateKeyRecordsTimestr_resultTupleScheme(); } } private static class navigateKeyRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter2971 : struct.success.entrySet()) { oprot.writeI64(_iter2971.getKey()); { oprot.writeI32(_iter2971.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter2972 : _iter2971.getValue()) { _iter2972.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map2973 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map2973.size); long _key2974; Set _val2975; for (int _i2976 = 0; _i2976 < _map2973.size; ++_i2976) { _key2974 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set2977 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val2975 = new LinkedHashSet(2*_set2977.size); com.cinchapi.concourse.thrift.TObject _elem2978; for (int _i2979 = 0; _i2979 < _set2977.size; ++_i2979) { _elem2978 = new com.cinchapi.concourse.thrift.TObject(); _elem2978.read(iprot); _val2975.add(_elem2978); } } struct.success.put(_key2974, _val2975); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class navigateKeysRecordsTime_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("navigateKeysRecordsTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecordsTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecordsTime_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORDS((short)2, "records"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeysRecordsTime_args.class, metaDataMap); } public navigateKeysRecordsTime_args() { } public navigateKeysRecordsTime_args( List keys, List records, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysRecordsTime_args(navigateKeysRecordsTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysRecordsTime_args deepCopy() { return new navigateKeysRecordsTime_args(this); } @Override public void clear() { this.keys = null; this.records = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysRecordsTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public navigateKeysRecordsTime_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public long getTimestamp() { return this.timestamp; } public navigateKeysRecordsTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysRecordsTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysRecordsTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysRecordsTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysRecordsTime_args) return this.equals((navigateKeysRecordsTime_args)that); return false; } public boolean equals(navigateKeysRecordsTime_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysRecordsTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeysRecordsTime_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeysRecordsTime_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysRecordsTime_argsStandardScheme getScheme() { return new navigateKeysRecordsTime_argsStandardScheme(); } } private static class navigateKeysRecordsTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecordsTime_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2980 = iprot.readListBegin(); struct.keys = new ArrayList(_list2980.size); String _elem2981; for (int _i2982 = 0; _i2982 < _list2980.size; ++_i2982) { _elem2981 = iprot.readString(); struct.keys.add(_elem2981); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list2983 = iprot.readListBegin(); struct.records = new ArrayList(_list2983.size); long _elem2984; for (int _i2985 = 0; _i2985 < _list2983.size; ++_i2985) { _elem2984 = iprot.readI64(); struct.records.add(_elem2984); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeysRecordsTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter2986 : struct.keys) { oprot.writeString(_iter2986); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter2987 : struct.records) { oprot.writeI64(_iter2987); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysRecordsTime_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysRecordsTime_argsTupleScheme getScheme() { return new navigateKeysRecordsTime_argsTupleScheme(); } } private static class navigateKeysRecordsTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter2988 : struct.keys) { oprot.writeString(_iter2988); } } } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter2989 : struct.records) { oprot.writeI64(_iter2989); } } } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordsTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list2990 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list2990.size); String _elem2991; for (int _i2992 = 0; _i2992 < _list2990.size; ++_i2992) { _elem2991 = iprot.readString(); struct.keys.add(_elem2991); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list2993 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list2993.size); long _elem2994; for (int _i2995 = 0; _i2995 < _list2993.size; ++_i2995) { _elem2994 = iprot.readI64(); struct.records.add(_elem2994); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysRecordsTime_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("navigateKeysRecordsTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecordsTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecordsTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(navigateKeysRecordsTime_result.class, metaDataMap); } public navigateKeysRecordsTime_result() { } public navigateKeysRecordsTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public navigateKeysRecordsTime_result(navigateKeysRecordsTime_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public navigateKeysRecordsTime_result deepCopy() { return new navigateKeysRecordsTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysRecordsTime_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysRecordsTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysRecordsTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysRecordsTime_result) return this.equals((navigateKeysRecordsTime_result)that); return false; } public boolean equals(navigateKeysRecordsTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(navigateKeysRecordsTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("navigateKeysRecordsTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 navigateKeysRecordsTime_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysRecordsTime_resultStandardScheme getScheme() { return new navigateKeysRecordsTime_resultStandardScheme(); } } private static class navigateKeysRecordsTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecordsTime_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.MAP) { { org.apache.thrift.protocol.TMap _map2996 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map2996.size); long _key2997; Map> _val2998; for (int _i2999 = 0; _i2999 < _map2996.size; ++_i2999) { _key2997 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3000 = iprot.readMapBegin(); _val2998 = new LinkedHashMap>(2*_map3000.size); String _key3001; Set _val3002; for (int _i3003 = 0; _i3003 < _map3000.size; ++_i3003) { _key3001 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3004 = iprot.readSetBegin(); _val3002 = new LinkedHashSet(2*_set3004.size); com.cinchapi.concourse.thrift.TObject _elem3005; for (int _i3006 = 0; _i3006 < _set3004.size; ++_i3006) { _elem3005 = new com.cinchapi.concourse.thrift.TObject(); _elem3005.read(iprot); _val3002.add(_elem3005); } iprot.readSetEnd(); } _val2998.put(_key3001, _val3002); } iprot.readMapEnd(); } struct.success.put(_key2997, _val2998); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, navigateKeysRecordsTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter3007 : struct.success.entrySet()) { oprot.writeI64(_iter3007.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter3007.getValue().size())); for (Map.Entry> _iter3008 : _iter3007.getValue().entrySet()) { oprot.writeString(_iter3008.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter3008.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3009 : _iter3008.getValue()) { _iter3009.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysRecordsTime_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysRecordsTime_resultTupleScheme getScheme() { return new navigateKeysRecordsTime_resultTupleScheme(); } } private static class navigateKeysRecordsTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter3010 : struct.success.entrySet()) { oprot.writeI64(_iter3010.getKey()); { oprot.writeI32(_iter3010.getValue().size()); for (Map.Entry> _iter3011 : _iter3010.getValue().entrySet()) { oprot.writeString(_iter3011.getKey()); { oprot.writeI32(_iter3011.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3012 : _iter3011.getValue()) { _iter3012.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordsTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3013 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map3013.size); long _key3014; Map> _val3015; for (int _i3016 = 0; _i3016 < _map3013.size; ++_i3016) { _key3014 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3017 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val3015 = new LinkedHashMap>(2*_map3017.size); String _key3018; Set _val3019; for (int _i3020 = 0; _i3020 < _map3017.size; ++_i3020) { _key3018 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3021 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3019 = new LinkedHashSet(2*_set3021.size); com.cinchapi.concourse.thrift.TObject _elem3022; for (int _i3023 = 0; _i3023 < _set3021.size; ++_i3023) { _elem3022 = new com.cinchapi.concourse.thrift.TObject(); _elem3022.read(iprot); _val3019.add(_elem3022); } } _val3015.put(_key3018, _val3019); } } struct.success.put(_key3014, _val3015); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class navigateKeysRecordsTimestr_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("navigateKeysRecordsTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField RECORDS_FIELD_DESC = new org.apache.thrift.protocol.TField("records", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecordsTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecordsTimestr_argsTupleSchemeFactory()); } public List keys; // required public List records; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), RECORDS((short)2, "records"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // RECORDS return RECORDS; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RECORDS, new org.apache.thrift.meta_data.FieldMetaData("records", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeysRecordsTimestr_args.class, metaDataMap); } public navigateKeysRecordsTimestr_args() { } public navigateKeysRecordsTimestr_args( List keys, List records, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.records = records; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysRecordsTimestr_args(navigateKeysRecordsTimestr_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetRecords()) { List __this__records = new ArrayList(other.records); this.records = __this__records; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysRecordsTimestr_args deepCopy() { return new navigateKeysRecordsTimestr_args(this); } @Override public void clear() { this.keys = null; this.records = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysRecordsTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public int getRecordsSize() { return (this.records == null) ? 0 : this.records.size(); } public java.util.Iterator getRecordsIterator() { return (this.records == null) ? null : this.records.iterator(); } public void addToRecords(long elem) { if (this.records == null) { this.records = new ArrayList(); } this.records.add(elem); } public List getRecords() { return this.records; } public navigateKeysRecordsTimestr_args setRecords(List records) { this.records = records; return this; } public void unsetRecords() { this.records = null; } /** Returns true if field records is set (has been assigned a value) and false otherwise */ public boolean isSetRecords() { return this.records != null; } public void setRecordsIsSet(boolean value) { if (!value) { this.records = null; } } public String getTimestamp() { return this.timestamp; } public navigateKeysRecordsTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysRecordsTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysRecordsTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysRecordsTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case RECORDS: if (value == null) { unsetRecords(); } else { setRecords((List)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case RECORDS: return getRecords(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case RECORDS: return isSetRecords(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysRecordsTimestr_args) return this.equals((navigateKeysRecordsTimestr_args)that); return false; } public boolean equals(navigateKeysRecordsTimestr_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_records = true && this.isSetRecords(); boolean that_present_records = true && that.isSetRecords(); if (this_present_records || that_present_records) { if (!(this_present_records && that_present_records)) return false; if (!this.records.equals(that.records)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_records = true && (isSetRecords()); list.add(present_records); if (present_records) list.add(records); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysRecordsTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRecords()).compareTo(other.isSetRecords()); if (lastComparison != 0) { return lastComparison; } if (isSetRecords()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.records, other.records); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeysRecordsTimestr_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("records:"); if (this.records == null) { sb.append("null"); } else { sb.append(this.records); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeysRecordsTimestr_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysRecordsTimestr_argsStandardScheme getScheme() { return new navigateKeysRecordsTimestr_argsStandardScheme(); } } private static class navigateKeysRecordsTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecordsTimestr_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list3024 = iprot.readListBegin(); struct.keys = new ArrayList(_list3024.size); String _elem3025; for (int _i3026 = 0; _i3026 < _list3024.size; ++_i3026) { _elem3025 = iprot.readString(); struct.keys.add(_elem3025); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // RECORDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list3027 = iprot.readListBegin(); struct.records = new ArrayList(_list3027.size); long _elem3028; for (int _i3029 = 0; _i3029 < _list3027.size; ++_i3029) { _elem3028 = iprot.readI64(); struct.records.add(_elem3028); } iprot.readListEnd(); } struct.setRecordsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter3030 : struct.keys) { oprot.writeString(_iter3030); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.records != null) { oprot.writeFieldBegin(RECORDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.records.size())); for (long _iter3031 : struct.records) { oprot.writeI64(_iter3031); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysRecordsTimestr_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysRecordsTimestr_argsTupleScheme getScheme() { return new navigateKeysRecordsTimestr_argsTupleScheme(); } } private static class navigateKeysRecordsTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetRecords()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter3032 : struct.keys) { oprot.writeString(_iter3032); } } } if (struct.isSetRecords()) { { oprot.writeI32(struct.records.size()); for (long _iter3033 : struct.records) { oprot.writeI64(_iter3033); } } } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordsTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list3034 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list3034.size); String _elem3035; for (int _i3036 = 0; _i3036 < _list3034.size; ++_i3036) { _elem3035 = iprot.readString(); struct.keys.add(_elem3035); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list3037 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.records = new ArrayList(_list3037.size); long _elem3038; for (int _i3039 = 0; _i3039 < _list3037.size; ++_i3039) { _elem3038 = iprot.readI64(); struct.records.add(_elem3038); } } struct.setRecordsIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysRecordsTimestr_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("navigateKeysRecordsTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysRecordsTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysRecordsTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(navigateKeysRecordsTimestr_result.class, metaDataMap); } public navigateKeysRecordsTimestr_result() { } public navigateKeysRecordsTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public navigateKeysRecordsTimestr_result(navigateKeysRecordsTimestr_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public navigateKeysRecordsTimestr_result deepCopy() { return new navigateKeysRecordsTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysRecordsTimestr_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysRecordsTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysRecordsTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysRecordsTimestr_result) return this.equals((navigateKeysRecordsTimestr_result)that); return false; } public boolean equals(navigateKeysRecordsTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(navigateKeysRecordsTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("navigateKeysRecordsTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 navigateKeysRecordsTimestr_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysRecordsTimestr_resultStandardScheme getScheme() { return new navigateKeysRecordsTimestr_resultStandardScheme(); } } private static class navigateKeysRecordsTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysRecordsTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map3040 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map3040.size); long _key3041; Map> _val3042; for (int _i3043 = 0; _i3043 < _map3040.size; ++_i3043) { _key3041 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3044 = iprot.readMapBegin(); _val3042 = new LinkedHashMap>(2*_map3044.size); String _key3045; Set _val3046; for (int _i3047 = 0; _i3047 < _map3044.size; ++_i3047) { _key3045 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3048 = iprot.readSetBegin(); _val3046 = new LinkedHashSet(2*_set3048.size); com.cinchapi.concourse.thrift.TObject _elem3049; for (int _i3050 = 0; _i3050 < _set3048.size; ++_i3050) { _elem3049 = new com.cinchapi.concourse.thrift.TObject(); _elem3049.read(iprot); _val3046.add(_elem3049); } iprot.readSetEnd(); } _val3042.put(_key3045, _val3046); } iprot.readMapEnd(); } struct.success.put(_key3041, _val3042); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, navigateKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter3051 : struct.success.entrySet()) { oprot.writeI64(_iter3051.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter3051.getValue().size())); for (Map.Entry> _iter3052 : _iter3051.getValue().entrySet()) { oprot.writeString(_iter3052.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter3052.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3053 : _iter3052.getValue()) { _iter3053.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysRecordsTimestr_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysRecordsTimestr_resultTupleScheme getScheme() { return new navigateKeysRecordsTimestr_resultTupleScheme(); } } private static class navigateKeysRecordsTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter3054 : struct.success.entrySet()) { oprot.writeI64(_iter3054.getKey()); { oprot.writeI32(_iter3054.getValue().size()); for (Map.Entry> _iter3055 : _iter3054.getValue().entrySet()) { oprot.writeString(_iter3055.getKey()); { oprot.writeI32(_iter3055.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3056 : _iter3055.getValue()) { _iter3056.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysRecordsTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3057 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map3057.size); long _key3058; Map> _val3059; for (int _i3060 = 0; _i3060 < _map3057.size; ++_i3060) { _key3058 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3061 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val3059 = new LinkedHashMap>(2*_map3061.size); String _key3062; Set _val3063; for (int _i3064 = 0; _i3064 < _map3061.size; ++_i3064) { _key3062 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3065 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3063 = new LinkedHashSet(2*_set3065.size); com.cinchapi.concourse.thrift.TObject _elem3066; for (int _i3067 = 0; _i3067 < _set3065.size; ++_i3067) { _elem3066 = new com.cinchapi.concourse.thrift.TObject(); _elem3066.read(iprot); _val3063.add(_elem3066); } } _val3059.put(_key3062, _val3063); } } struct.success.put(_key3058, _val3059); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class navigateKeyCcl_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("navigateKeyCcl_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCcl_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CCL((short)2, "ccl"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CCL return CCL; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeyCcl_args.class, metaDataMap); } public navigateKeyCcl_args() { } public navigateKeyCcl_args( String key, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyCcl_args(navigateKeyCcl_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetCcl()) { this.ccl = other.ccl; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyCcl_args deepCopy() { return new navigateKeyCcl_args(this); } @Override public void clear() { this.key = null; this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyCcl_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public String getCcl() { return this.ccl; } public navigateKeyCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyCcl_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyCcl_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyCcl_args) return this.equals((navigateKeyCcl_args)that); return false; } public boolean equals(navigateKeyCcl_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyCcl_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeyCcl_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeyCcl_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyCcl_argsStandardScheme getScheme() { return new navigateKeyCcl_argsStandardScheme(); } } private static class navigateKeyCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCcl_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeyCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCcl_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyCcl_argsTupleScheme getScheme() { return new navigateKeyCcl_argsTupleScheme(); } } private static class navigateKeyCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyCcl_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("navigateKeyCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCcl_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(navigateKeyCcl_result.class, metaDataMap); } public navigateKeyCcl_result() { } public navigateKeyCcl_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public navigateKeyCcl_result(navigateKeyCcl_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public navigateKeyCcl_result deepCopy() { return new navigateKeyCcl_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyCcl_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyCcl_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyCcl_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeyCcl_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyCcl_result) return this.equals((navigateKeyCcl_result)that); return false; } public boolean equals(navigateKeyCcl_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(navigateKeyCcl_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("navigateKeyCcl_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 navigateKeyCcl_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyCcl_resultStandardScheme getScheme() { return new navigateKeyCcl_resultStandardScheme(); } } private static class navigateKeyCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCcl_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.MAP) { { org.apache.thrift.protocol.TMap _map3068 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map3068.size); long _key3069; Set _val3070; for (int _i3071 = 0; _i3071 < _map3068.size; ++_i3071) { _key3069 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3072 = iprot.readSetBegin(); _val3070 = new LinkedHashSet(2*_set3072.size); com.cinchapi.concourse.thrift.TObject _elem3073; for (int _i3074 = 0; _i3074 < _set3072.size; ++_i3074) { _elem3073 = new com.cinchapi.concourse.thrift.TObject(); _elem3073.read(iprot); _val3070.add(_elem3073); } iprot.readSetEnd(); } struct.success.put(_key3069, _val3070); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, navigateKeyCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter3075 : struct.success.entrySet()) { oprot.writeI64(_iter3075.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter3075.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3076 : _iter3075.getValue()) { _iter3076.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCcl_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyCcl_resultTupleScheme getScheme() { return new navigateKeyCcl_resultTupleScheme(); } } private static class navigateKeyCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter3077 : struct.success.entrySet()) { oprot.writeI64(_iter3077.getKey()); { oprot.writeI32(_iter3077.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3078 : _iter3077.getValue()) { _iter3078.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3079 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map3079.size); long _key3080; Set _val3081; for (int _i3082 = 0; _i3082 < _map3079.size; ++_i3082) { _key3080 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3083 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3081 = new LinkedHashSet(2*_set3083.size); com.cinchapi.concourse.thrift.TObject _elem3084; for (int _i3085 = 0; _i3085 < _set3083.size; ++_i3085) { _elem3084 = new com.cinchapi.concourse.thrift.TObject(); _elem3084.read(iprot); _val3081.add(_elem3084); } } struct.success.put(_key3080, _val3081); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeyCclTime_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("navigateKeyCclTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCclTime_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CCL((short)2, "ccl"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeyCclTime_args.class, metaDataMap); } public navigateKeyCclTime_args() { } public navigateKeyCclTime_args( String key, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyCclTime_args(navigateKeyCclTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetCcl()) { this.ccl = other.ccl; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyCclTime_args deepCopy() { return new navigateKeyCclTime_args(this); } @Override public void clear() { this.key = null; this.ccl = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyCclTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public String getCcl() { return this.ccl; } public navigateKeyCclTime_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public long getTimestamp() { return this.timestamp; } public navigateKeyCclTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyCclTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyCclTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyCclTime_args) return this.equals((navigateKeyCclTime_args)that); return false; } public boolean equals(navigateKeyCclTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyCclTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeyCclTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeyCclTime_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyCclTime_argsStandardScheme getScheme() { return new navigateKeyCclTime_argsStandardScheme(); } } private static class navigateKeyCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCclTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeyCclTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCclTime_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyCclTime_argsTupleScheme getScheme() { return new navigateKeyCclTime_argsTupleScheme(); } } private static class navigateKeyCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyCclTime_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("navigateKeyCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCclTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(navigateKeyCclTime_result.class, metaDataMap); } public navigateKeyCclTime_result() { } public navigateKeyCclTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public navigateKeyCclTime_result(navigateKeyCclTime_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public navigateKeyCclTime_result deepCopy() { return new navigateKeyCclTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyCclTime_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyCclTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyCclTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeyCclTime_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyCclTime_result) return this.equals((navigateKeyCclTime_result)that); return false; } public boolean equals(navigateKeyCclTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(navigateKeyCclTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("navigateKeyCclTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 navigateKeyCclTime_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyCclTime_resultStandardScheme getScheme() { return new navigateKeyCclTime_resultStandardScheme(); } } private static class navigateKeyCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCclTime_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.MAP) { { org.apache.thrift.protocol.TMap _map3086 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map3086.size); long _key3087; Set _val3088; for (int _i3089 = 0; _i3089 < _map3086.size; ++_i3089) { _key3087 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3090 = iprot.readSetBegin(); _val3088 = new LinkedHashSet(2*_set3090.size); com.cinchapi.concourse.thrift.TObject _elem3091; for (int _i3092 = 0; _i3092 < _set3090.size; ++_i3092) { _elem3091 = new com.cinchapi.concourse.thrift.TObject(); _elem3091.read(iprot); _val3088.add(_elem3091); } iprot.readSetEnd(); } struct.success.put(_key3087, _val3088); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, navigateKeyCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter3093 : struct.success.entrySet()) { oprot.writeI64(_iter3093.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter3093.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3094 : _iter3093.getValue()) { _iter3094.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCclTime_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyCclTime_resultTupleScheme getScheme() { return new navigateKeyCclTime_resultTupleScheme(); } } private static class navigateKeyCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter3095 : struct.success.entrySet()) { oprot.writeI64(_iter3095.getKey()); { oprot.writeI32(_iter3095.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3096 : _iter3095.getValue()) { _iter3096.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3097 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map3097.size); long _key3098; Set _val3099; for (int _i3100 = 0; _i3100 < _map3097.size; ++_i3100) { _key3098 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3101 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3099 = new LinkedHashSet(2*_set3101.size); com.cinchapi.concourse.thrift.TObject _elem3102; for (int _i3103 = 0; _i3103 < _set3101.size; ++_i3103) { _elem3102 = new com.cinchapi.concourse.thrift.TObject(); _elem3102.read(iprot); _val3099.add(_elem3102); } } struct.success.put(_key3098, _val3099); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeyCclTimestr_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("navigateKeyCclTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCclTimestr_argsTupleSchemeFactory()); } public String key; // required public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CCL((short)2, "ccl"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeyCclTimestr_args.class, metaDataMap); } public navigateKeyCclTimestr_args() { } public navigateKeyCclTimestr_args( String key, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyCclTimestr_args(navigateKeyCclTimestr_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetCcl()) { this.ccl = other.ccl; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyCclTimestr_args deepCopy() { return new navigateKeyCclTimestr_args(this); } @Override public void clear() { this.key = null; this.ccl = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyCclTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public String getCcl() { return this.ccl; } public navigateKeyCclTimestr_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public String getTimestamp() { return this.timestamp; } public navigateKeyCclTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyCclTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyCclTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyCclTimestr_args) return this.equals((navigateKeyCclTimestr_args)that); return false; } public boolean equals(navigateKeyCclTimestr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyCclTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeyCclTimestr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeyCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyCclTimestr_argsStandardScheme getScheme() { return new navigateKeyCclTimestr_argsStandardScheme(); } } private static class navigateKeyCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCclTimestr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeyCclTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyCclTimestr_argsTupleScheme getScheme() { return new navigateKeyCclTimestr_argsTupleScheme(); } } private static class navigateKeyCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyCclTimestr_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("navigateKeyCclTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCclTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(navigateKeyCclTimestr_result.class, metaDataMap); } public navigateKeyCclTimestr_result() { } public navigateKeyCclTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public navigateKeyCclTimestr_result(navigateKeyCclTimestr_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public navigateKeyCclTimestr_result deepCopy() { return new navigateKeyCclTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyCclTimestr_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyCclTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyCclTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeyCclTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyCclTimestr_result) return this.equals((navigateKeyCclTimestr_result)that); return false; } public boolean equals(navigateKeyCclTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(navigateKeyCclTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("navigateKeyCclTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 navigateKeyCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyCclTimestr_resultStandardScheme getScheme() { return new navigateKeyCclTimestr_resultStandardScheme(); } } private static class navigateKeyCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCclTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map3104 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map3104.size); long _key3105; Set _val3106; for (int _i3107 = 0; _i3107 < _map3104.size; ++_i3107) { _key3105 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3108 = iprot.readSetBegin(); _val3106 = new LinkedHashSet(2*_set3108.size); com.cinchapi.concourse.thrift.TObject _elem3109; for (int _i3110 = 0; _i3110 < _set3108.size; ++_i3110) { _elem3109 = new com.cinchapi.concourse.thrift.TObject(); _elem3109.read(iprot); _val3106.add(_elem3109); } iprot.readSetEnd(); } struct.success.put(_key3105, _val3106); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, navigateKeyCclTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter3111 : struct.success.entrySet()) { oprot.writeI64(_iter3111.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter3111.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3112 : _iter3111.getValue()) { _iter3112.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyCclTimestr_resultTupleScheme getScheme() { return new navigateKeyCclTimestr_resultTupleScheme(); } } private static class navigateKeyCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter3113 : struct.success.entrySet()) { oprot.writeI64(_iter3113.getKey()); { oprot.writeI32(_iter3113.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3114 : _iter3113.getValue()) { _iter3114.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3115 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map3115.size); long _key3116; Set _val3117; for (int _i3118 = 0; _i3118 < _map3115.size; ++_i3118) { _key3116 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3119 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3117 = new LinkedHashSet(2*_set3119.size); com.cinchapi.concourse.thrift.TObject _elem3120; for (int _i3121 = 0; _i3121 < _set3119.size; ++_i3121) { _elem3120 = new com.cinchapi.concourse.thrift.TObject(); _elem3120.read(iprot); _val3117.add(_elem3120); } } struct.success.put(_key3116, _val3117); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeysCcl_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("navigateKeysCcl_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCcl_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCcl_argsTupleSchemeFactory()); } public List keys; // required public String ccl; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), CCL((short)2, "ccl"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // CCL return CCL; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeysCcl_args.class, metaDataMap); } public navigateKeysCcl_args() { } public navigateKeysCcl_args( List keys, String ccl, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.ccl = ccl; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysCcl_args(navigateKeysCcl_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetCcl()) { this.ccl = other.ccl; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysCcl_args deepCopy() { return new navigateKeysCcl_args(this); } @Override public void clear() { this.keys = null; this.ccl = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysCcl_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public String getCcl() { return this.ccl; } public navigateKeysCcl_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysCcl_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysCcl_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysCcl_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CCL: return getCcl(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case CCL: return isSetCcl(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysCcl_args) return this.equals((navigateKeysCcl_args)that); return false; } public boolean equals(navigateKeysCcl_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysCcl_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeysCcl_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeysCcl_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysCcl_argsStandardScheme getScheme() { return new navigateKeysCcl_argsStandardScheme(); } } private static class navigateKeysCcl_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCcl_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list3122 = iprot.readListBegin(); struct.keys = new ArrayList(_list3122.size); String _elem3123; for (int _i3124 = 0; _i3124 < _list3122.size; ++_i3124) { _elem3123 = iprot.readString(); struct.keys.add(_elem3123); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeysCcl_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter3125 : struct.keys) { oprot.writeString(_iter3125); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCcl_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysCcl_argsTupleScheme getScheme() { return new navigateKeysCcl_argsTupleScheme(); } } private static class navigateKeysCcl_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter3126 : struct.keys) { oprot.writeString(_iter3126); } } } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCcl_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list3127 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list3127.size); String _elem3128; for (int _i3129 = 0; _i3129 < _list3127.size; ++_i3129) { _elem3128 = iprot.readString(); struct.keys.add(_elem3128); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysCcl_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("navigateKeysCcl_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCcl_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCcl_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(navigateKeysCcl_result.class, metaDataMap); } public navigateKeysCcl_result() { } public navigateKeysCcl_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public navigateKeysCcl_result(navigateKeysCcl_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public navigateKeysCcl_result deepCopy() { return new navigateKeysCcl_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysCcl_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysCcl_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysCcl_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeysCcl_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysCcl_result) return this.equals((navigateKeysCcl_result)that); return false; } public boolean equals(navigateKeysCcl_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(navigateKeysCcl_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("navigateKeysCcl_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 navigateKeysCcl_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysCcl_resultStandardScheme getScheme() { return new navigateKeysCcl_resultStandardScheme(); } } private static class navigateKeysCcl_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCcl_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.MAP) { { org.apache.thrift.protocol.TMap _map3130 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map3130.size); long _key3131; Map> _val3132; for (int _i3133 = 0; _i3133 < _map3130.size; ++_i3133) { _key3131 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3134 = iprot.readMapBegin(); _val3132 = new LinkedHashMap>(2*_map3134.size); String _key3135; Set _val3136; for (int _i3137 = 0; _i3137 < _map3134.size; ++_i3137) { _key3135 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3138 = iprot.readSetBegin(); _val3136 = new LinkedHashSet(2*_set3138.size); com.cinchapi.concourse.thrift.TObject _elem3139; for (int _i3140 = 0; _i3140 < _set3138.size; ++_i3140) { _elem3139 = new com.cinchapi.concourse.thrift.TObject(); _elem3139.read(iprot); _val3136.add(_elem3139); } iprot.readSetEnd(); } _val3132.put(_key3135, _val3136); } iprot.readMapEnd(); } struct.success.put(_key3131, _val3132); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, navigateKeysCcl_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter3141 : struct.success.entrySet()) { oprot.writeI64(_iter3141.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter3141.getValue().size())); for (Map.Entry> _iter3142 : _iter3141.getValue().entrySet()) { oprot.writeString(_iter3142.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter3142.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3143 : _iter3142.getValue()) { _iter3143.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCcl_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysCcl_resultTupleScheme getScheme() { return new navigateKeysCcl_resultTupleScheme(); } } private static class navigateKeysCcl_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter3144 : struct.success.entrySet()) { oprot.writeI64(_iter3144.getKey()); { oprot.writeI32(_iter3144.getValue().size()); for (Map.Entry> _iter3145 : _iter3144.getValue().entrySet()) { oprot.writeString(_iter3145.getKey()); { oprot.writeI32(_iter3145.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3146 : _iter3145.getValue()) { _iter3146.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCcl_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3147 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map3147.size); long _key3148; Map> _val3149; for (int _i3150 = 0; _i3150 < _map3147.size; ++_i3150) { _key3148 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3151 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val3149 = new LinkedHashMap>(2*_map3151.size); String _key3152; Set _val3153; for (int _i3154 = 0; _i3154 < _map3151.size; ++_i3154) { _key3152 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3155 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3153 = new LinkedHashSet(2*_set3155.size); com.cinchapi.concourse.thrift.TObject _elem3156; for (int _i3157 = 0; _i3157 < _set3155.size; ++_i3157) { _elem3156 = new com.cinchapi.concourse.thrift.TObject(); _elem3156.read(iprot); _val3153.add(_elem3156); } } _val3149.put(_key3152, _val3153); } } struct.success.put(_key3148, _val3149); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeysCclTime_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("navigateKeysCclTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCclTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCclTime_argsTupleSchemeFactory()); } public List keys; // required public String ccl; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), CCL((short)2, "ccl"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeysCclTime_args.class, metaDataMap); } public navigateKeysCclTime_args() { } public navigateKeysCclTime_args( List keys, String ccl, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.ccl = ccl; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysCclTime_args(navigateKeysCclTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetCcl()) { this.ccl = other.ccl; } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysCclTime_args deepCopy() { return new navigateKeysCclTime_args(this); } @Override public void clear() { this.keys = null; this.ccl = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysCclTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public String getCcl() { return this.ccl; } public navigateKeysCclTime_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public long getTimestamp() { return this.timestamp; } public navigateKeysCclTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysCclTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysCclTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysCclTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysCclTime_args) return this.equals((navigateKeysCclTime_args)that); return false; } public boolean equals(navigateKeysCclTime_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysCclTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeysCclTime_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeysCclTime_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysCclTime_argsStandardScheme getScheme() { return new navigateKeysCclTime_argsStandardScheme(); } } private static class navigateKeysCclTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCclTime_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list3158 = iprot.readListBegin(); struct.keys = new ArrayList(_list3158.size); String _elem3159; for (int _i3160 = 0; _i3160 < _list3158.size; ++_i3160) { _elem3159 = iprot.readString(); struct.keys.add(_elem3159); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeysCclTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter3161 : struct.keys) { oprot.writeString(_iter3161); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCclTime_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysCclTime_argsTupleScheme getScheme() { return new navigateKeysCclTime_argsTupleScheme(); } } private static class navigateKeysCclTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter3162 : struct.keys) { oprot.writeString(_iter3162); } } } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCclTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list3163 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list3163.size); String _elem3164; for (int _i3165 = 0; _i3165 < _list3163.size; ++_i3165) { _elem3164 = iprot.readString(); struct.keys.add(_elem3164); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysCclTime_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("navigateKeysCclTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCclTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCclTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(navigateKeysCclTime_result.class, metaDataMap); } public navigateKeysCclTime_result() { } public navigateKeysCclTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public navigateKeysCclTime_result(navigateKeysCclTime_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public navigateKeysCclTime_result deepCopy() { return new navigateKeysCclTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysCclTime_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysCclTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysCclTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeysCclTime_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysCclTime_result) return this.equals((navigateKeysCclTime_result)that); return false; } public boolean equals(navigateKeysCclTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(navigateKeysCclTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("navigateKeysCclTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 navigateKeysCclTime_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysCclTime_resultStandardScheme getScheme() { return new navigateKeysCclTime_resultStandardScheme(); } } private static class navigateKeysCclTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCclTime_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.MAP) { { org.apache.thrift.protocol.TMap _map3166 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map3166.size); long _key3167; Map> _val3168; for (int _i3169 = 0; _i3169 < _map3166.size; ++_i3169) { _key3167 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3170 = iprot.readMapBegin(); _val3168 = new LinkedHashMap>(2*_map3170.size); String _key3171; Set _val3172; for (int _i3173 = 0; _i3173 < _map3170.size; ++_i3173) { _key3171 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3174 = iprot.readSetBegin(); _val3172 = new LinkedHashSet(2*_set3174.size); com.cinchapi.concourse.thrift.TObject _elem3175; for (int _i3176 = 0; _i3176 < _set3174.size; ++_i3176) { _elem3175 = new com.cinchapi.concourse.thrift.TObject(); _elem3175.read(iprot); _val3172.add(_elem3175); } iprot.readSetEnd(); } _val3168.put(_key3171, _val3172); } iprot.readMapEnd(); } struct.success.put(_key3167, _val3168); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, navigateKeysCclTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter3177 : struct.success.entrySet()) { oprot.writeI64(_iter3177.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter3177.getValue().size())); for (Map.Entry> _iter3178 : _iter3177.getValue().entrySet()) { oprot.writeString(_iter3178.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter3178.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3179 : _iter3178.getValue()) { _iter3179.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCclTime_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysCclTime_resultTupleScheme getScheme() { return new navigateKeysCclTime_resultTupleScheme(); } } private static class navigateKeysCclTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter3180 : struct.success.entrySet()) { oprot.writeI64(_iter3180.getKey()); { oprot.writeI32(_iter3180.getValue().size()); for (Map.Entry> _iter3181 : _iter3180.getValue().entrySet()) { oprot.writeString(_iter3181.getKey()); { oprot.writeI32(_iter3181.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3182 : _iter3181.getValue()) { _iter3182.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCclTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3183 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map3183.size); long _key3184; Map> _val3185; for (int _i3186 = 0; _i3186 < _map3183.size; ++_i3186) { _key3184 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3187 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val3185 = new LinkedHashMap>(2*_map3187.size); String _key3188; Set _val3189; for (int _i3190 = 0; _i3190 < _map3187.size; ++_i3190) { _key3188 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3191 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3189 = new LinkedHashSet(2*_set3191.size); com.cinchapi.concourse.thrift.TObject _elem3192; for (int _i3193 = 0; _i3193 < _set3191.size; ++_i3193) { _elem3192 = new com.cinchapi.concourse.thrift.TObject(); _elem3192.read(iprot); _val3189.add(_elem3192); } } _val3185.put(_key3188, _val3189); } } struct.success.put(_key3184, _val3185); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeysCclTimestr_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("navigateKeysCclTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CCL_FIELD_DESC = new org.apache.thrift.protocol.TField("ccl", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCclTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCclTimestr_argsTupleSchemeFactory()); } public List keys; // required public String ccl; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), CCL((short)2, "ccl"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // CCL return CCL; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CCL, new org.apache.thrift.meta_data.FieldMetaData("ccl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeysCclTimestr_args.class, metaDataMap); } public navigateKeysCclTimestr_args() { } public navigateKeysCclTimestr_args( List keys, String ccl, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.ccl = ccl; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysCclTimestr_args(navigateKeysCclTimestr_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetCcl()) { this.ccl = other.ccl; } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysCclTimestr_args deepCopy() { return new navigateKeysCclTimestr_args(this); } @Override public void clear() { this.keys = null; this.ccl = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysCclTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public String getCcl() { return this.ccl; } public navigateKeysCclTimestr_args setCcl(String ccl) { this.ccl = ccl; return this; } public void unsetCcl() { this.ccl = null; } /** Returns true if field ccl is set (has been assigned a value) and false otherwise */ public boolean isSetCcl() { return this.ccl != null; } public void setCclIsSet(boolean value) { if (!value) { this.ccl = null; } } public String getTimestamp() { return this.timestamp; } public navigateKeysCclTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysCclTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysCclTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysCclTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case CCL: if (value == null) { unsetCcl(); } else { setCcl((String)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CCL: return getCcl(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case CCL: return isSetCcl(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysCclTimestr_args) return this.equals((navigateKeysCclTimestr_args)that); return false; } public boolean equals(navigateKeysCclTimestr_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_ccl = true && this.isSetCcl(); boolean that_present_ccl = true && that.isSetCcl(); if (this_present_ccl || that_present_ccl) { if (!(this_present_ccl && that_present_ccl)) return false; if (!this.ccl.equals(that.ccl)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_ccl = true && (isSetCcl()); list.add(present_ccl); if (present_ccl) list.add(ccl); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysCclTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCcl()).compareTo(other.isSetCcl()); if (lastComparison != 0) { return lastComparison; } if (isSetCcl()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ccl, other.ccl); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeysCclTimestr_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("ccl:"); if (this.ccl == null) { sb.append("null"); } else { sb.append(this.ccl); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeysCclTimestr_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysCclTimestr_argsStandardScheme getScheme() { return new navigateKeysCclTimestr_argsStandardScheme(); } } private static class navigateKeysCclTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCclTimestr_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list3194 = iprot.readListBegin(); struct.keys = new ArrayList(_list3194.size); String _elem3195; for (int _i3196 = 0; _i3196 < _list3194.size; ++_i3196) { _elem3195 = iprot.readString(); struct.keys.add(_elem3195); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CCL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeysCclTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter3197 : struct.keys) { oprot.writeString(_iter3197); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.ccl != null) { oprot.writeFieldBegin(CCL_FIELD_DESC); oprot.writeString(struct.ccl); oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCclTimestr_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysCclTimestr_argsTupleScheme getScheme() { return new navigateKeysCclTimestr_argsTupleScheme(); } } private static class navigateKeysCclTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetCcl()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter3198 : struct.keys) { oprot.writeString(_iter3198); } } } if (struct.isSetCcl()) { oprot.writeString(struct.ccl); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCclTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list3199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list3199.size); String _elem3200; for (int _i3201 = 0; _i3201 < _list3199.size; ++_i3201) { _elem3200 = iprot.readString(); struct.keys.add(_elem3200); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.ccl = iprot.readString(); struct.setCclIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysCclTimestr_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("navigateKeysCclTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCclTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCclTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(navigateKeysCclTimestr_result.class, metaDataMap); } public navigateKeysCclTimestr_result() { } public navigateKeysCclTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public navigateKeysCclTimestr_result(navigateKeysCclTimestr_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public navigateKeysCclTimestr_result deepCopy() { return new navigateKeysCclTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysCclTimestr_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysCclTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysCclTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeysCclTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysCclTimestr_result) return this.equals((navigateKeysCclTimestr_result)that); return false; } public boolean equals(navigateKeysCclTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(navigateKeysCclTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("navigateKeysCclTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 navigateKeysCclTimestr_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysCclTimestr_resultStandardScheme getScheme() { return new navigateKeysCclTimestr_resultStandardScheme(); } } private static class navigateKeysCclTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCclTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map3202 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map3202.size); long _key3203; Map> _val3204; for (int _i3205 = 0; _i3205 < _map3202.size; ++_i3205) { _key3203 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3206 = iprot.readMapBegin(); _val3204 = new LinkedHashMap>(2*_map3206.size); String _key3207; Set _val3208; for (int _i3209 = 0; _i3209 < _map3206.size; ++_i3209) { _key3207 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3210 = iprot.readSetBegin(); _val3208 = new LinkedHashSet(2*_set3210.size); com.cinchapi.concourse.thrift.TObject _elem3211; for (int _i3212 = 0; _i3212 < _set3210.size; ++_i3212) { _elem3211 = new com.cinchapi.concourse.thrift.TObject(); _elem3211.read(iprot); _val3208.add(_elem3211); } iprot.readSetEnd(); } _val3204.put(_key3207, _val3208); } iprot.readMapEnd(); } struct.success.put(_key3203, _val3204); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, navigateKeysCclTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter3213 : struct.success.entrySet()) { oprot.writeI64(_iter3213.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter3213.getValue().size())); for (Map.Entry> _iter3214 : _iter3213.getValue().entrySet()) { oprot.writeString(_iter3214.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter3214.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3215 : _iter3214.getValue()) { _iter3215.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCclTimestr_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysCclTimestr_resultTupleScheme getScheme() { return new navigateKeysCclTimestr_resultTupleScheme(); } } private static class navigateKeysCclTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter3216 : struct.success.entrySet()) { oprot.writeI64(_iter3216.getKey()); { oprot.writeI32(_iter3216.getValue().size()); for (Map.Entry> _iter3217 : _iter3216.getValue().entrySet()) { oprot.writeString(_iter3217.getKey()); { oprot.writeI32(_iter3217.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3218 : _iter3217.getValue()) { _iter3218.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCclTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3219 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map3219.size); long _key3220; Map> _val3221; for (int _i3222 = 0; _i3222 < _map3219.size; ++_i3222) { _key3220 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3223 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val3221 = new LinkedHashMap>(2*_map3223.size); String _key3224; Set _val3225; for (int _i3226 = 0; _i3226 < _map3223.size; ++_i3226) { _key3224 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3227 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3225 = new LinkedHashSet(2*_set3227.size); com.cinchapi.concourse.thrift.TObject _elem3228; for (int _i3229 = 0; _i3229 < _set3227.size; ++_i3229) { _elem3228 = new com.cinchapi.concourse.thrift.TObject(); _elem3228.read(iprot); _val3225.add(_elem3228); } } _val3221.put(_key3224, _val3225); } } struct.success.put(_key3220, _val3221); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeyCriteria_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("navigateKeyCriteria_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCriteria_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CRITERIA((short)2, "criteria"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeyCriteria_args.class, metaDataMap); } public navigateKeyCriteria_args() { } public navigateKeyCriteria_args( String key, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyCriteria_args(navigateKeyCriteria_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyCriteria_args deepCopy() { return new navigateKeyCriteria_args(this); } @Override public void clear() { this.key = null; this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyCriteria_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public navigateKeyCriteria_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyCriteria_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyCriteria_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyCriteria_args) return this.equals((navigateKeyCriteria_args)that); return false; } public boolean equals(navigateKeyCriteria_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyCriteria_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeyCriteria_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeyCriteria_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyCriteria_argsStandardScheme getScheme() { return new navigateKeyCriteria_argsStandardScheme(); } } private static class navigateKeyCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCriteria_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeyCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCriteria_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyCriteria_argsTupleScheme getScheme() { return new navigateKeyCriteria_argsTupleScheme(); } } private static class navigateKeyCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyCriteria_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("navigateKeyCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCriteria_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(navigateKeyCriteria_result.class, metaDataMap); } public navigateKeyCriteria_result() { } public navigateKeyCriteria_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public navigateKeyCriteria_result(navigateKeyCriteria_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public navigateKeyCriteria_result deepCopy() { return new navigateKeyCriteria_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyCriteria_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyCriteria_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyCriteria_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeyCriteria_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyCriteria_result) return this.equals((navigateKeyCriteria_result)that); return false; } public boolean equals(navigateKeyCriteria_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(navigateKeyCriteria_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("navigateKeyCriteria_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 navigateKeyCriteria_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyCriteria_resultStandardScheme getScheme() { return new navigateKeyCriteria_resultStandardScheme(); } } private static class navigateKeyCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCriteria_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.MAP) { { org.apache.thrift.protocol.TMap _map3230 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map3230.size); long _key3231; Set _val3232; for (int _i3233 = 0; _i3233 < _map3230.size; ++_i3233) { _key3231 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3234 = iprot.readSetBegin(); _val3232 = new LinkedHashSet(2*_set3234.size); com.cinchapi.concourse.thrift.TObject _elem3235; for (int _i3236 = 0; _i3236 < _set3234.size; ++_i3236) { _elem3235 = new com.cinchapi.concourse.thrift.TObject(); _elem3235.read(iprot); _val3232.add(_elem3235); } iprot.readSetEnd(); } struct.success.put(_key3231, _val3232); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, navigateKeyCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter3237 : struct.success.entrySet()) { oprot.writeI64(_iter3237.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter3237.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3238 : _iter3237.getValue()) { _iter3238.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCriteria_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyCriteria_resultTupleScheme getScheme() { return new navigateKeyCriteria_resultTupleScheme(); } } private static class navigateKeyCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter3239 : struct.success.entrySet()) { oprot.writeI64(_iter3239.getKey()); { oprot.writeI32(_iter3239.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3240 : _iter3239.getValue()) { _iter3240.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3241 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map3241.size); long _key3242; Set _val3243; for (int _i3244 = 0; _i3244 < _map3241.size; ++_i3244) { _key3242 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3245 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3243 = new LinkedHashSet(2*_set3245.size); com.cinchapi.concourse.thrift.TObject _elem3246; for (int _i3247 = 0; _i3247 < _set3245.size; ++_i3247) { _elem3246 = new com.cinchapi.concourse.thrift.TObject(); _elem3246.read(iprot); _val3243.add(_elem3246); } } struct.success.put(_key3242, _val3243); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeyCriteriaTime_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("navigateKeyCriteriaTime_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCriteriaTime_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CRITERIA((short)2, "criteria"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeyCriteriaTime_args.class, metaDataMap); } public navigateKeyCriteriaTime_args() { } public navigateKeyCriteriaTime_args( String key, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyCriteriaTime_args(navigateKeyCriteriaTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKey()) { this.key = other.key; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyCriteriaTime_args deepCopy() { return new navigateKeyCriteriaTime_args(this); } @Override public void clear() { this.key = null; this.criteria = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyCriteriaTime_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public navigateKeyCriteriaTime_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public long getTimestamp() { return this.timestamp; } public navigateKeyCriteriaTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyCriteriaTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyCriteriaTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyCriteriaTime_args) return this.equals((navigateKeyCriteriaTime_args)that); return false; } public boolean equals(navigateKeyCriteriaTime_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyCriteriaTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeyCriteriaTime_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeyCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyCriteriaTime_argsStandardScheme getScheme() { return new navigateKeyCriteriaTime_argsStandardScheme(); } } private static class navigateKeyCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCriteriaTime_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeyCriteriaTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyCriteriaTime_argsTupleScheme getScheme() { return new navigateKeyCriteriaTime_argsTupleScheme(); } } private static class navigateKeyCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyCriteriaTime_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("navigateKeyCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCriteriaTime_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(navigateKeyCriteriaTime_result.class, metaDataMap); } public navigateKeyCriteriaTime_result() { } public navigateKeyCriteriaTime_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public navigateKeyCriteriaTime_result(navigateKeyCriteriaTime_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public navigateKeyCriteriaTime_result deepCopy() { return new navigateKeyCriteriaTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyCriteriaTime_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyCriteriaTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyCriteriaTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeyCriteriaTime_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyCriteriaTime_result) return this.equals((navigateKeyCriteriaTime_result)that); return false; } public boolean equals(navigateKeyCriteriaTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(navigateKeyCriteriaTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("navigateKeyCriteriaTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 navigateKeyCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyCriteriaTime_resultStandardScheme getScheme() { return new navigateKeyCriteriaTime_resultStandardScheme(); } } private static class navigateKeyCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCriteriaTime_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.MAP) { { org.apache.thrift.protocol.TMap _map3248 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map3248.size); long _key3249; Set _val3250; for (int _i3251 = 0; _i3251 < _map3248.size; ++_i3251) { _key3249 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3252 = iprot.readSetBegin(); _val3250 = new LinkedHashSet(2*_set3252.size); com.cinchapi.concourse.thrift.TObject _elem3253; for (int _i3254 = 0; _i3254 < _set3252.size; ++_i3254) { _elem3253 = new com.cinchapi.concourse.thrift.TObject(); _elem3253.read(iprot); _val3250.add(_elem3253); } iprot.readSetEnd(); } struct.success.put(_key3249, _val3250); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, navigateKeyCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter3255 : struct.success.entrySet()) { oprot.writeI64(_iter3255.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter3255.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3256 : _iter3255.getValue()) { _iter3256.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyCriteriaTime_resultTupleScheme getScheme() { return new navigateKeyCriteriaTime_resultTupleScheme(); } } private static class navigateKeyCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter3257 : struct.success.entrySet()) { oprot.writeI64(_iter3257.getKey()); { oprot.writeI32(_iter3257.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3258 : _iter3257.getValue()) { _iter3258.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3259 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map3259.size); long _key3260; Set _val3261; for (int _i3262 = 0; _i3262 < _map3259.size; ++_i3262) { _key3260 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3263 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3261 = new LinkedHashSet(2*_set3263.size); com.cinchapi.concourse.thrift.TObject _elem3264; for (int _i3265 = 0; _i3265 < _set3263.size; ++_i3265) { _elem3264 = new com.cinchapi.concourse.thrift.TObject(); _elem3264.read(iprot); _val3261.add(_elem3264); } } struct.success.put(_key3260, _val3261); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeyCriteriaTimestr_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("navigateKeyCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCriteriaTimestr_argsTupleSchemeFactory()); } public String key; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEY((short)1, "key"), CRITERIA((short)2, "criteria"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEY return KEY; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeyCriteriaTimestr_args.class, metaDataMap); } public navigateKeyCriteriaTimestr_args() { } public navigateKeyCriteriaTimestr_args( String key, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.key = key; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeyCriteriaTimestr_args(navigateKeyCriteriaTimestr_args other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeyCriteriaTimestr_args deepCopy() { return new navigateKeyCriteriaTimestr_args(this); } @Override public void clear() { this.key = null; this.criteria = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public String getKey() { return this.key; } public navigateKeyCriteriaTimestr_args setKey(String key) { this.key = key; return this; } public void unsetKey() { this.key = null; } /** Returns true if field key is set (has been assigned a value) and false otherwise */ public boolean isSetKey() { return this.key != null; } public void setKeyIsSet(boolean value) { if (!value) { this.key = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public navigateKeyCriteriaTimestr_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public String getTimestamp() { return this.timestamp; } public navigateKeyCriteriaTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeyCriteriaTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeyCriteriaTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeyCriteriaTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEY: if (value == null) { unsetKey(); } else { setKey((String)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEY: return getKey(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEY: return isSetKey(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyCriteriaTimestr_args) return this.equals((navigateKeyCriteriaTimestr_args)that); return false; } public boolean equals(navigateKeyCriteriaTimestr_args that) { if (that == null) return false; boolean this_present_key = true && this.isSetKey(); boolean that_present_key = true && that.isSetKey(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_key = true && (isSetKey()); list.add(present_key); if (present_key) list.add(key); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeyCriteriaTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeyCriteriaTimestr_args("); boolean first = true; sb.append("key:"); if (this.key == null) { sb.append("null"); } else { sb.append(this.key); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeyCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public navigateKeyCriteriaTimestr_argsStandardScheme getScheme() { return new navigateKeyCriteriaTimestr_argsStandardScheme(); } } private static class navigateKeyCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCriteriaTimestr_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: // KEY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public navigateKeyCriteriaTimestr_argsTupleScheme getScheme() { return new navigateKeyCriteriaTimestr_argsTupleScheme(); } } private static class navigateKeyCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.key = iprot.readString(); struct.setKeyIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeyCriteriaTimestr_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("navigateKeyCriteriaTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeyCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeyCriteriaTimestr_resultTupleSchemeFactory()); } public Map> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(navigateKeyCriteriaTimestr_result.class, metaDataMap); } public navigateKeyCriteriaTimestr_result() { } public navigateKeyCriteriaTimestr_result( Map> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public navigateKeyCriteriaTimestr_result(navigateKeyCriteriaTimestr_result other) { if (other.isSetSuccess()) { Map> __this__success = new LinkedHashMap>(other.success.size()); for (Map.Entry> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Set other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Set __this__success_copy_value = new LinkedHashSet(other_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element : other_element_value) { __this__success_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element)); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public navigateKeyCriteriaTimestr_result deepCopy() { return new navigateKeyCriteriaTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Set val) { if (this.success == null) { this.success = new LinkedHashMap>(); } this.success.put(key, val); } public Map> getSuccess() { return this.success; } public navigateKeyCriteriaTimestr_result setSuccess(Map> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeyCriteriaTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeyCriteriaTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeyCriteriaTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeyCriteriaTimestr_result) return this.equals((navigateKeyCriteriaTimestr_result)that); return false; } public boolean equals(navigateKeyCriteriaTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(navigateKeyCriteriaTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("navigateKeyCriteriaTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 navigateKeyCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public navigateKeyCriteriaTimestr_resultStandardScheme getScheme() { return new navigateKeyCriteriaTimestr_resultStandardScheme(); } } private static class navigateKeyCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeyCriteriaTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map3266 = iprot.readMapBegin(); struct.success = new LinkedHashMap>(2*_map3266.size); long _key3267; Set _val3268; for (int _i3269 = 0; _i3269 < _map3266.size; ++_i3269) { _key3267 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3270 = iprot.readSetBegin(); _val3268 = new LinkedHashSet(2*_set3270.size); com.cinchapi.concourse.thrift.TObject _elem3271; for (int _i3272 = 0; _i3272 < _set3270.size; ++_i3272) { _elem3271 = new com.cinchapi.concourse.thrift.TObject(); _elem3271.read(iprot); _val3268.add(_elem3271); } iprot.readSetEnd(); } struct.success.put(_key3267, _val3268); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, navigateKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, struct.success.size())); for (Map.Entry> _iter3273 : struct.success.entrySet()) { oprot.writeI64(_iter3273.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter3273.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3274 : _iter3273.getValue()) { _iter3274.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeyCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public navigateKeyCriteriaTimestr_resultTupleScheme getScheme() { return new navigateKeyCriteriaTimestr_resultTupleScheme(); } } private static class navigateKeyCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry> _iter3275 : struct.success.entrySet()) { oprot.writeI64(_iter3275.getKey()); { oprot.writeI32(_iter3275.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3276 : _iter3275.getValue()) { _iter3276.write(oprot); } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeyCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3277 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32()); struct.success = new LinkedHashMap>(2*_map3277.size); long _key3278; Set _val3279; for (int _i3280 = 0; _i3280 < _map3277.size; ++_i3280) { _key3278 = iprot.readI64(); { org.apache.thrift.protocol.TSet _set3281 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3279 = new LinkedHashSet(2*_set3281.size); com.cinchapi.concourse.thrift.TObject _elem3282; for (int _i3283 = 0; _i3283 < _set3281.size; ++_i3283) { _elem3282 = new com.cinchapi.concourse.thrift.TObject(); _elem3282.read(iprot); _val3279.add(_elem3282); } } struct.success.put(_key3278, _val3279); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeysCriteria_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("navigateKeysCriteria_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCriteria_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCriteria_argsTupleSchemeFactory()); } public List keys; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), CRITERIA((short)2, "criteria"), CREDS((short)3, "creds"), TRANSACTION((short)4, "transaction"), ENVIRONMENT((short)5, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // CRITERIA return CRITERIA; case 3: // CREDS return CREDS; case 4: // TRANSACTION return TRANSACTION; case 5: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeysCriteria_args.class, metaDataMap); } public navigateKeysCriteria_args() { } public navigateKeysCriteria_args( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.criteria = criteria; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysCriteria_args(navigateKeysCriteria_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysCriteria_args deepCopy() { return new navigateKeysCriteria_args(this); } @Override public void clear() { this.keys = null; this.criteria = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysCriteria_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public navigateKeysCriteria_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysCriteria_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysCriteria_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysCriteria_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CRITERIA: return getCriteria(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case CRITERIA: return isSetCriteria(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysCriteria_args) return this.equals((navigateKeysCriteria_args)that); return false; } public boolean equals(navigateKeysCriteria_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysCriteria_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeysCriteria_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeysCriteria_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysCriteria_argsStandardScheme getScheme() { return new navigateKeysCriteria_argsStandardScheme(); } } private static class navigateKeysCriteria_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCriteria_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list3284 = iprot.readListBegin(); struct.keys = new ArrayList(_list3284.size); String _elem3285; for (int _i3286 = 0; _i3286 < _list3284.size; ++_i3286) { _elem3285 = iprot.readString(); struct.keys.add(_elem3285); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeysCriteria_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter3287 : struct.keys) { oprot.writeString(_iter3287); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCriteria_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysCriteria_argsTupleScheme getScheme() { return new navigateKeysCriteria_argsTupleScheme(); } } private static class navigateKeysCriteria_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } if (struct.isSetTransaction()) { optionals.set(3); } if (struct.isSetEnvironment()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter3288 : struct.keys) { oprot.writeString(_iter3288); } } } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteria_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list3289 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list3289.size); String _elem3290; for (int _i3291 = 0; _i3291 < _list3289.size; ++_i3291) { _elem3290 = iprot.readString(); struct.keys.add(_elem3290); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(3)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(4)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysCriteria_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("navigateKeysCriteria_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCriteria_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCriteria_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(navigateKeysCriteria_result.class, metaDataMap); } public navigateKeysCriteria_result() { } public navigateKeysCriteria_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public navigateKeysCriteria_result(navigateKeysCriteria_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public navigateKeysCriteria_result deepCopy() { return new navigateKeysCriteria_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysCriteria_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysCriteria_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysCriteria_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeysCriteria_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysCriteria_result) return this.equals((navigateKeysCriteria_result)that); return false; } public boolean equals(navigateKeysCriteria_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(navigateKeysCriteria_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("navigateKeysCriteria_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 navigateKeysCriteria_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysCriteria_resultStandardScheme getScheme() { return new navigateKeysCriteria_resultStandardScheme(); } } private static class navigateKeysCriteria_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCriteria_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.MAP) { { org.apache.thrift.protocol.TMap _map3292 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map3292.size); long _key3293; Map> _val3294; for (int _i3295 = 0; _i3295 < _map3292.size; ++_i3295) { _key3293 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3296 = iprot.readMapBegin(); _val3294 = new LinkedHashMap>(2*_map3296.size); String _key3297; Set _val3298; for (int _i3299 = 0; _i3299 < _map3296.size; ++_i3299) { _key3297 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3300 = iprot.readSetBegin(); _val3298 = new LinkedHashSet(2*_set3300.size); com.cinchapi.concourse.thrift.TObject _elem3301; for (int _i3302 = 0; _i3302 < _set3300.size; ++_i3302) { _elem3301 = new com.cinchapi.concourse.thrift.TObject(); _elem3301.read(iprot); _val3298.add(_elem3301); } iprot.readSetEnd(); } _val3294.put(_key3297, _val3298); } iprot.readMapEnd(); } struct.success.put(_key3293, _val3294); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, navigateKeysCriteria_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter3303 : struct.success.entrySet()) { oprot.writeI64(_iter3303.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter3303.getValue().size())); for (Map.Entry> _iter3304 : _iter3303.getValue().entrySet()) { oprot.writeString(_iter3304.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter3304.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3305 : _iter3304.getValue()) { _iter3305.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCriteria_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysCriteria_resultTupleScheme getScheme() { return new navigateKeysCriteria_resultTupleScheme(); } } private static class navigateKeysCriteria_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter3306 : struct.success.entrySet()) { oprot.writeI64(_iter3306.getKey()); { oprot.writeI32(_iter3306.getValue().size()); for (Map.Entry> _iter3307 : _iter3306.getValue().entrySet()) { oprot.writeString(_iter3307.getKey()); { oprot.writeI32(_iter3307.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3308 : _iter3307.getValue()) { _iter3308.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteria_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3309 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map3309.size); long _key3310; Map> _val3311; for (int _i3312 = 0; _i3312 < _map3309.size; ++_i3312) { _key3310 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3313 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val3311 = new LinkedHashMap>(2*_map3313.size); String _key3314; Set _val3315; for (int _i3316 = 0; _i3316 < _map3313.size; ++_i3316) { _key3314 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3317 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3315 = new LinkedHashSet(2*_set3317.size); com.cinchapi.concourse.thrift.TObject _elem3318; for (int _i3319 = 0; _i3319 < _set3317.size; ++_i3319) { _elem3318 = new com.cinchapi.concourse.thrift.TObject(); _elem3318.read(iprot); _val3315.add(_elem3318); } } _val3311.put(_key3314, _val3315); } } struct.success.put(_key3310, _val3311); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeysCriteriaTime_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("navigateKeysCriteriaTime_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCriteriaTime_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCriteriaTime_argsTupleSchemeFactory()); } public List keys; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public long timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), CRITERIA((short)2, "criteria"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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 __TIMESTAMP_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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeysCriteriaTime_args.class, metaDataMap); } public navigateKeysCriteriaTime_args() { } public navigateKeysCriteriaTime_args( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, long timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.criteria = criteria; this.timestamp = timestamp; setTimestampIsSet(true); this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysCriteriaTime_args(navigateKeysCriteriaTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } this.timestamp = other.timestamp; if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysCriteriaTime_args deepCopy() { return new navigateKeysCriteriaTime_args(this); } @Override public void clear() { this.keys = null; this.criteria = null; setTimestampIsSet(false); this.timestamp = 0; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysCriteriaTime_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public navigateKeysCriteriaTime_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public long getTimestamp() { return this.timestamp; } public navigateKeysCriteriaTime_args setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; } public void unsetTimestamp() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID); } public void setTimestampIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value); } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysCriteriaTime_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysCriteriaTime_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysCriteriaTime_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((Long)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysCriteriaTime_args) return this.equals((navigateKeysCriteriaTime_args)that); return false; } public boolean equals(navigateKeysCriteriaTime_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true; boolean that_present_timestamp = true; if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_timestamp = true; list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysCriteriaTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeysCriteriaTime_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeysCriteriaTime_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysCriteriaTime_argsStandardScheme getScheme() { return new navigateKeysCriteriaTime_argsStandardScheme(); } } private static class navigateKeysCriteriaTime_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCriteriaTime_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list3320 = iprot.readListBegin(); struct.keys = new ArrayList(_list3320.size); String _elem3321; for (int _i3322 = 0; _i3322 < _list3320.size; ++_i3322) { _elem3321 = iprot.readString(); struct.keys.add(_elem3321); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeysCriteriaTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter3323 : struct.keys) { oprot.writeString(_iter3323); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCriteriaTime_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysCriteriaTime_argsTupleScheme getScheme() { return new navigateKeysCriteriaTime_argsTupleScheme(); } } private static class navigateKeysCriteriaTime_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter3324 : struct.keys) { oprot.writeString(_iter3324); } } } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteriaTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list3325 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list3325.size); String _elem3326; for (int _i3327 = 0; _i3327 < _list3325.size; ++_i3327) { _elem3326 = iprot.readString(); struct.keys.add(_elem3326); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysCriteriaTime_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("navigateKeysCriteriaTime_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCriteriaTime_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCriteriaTime_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(navigateKeysCriteriaTime_result.class, metaDataMap); } public navigateKeysCriteriaTime_result() { } public navigateKeysCriteriaTime_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public navigateKeysCriteriaTime_result(navigateKeysCriteriaTime_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public navigateKeysCriteriaTime_result deepCopy() { return new navigateKeysCriteriaTime_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysCriteriaTime_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysCriteriaTime_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysCriteriaTime_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeysCriteriaTime_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysCriteriaTime_result) return this.equals((navigateKeysCriteriaTime_result)that); return false; } public boolean equals(navigateKeysCriteriaTime_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(navigateKeysCriteriaTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("navigateKeysCriteriaTime_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 navigateKeysCriteriaTime_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysCriteriaTime_resultStandardScheme getScheme() { return new navigateKeysCriteriaTime_resultStandardScheme(); } } private static class navigateKeysCriteriaTime_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCriteriaTime_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.MAP) { { org.apache.thrift.protocol.TMap _map3328 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map3328.size); long _key3329; Map> _val3330; for (int _i3331 = 0; _i3331 < _map3328.size; ++_i3331) { _key3329 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3332 = iprot.readMapBegin(); _val3330 = new LinkedHashMap>(2*_map3332.size); String _key3333; Set _val3334; for (int _i3335 = 0; _i3335 < _map3332.size; ++_i3335) { _key3333 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3336 = iprot.readSetBegin(); _val3334 = new LinkedHashSet(2*_set3336.size); com.cinchapi.concourse.thrift.TObject _elem3337; for (int _i3338 = 0; _i3338 < _set3336.size; ++_i3338) { _elem3337 = new com.cinchapi.concourse.thrift.TObject(); _elem3337.read(iprot); _val3334.add(_elem3337); } iprot.readSetEnd(); } _val3330.put(_key3333, _val3334); } iprot.readMapEnd(); } struct.success.put(_key3329, _val3330); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, navigateKeysCriteriaTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter3339 : struct.success.entrySet()) { oprot.writeI64(_iter3339.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter3339.getValue().size())); for (Map.Entry> _iter3340 : _iter3339.getValue().entrySet()) { oprot.writeString(_iter3340.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter3340.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3341 : _iter3340.getValue()) { _iter3341.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCriteriaTime_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysCriteriaTime_resultTupleScheme getScheme() { return new navigateKeysCriteriaTime_resultTupleScheme(); } } private static class navigateKeysCriteriaTime_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter3342 : struct.success.entrySet()) { oprot.writeI64(_iter3342.getKey()); { oprot.writeI32(_iter3342.getValue().size()); for (Map.Entry> _iter3343 : _iter3342.getValue().entrySet()) { oprot.writeString(_iter3343.getKey()); { oprot.writeI32(_iter3343.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3344 : _iter3343.getValue()) { _iter3344.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteriaTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3345 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map3345.size); long _key3346; Map> _val3347; for (int _i3348 = 0; _i3348 < _map3345.size; ++_i3348) { _key3346 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3349 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val3347 = new LinkedHashMap>(2*_map3349.size); String _key3350; Set _val3351; for (int _i3352 = 0; _i3352 < _map3349.size; ++_i3352) { _key3350 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3353 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3351 = new LinkedHashSet(2*_set3353.size); com.cinchapi.concourse.thrift.TObject _elem3354; for (int _i3355 = 0; _i3355 < _set3353.size; ++_i3355) { _elem3354 = new com.cinchapi.concourse.thrift.TObject(); _elem3354.read(iprot); _val3351.add(_elem3354); } } _val3347.put(_key3350, _val3351); } } struct.success.put(_key3346, _val3347); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class navigateKeysCriteriaTimestr_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("navigateKeysCriteriaTimestr_args"); private static final org.apache.thrift.protocol.TField KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("keys", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField CRITERIA_FIELD_DESC = new org.apache.thrift.protocol.TField("criteria", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCriteriaTimestr_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCriteriaTimestr_argsTupleSchemeFactory()); } public List keys; // required public com.cinchapi.concourse.thrift.TCriteria criteria; // required public String timestamp; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken transaction; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { KEYS((short)1, "keys"), CRITERIA((short)2, "criteria"), TIMESTAMP((short)3, "timestamp"), CREDS((short)4, "creds"), TRANSACTION((short)5, "transaction"), ENVIRONMENT((short)6, "environment"); private static final Map byName = new LinkedHashMap(); 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: // KEYS return KEYS; case 2: // CRITERIA return CRITERIA; case 3: // TIMESTAMP return TIMESTAMP; case 4: // CREDS return CREDS; case 5: // TRANSACTION return TRANSACTION; case 6: // ENVIRONMENT return ENVIRONMENT; 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.KEYS, new org.apache.thrift.meta_data.FieldMetaData("keys", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CRITERIA, new org.apache.thrift.meta_data.FieldMetaData("criteria", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TCriteria.class))); tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(navigateKeysCriteriaTimestr_args.class, metaDataMap); } public navigateKeysCriteriaTimestr_args() { } public navigateKeysCriteriaTimestr_args( List keys, com.cinchapi.concourse.thrift.TCriteria criteria, String timestamp, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken transaction, String environment) { this(); this.keys = keys; this.criteria = criteria; this.timestamp = timestamp; this.creds = creds; this.transaction = transaction; this.environment = environment; } /** * Performs a deep copy on other. */ public navigateKeysCriteriaTimestr_args(navigateKeysCriteriaTimestr_args other) { if (other.isSetKeys()) { List __this__keys = new ArrayList(other.keys); this.keys = __this__keys; } if (other.isSetCriteria()) { this.criteria = new com.cinchapi.concourse.thrift.TCriteria(other.criteria); } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetTransaction()) { this.transaction = new com.cinchapi.concourse.thrift.TransactionToken(other.transaction); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public navigateKeysCriteriaTimestr_args deepCopy() { return new navigateKeysCriteriaTimestr_args(this); } @Override public void clear() { this.keys = null; this.criteria = null; this.timestamp = null; this.creds = null; this.transaction = null; this.environment = null; } public int getKeysSize() { return (this.keys == null) ? 0 : this.keys.size(); } public java.util.Iterator getKeysIterator() { return (this.keys == null) ? null : this.keys.iterator(); } public void addToKeys(String elem) { if (this.keys == null) { this.keys = new ArrayList(); } this.keys.add(elem); } public List getKeys() { return this.keys; } public navigateKeysCriteriaTimestr_args setKeys(List keys) { this.keys = keys; return this; } public void unsetKeys() { this.keys = null; } /** Returns true if field keys is set (has been assigned a value) and false otherwise */ public boolean isSetKeys() { return this.keys != null; } public void setKeysIsSet(boolean value) { if (!value) { this.keys = null; } } public com.cinchapi.concourse.thrift.TCriteria getCriteria() { return this.criteria; } public navigateKeysCriteriaTimestr_args setCriteria(com.cinchapi.concourse.thrift.TCriteria criteria) { this.criteria = criteria; return this; } public void unsetCriteria() { this.criteria = null; } /** Returns true if field criteria is set (has been assigned a value) and false otherwise */ public boolean isSetCriteria() { return this.criteria != null; } public void setCriteriaIsSet(boolean value) { if (!value) { this.criteria = null; } } public String getTimestamp() { return this.timestamp; } public navigateKeysCriteriaTimestr_args setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } public void unsetTimestamp() { this.timestamp = null; } /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ public boolean isSetTimestamp() { return this.timestamp != null; } public void setTimestampIsSet(boolean value) { if (!value) { this.timestamp = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public navigateKeysCriteriaTimestr_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getTransaction() { return this.transaction; } public navigateKeysCriteriaTimestr_args setTransaction(com.cinchapi.concourse.thrift.TransactionToken transaction) { this.transaction = transaction; return this; } public void unsetTransaction() { this.transaction = null; } /** Returns true if field transaction is set (has been assigned a value) and false otherwise */ public boolean isSetTransaction() { return this.transaction != null; } public void setTransactionIsSet(boolean value) { if (!value) { this.transaction = null; } } public String getEnvironment() { return this.environment; } public navigateKeysCriteriaTimestr_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KEYS: if (value == null) { unsetKeys(); } else { setKeys((List)value); } break; case CRITERIA: if (value == null) { unsetCriteria(); } else { setCriteria((com.cinchapi.concourse.thrift.TCriteria)value); } break; case TIMESTAMP: if (value == null) { unsetTimestamp(); } else { setTimestamp((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TRANSACTION: if (value == null) { unsetTransaction(); } else { setTransaction((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KEYS: return getKeys(); case CRITERIA: return getCriteria(); case TIMESTAMP: return getTimestamp(); case CREDS: return getCreds(); case TRANSACTION: return getTransaction(); case ENVIRONMENT: return getEnvironment(); } 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 KEYS: return isSetKeys(); case CRITERIA: return isSetCriteria(); case TIMESTAMP: return isSetTimestamp(); case CREDS: return isSetCreds(); case TRANSACTION: return isSetTransaction(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysCriteriaTimestr_args) return this.equals((navigateKeysCriteriaTimestr_args)that); return false; } public boolean equals(navigateKeysCriteriaTimestr_args that) { if (that == null) return false; boolean this_present_keys = true && this.isSetKeys(); boolean that_present_keys = true && that.isSetKeys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } boolean this_present_criteria = true && this.isSetCriteria(); boolean that_present_criteria = true && that.isSetCriteria(); if (this_present_criteria || that_present_criteria) { if (!(this_present_criteria && that_present_criteria)) return false; if (!this.criteria.equals(that.criteria)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (!this.timestamp.equals(that.timestamp)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_transaction = true && this.isSetTransaction(); boolean that_present_transaction = true && that.isSetTransaction(); if (this_present_transaction || that_present_transaction) { if (!(this_present_transaction && that_present_transaction)) return false; if (!this.transaction.equals(that.transaction)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_keys = true && (isSetKeys()); list.add(present_keys); if (present_keys) list.add(keys); boolean present_criteria = true && (isSetCriteria()); list.add(present_criteria); if (present_criteria) list.add(criteria); boolean present_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_transaction = true && (isSetTransaction()); list.add(present_transaction); if (present_transaction) list.add(transaction); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(navigateKeysCriteriaTimestr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetKeys()).compareTo(other.isSetKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetKeys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, other.keys); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCriteria()).compareTo(other.isSetCriteria()); if (lastComparison != 0) { return lastComparison; } if (isSetCriteria()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.criteria, other.criteria); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(other.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, other.timestamp); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(other.isSetTransaction()); if (lastComparison != 0) { return lastComparison; } if (isSetTransaction()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, other.transaction); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("navigateKeysCriteriaTimestr_args("); boolean first = true; sb.append("keys:"); if (this.keys == null) { sb.append("null"); } else { sb.append(this.keys); } first = false; if (!first) sb.append(", "); sb.append("criteria:"); if (this.criteria == null) { sb.append("null"); } else { sb.append(this.criteria); } first = false; if (!first) sb.append(", "); sb.append("timestamp:"); if (this.timestamp == null) { sb.append("null"); } else { sb.append(this.timestamp); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("transaction:"); if (this.transaction == null) { sb.append("null"); } else { sb.append(this.transaction); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } 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 (criteria != null) { criteria.validate(); } if (creds != null) { creds.validate(); } if (transaction != null) { transaction.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 navigateKeysCriteriaTimestr_argsStandardSchemeFactory implements SchemeFactory { public navigateKeysCriteriaTimestr_argsStandardScheme getScheme() { return new navigateKeysCriteriaTimestr_argsStandardScheme(); } } private static class navigateKeysCriteriaTimestr_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCriteriaTimestr_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: // KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list3356 = iprot.readListBegin(); struct.keys = new ArrayList(_list3356.size); String _elem3357; for (int _i3358 = 0; _i3358 < _list3356.size; ++_i3358) { _elem3357 = iprot.readString(); struct.keys.add(_elem3357); } iprot.readListEnd(); } struct.setKeysIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CRITERIA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TRANSACTION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, navigateKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter3359 : struct.keys) { oprot.writeString(_iter3359); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.criteria != null) { oprot.writeFieldBegin(CRITERIA_FIELD_DESC); struct.criteria.write(oprot); oprot.writeFieldEnd(); } if (struct.timestamp != null) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeString(struct.timestamp); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.transaction != null) { oprot.writeFieldBegin(TRANSACTION_FIELD_DESC); struct.transaction.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCriteriaTimestr_argsTupleSchemeFactory implements SchemeFactory { public navigateKeysCriteriaTimestr_argsTupleScheme getScheme() { return new navigateKeysCriteriaTimestr_argsTupleScheme(); } } private static class navigateKeysCriteriaTimestr_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKeys()) { optionals.set(0); } if (struct.isSetCriteria()) { optionals.set(1); } if (struct.isSetTimestamp()) { optionals.set(2); } if (struct.isSetCreds()) { optionals.set(3); } if (struct.isSetTransaction()) { optionals.set(4); } if (struct.isSetEnvironment()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetKeys()) { { oprot.writeI32(struct.keys.size()); for (String _iter3360 : struct.keys) { oprot.writeString(_iter3360); } } } if (struct.isSetCriteria()) { struct.criteria.write(oprot); } if (struct.isSetTimestamp()) { oprot.writeString(struct.timestamp); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetTransaction()) { struct.transaction.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteriaTimestr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list3361 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.keys = new ArrayList(_list3361.size); String _elem3362; for (int _i3363 = 0; _i3363 < _list3361.size; ++_i3363) { _elem3362 = iprot.readString(); struct.keys.add(_elem3362); } } struct.setKeysIsSet(true); } if (incoming.get(1)) { struct.criteria = new com.cinchapi.concourse.thrift.TCriteria(); struct.criteria.read(iprot); struct.setCriteriaIsSet(true); } if (incoming.get(2)) { struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); } if (incoming.get(3)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(4)) { struct.transaction = new com.cinchapi.concourse.thrift.TransactionToken(); struct.transaction.read(iprot); struct.setTransactionIsSet(true); } if (incoming.get(5)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class navigateKeysCriteriaTimestr_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("navigateKeysCriteriaTimestr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new navigateKeysCriteriaTimestr_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new navigateKeysCriteriaTimestr_resultTupleSchemeFactory()); } public Map>> success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TObject.class)))))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(navigateKeysCriteriaTimestr_result.class, metaDataMap); } public navigateKeysCriteriaTimestr_result() { } public navigateKeysCriteriaTimestr_result( Map>> success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public navigateKeysCriteriaTimestr_result(navigateKeysCriteriaTimestr_result other) { if (other.isSetSuccess()) { Map>> __this__success = new LinkedHashMap>>(other.success.size()); for (Map.Entry>> other_element : other.success.entrySet()) { Long other_element_key = other_element.getKey(); Map> other_element_value = other_element.getValue(); Long __this__success_copy_key = other_element_key; Map> __this__success_copy_value = new LinkedHashMap>(other_element_value.size()); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); Set other_element_value_element_value = other_element_value_element.getValue(); String __this__success_copy_value_copy_key = other_element_value_element_key; Set __this__success_copy_value_copy_value = new LinkedHashSet(other_element_value_element_value.size()); for (com.cinchapi.concourse.thrift.TObject other_element_value_element_value_element : other_element_value_element_value) { __this__success_copy_value_copy_value.add(new com.cinchapi.concourse.thrift.TObject(other_element_value_element_value_element)); } __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public navigateKeysCriteriaTimestr_result deepCopy() { return new navigateKeysCriteriaTimestr_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; this.ex3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public void putToSuccess(long key, Map> val) { if (this.success == null) { this.success = new LinkedHashMap>>(); } this.success.put(key, val); } public Map>> getSuccess() { return this.success; } public navigateKeysCriteriaTimestr_result setSuccess(Map>> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public navigateKeysCriteriaTimestr_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public navigateKeysCriteriaTimestr_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public navigateKeysCriteriaTimestr_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Map>>)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof navigateKeysCriteriaTimestr_result) return this.equals((navigateKeysCriteriaTimestr_result)that); return false; } public boolean equals(navigateKeysCriteriaTimestr_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(navigateKeysCriteriaTimestr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("navigateKeysCriteriaTimestr_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } 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 navigateKeysCriteriaTimestr_resultStandardSchemeFactory implements SchemeFactory { public navigateKeysCriteriaTimestr_resultStandardScheme getScheme() { return new navigateKeysCriteriaTimestr_resultStandardScheme(); } } private static class navigateKeysCriteriaTimestr_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, navigateKeysCriteriaTimestr_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.MAP) { { org.apache.thrift.protocol.TMap _map3364 = iprot.readMapBegin(); struct.success = new LinkedHashMap>>(2*_map3364.size); long _key3365; Map> _val3366; for (int _i3367 = 0; _i3367 < _map3364.size; ++_i3367) { _key3365 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3368 = iprot.readMapBegin(); _val3366 = new LinkedHashMap>(2*_map3368.size); String _key3369; Set _val3370; for (int _i3371 = 0; _i3371 < _map3368.size; ++_i3371) { _key3369 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3372 = iprot.readSetBegin(); _val3370 = new LinkedHashSet(2*_set3372.size); com.cinchapi.concourse.thrift.TObject _elem3373; for (int _i3374 = 0; _i3374 < _set3372.size; ++_i3374) { _elem3373 = new com.cinchapi.concourse.thrift.TObject(); _elem3373.read(iprot); _val3370.add(_elem3373); } iprot.readSetEnd(); } _val3366.put(_key3369, _val3370); } iprot.readMapEnd(); } struct.success.put(_key3365, _val3366); } iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, navigateKeysCriteriaTimestr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, struct.success.size())); for (Map.Entry>> _iter3375 : struct.success.entrySet()) { oprot.writeI64(_iter3375.getKey()); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter3375.getValue().size())); for (Map.Entry> _iter3376 : _iter3375.getValue().entrySet()) { oprot.writeString(_iter3376.getKey()); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter3376.getValue().size())); for (com.cinchapi.concourse.thrift.TObject _iter3377 : _iter3376.getValue()) { _iter3377.write(oprot); } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class navigateKeysCriteriaTimestr_resultTupleSchemeFactory implements SchemeFactory { public navigateKeysCriteriaTimestr_resultTupleScheme getScheme() { return new navigateKeysCriteriaTimestr_resultTupleScheme(); } } private static class navigateKeysCriteriaTimestr_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry>> _iter3378 : struct.success.entrySet()) { oprot.writeI64(_iter3378.getKey()); { oprot.writeI32(_iter3378.getValue().size()); for (Map.Entry> _iter3379 : _iter3378.getValue().entrySet()) { oprot.writeString(_iter3379.getKey()); { oprot.writeI32(_iter3379.getValue().size()); for (com.cinchapi.concourse.thrift.TObject _iter3380 : _iter3379.getValue()) { _iter3380.write(oprot); } } } } } } } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, navigateKeysCriteriaTimestr_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TMap _map3381 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.success = new LinkedHashMap>>(2*_map3381.size); long _key3382; Map> _val3383; for (int _i3384 = 0; _i3384 < _map3381.size; ++_i3384) { _key3382 = iprot.readI64(); { org.apache.thrift.protocol.TMap _map3385 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32()); _val3383 = new LinkedHashMap>(2*_map3385.size); String _key3386; Set _val3387; for (int _i3388 = 0; _i3388 < _map3385.size; ++_i3388) { _key3386 = iprot.readString(); { org.apache.thrift.protocol.TSet _set3389 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); _val3387 = new LinkedHashSet(2*_set3389.size); com.cinchapi.concourse.thrift.TObject _elem3390; for (int _i3391 = 0; _i3391 < _set3389.size; ++_i3391) { _elem3390 = new com.cinchapi.concourse.thrift.TObject(); _elem3390.read(iprot); _val3387.add(_elem3390); } } _val3383.put(_key3386, _val3387); } } struct.success.put(_key3382, _val3383); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } public static class getServerEnvironment_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("getServerEnvironment_args"); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getServerEnvironment_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getServerEnvironment_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken token; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CREDS((short)1, "creds"), TOKEN((short)2, "token"), ENVIRONMENT((short)3, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // CREDS return CREDS; case 2: // TOKEN return TOKEN; case 3: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getServerEnvironment_args.class, metaDataMap); } public getServerEnvironment_args() { } public getServerEnvironment_args( com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment) { this(); this.creds = creds; this.token = token; this.environment = environment; } /** * Performs a deep copy on other. */ public getServerEnvironment_args(getServerEnvironment_args other) { if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetToken()) { this.token = new com.cinchapi.concourse.thrift.TransactionToken(other.token); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public getServerEnvironment_args deepCopy() { return new getServerEnvironment_args(this); } @Override public void clear() { this.creds = null; this.token = null; this.environment = null; } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getServerEnvironment_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getToken() { return this.token; } public getServerEnvironment_args setToken(com.cinchapi.concourse.thrift.TransactionToken token) { this.token = token; return this; } public void unsetToken() { this.token = null; } /** Returns true if field token is set (has been assigned a value) and false otherwise */ public boolean isSetToken() { return this.token != null; } public void setTokenIsSet(boolean value) { if (!value) { this.token = null; } } public String getEnvironment() { return this.environment; } public getServerEnvironment_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TOKEN: if (value == null) { unsetToken(); } else { setToken((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CREDS: return getCreds(); case TOKEN: return getToken(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case CREDS: return isSetCreds(); case TOKEN: return isSetToken(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getServerEnvironment_args) return this.equals((getServerEnvironment_args)that); return false; } public boolean equals(getServerEnvironment_args that) { if (that == null) return false; boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_token = true && this.isSetToken(); boolean that_present_token = true && that.isSetToken(); if (this_present_token || that_present_token) { if (!(this_present_token && that_present_token)) return false; if (!this.token.equals(that.token)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_token = true && (isSetToken()); list.add(present_token); if (present_token) list.add(token); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(getServerEnvironment_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } if (isSetToken()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("getServerEnvironment_args("); boolean first = true; sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("token:"); if (this.token == null) { sb.append("null"); } else { sb.append(this.token); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (token != null) { token.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getServerEnvironment_argsStandardSchemeFactory implements SchemeFactory { public getServerEnvironment_argsStandardScheme getScheme() { return new getServerEnvironment_argsStandardScheme(); } } private static class getServerEnvironment_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getServerEnvironment_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.token = new com.cinchapi.concourse.thrift.TransactionToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, getServerEnvironment_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.token != null) { oprot.writeFieldBegin(TOKEN_FIELD_DESC); struct.token.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getServerEnvironment_argsTupleSchemeFactory implements SchemeFactory { public getServerEnvironment_argsTupleScheme getScheme() { return new getServerEnvironment_argsTupleScheme(); } } private static class getServerEnvironment_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getServerEnvironment_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCreds()) { optionals.set(0); } if (struct.isSetToken()) { optionals.set(1); } if (struct.isSetEnvironment()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetToken()) { struct.token.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getServerEnvironment_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(1)) { struct.token = new com.cinchapi.concourse.thrift.TransactionToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } if (incoming.get(2)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class getServerEnvironment_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("getServerEnvironment_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getServerEnvironment_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getServerEnvironment_resultTupleSchemeFactory()); } public String success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(getServerEnvironment_result.class, metaDataMap); } public getServerEnvironment_result() { } public getServerEnvironment_result( String success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public getServerEnvironment_result(getServerEnvironment_result other) { if (other.isSetSuccess()) { this.success = other.success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public getServerEnvironment_result deepCopy() { return new getServerEnvironment_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public String getSuccess() { return this.success; } public getServerEnvironment_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getServerEnvironment_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getServerEnvironment_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((String)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getServerEnvironment_result) return this.equals((getServerEnvironment_result)that); return false; } public boolean equals(getServerEnvironment_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(getServerEnvironment_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("getServerEnvironment_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 getServerEnvironment_resultStandardSchemeFactory implements SchemeFactory { public getServerEnvironment_resultStandardScheme getScheme() { return new getServerEnvironment_resultStandardScheme(); } } private static class getServerEnvironment_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getServerEnvironment_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: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, getServerEnvironment_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.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getServerEnvironment_resultTupleSchemeFactory implements SchemeFactory { public getServerEnvironment_resultTupleScheme getScheme() { return new getServerEnvironment_resultTupleScheme(); } } private static class getServerEnvironment_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getServerEnvironment_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { oprot.writeString(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getServerEnvironment_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class getServerVersion_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("getServerVersion_args"); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getServerVersion_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getServerVersion_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 LinkedHashMap(); 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(getServerVersion_args.class, metaDataMap); } public getServerVersion_args() { } /** * Performs a deep copy on other. */ public getServerVersion_args(getServerVersion_args other) { } public getServerVersion_args deepCopy() { return new getServerVersion_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 getServerVersion_args) return this.equals((getServerVersion_args)that); return false; } public boolean equals(getServerVersion_args that) { if (that == null) return false; return true; } @Override public int hashCode() { List list = new ArrayList(); return list.hashCode(); } @Override public int compareTo(getServerVersion_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("getServerVersion_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 getServerVersion_argsStandardSchemeFactory implements SchemeFactory { public getServerVersion_argsStandardScheme getScheme() { return new getServerVersion_argsStandardScheme(); } } private static class getServerVersion_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getServerVersion_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, getServerVersion_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getServerVersion_argsTupleSchemeFactory implements SchemeFactory { public getServerVersion_argsTupleScheme getScheme() { return new getServerVersion_argsTupleScheme(); } } private static class getServerVersion_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getServerVersion_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getServerVersion_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } public static class getServerVersion_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("getServerVersion_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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getServerVersion_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getServerVersion_resultTupleSchemeFactory()); } public String success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; 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.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(getServerVersion_result.class, metaDataMap); } public getServerVersion_result() { } public getServerVersion_result( String success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public getServerVersion_result(getServerVersion_result other) { if (other.isSetSuccess()) { this.success = other.success; } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public getServerVersion_result deepCopy() { return new getServerVersion_result(this); } @Override public void clear() { this.success = null; this.ex = null; this.ex2 = null; } public String getSuccess() { return this.success; } public getServerVersion_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 com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public getServerVersion_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public getServerVersion_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((String)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getServerVersion_result) return this.equals((getServerVersion_result)that); return false; } public boolean equals(getServerVersion_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) 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_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(getServerVersion_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("getServerVersion_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } 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 getServerVersion_resultStandardSchemeFactory implements SchemeFactory { public getServerVersion_resultStandardScheme getScheme() { return new getServerVersion_resultStandardScheme(); } } private static class getServerVersion_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getServerVersion_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: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, getServerVersion_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.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getServerVersion_resultTupleSchemeFactory implements SchemeFactory { public getServerVersion_resultTupleScheme getScheme() { return new getServerVersion_resultTupleScheme(); } } private static class getServerVersion_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getServerVersion_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { oprot.writeString(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getServerVersion_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class time_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("time_args"); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new time_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new time_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken token; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { CREDS((short)1, "creds"), TOKEN((short)2, "token"), ENVIRONMENT((short)3, "environment"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // CREDS return CREDS; case 2: // TOKEN return TOKEN; case 3: // ENVIRONMENT return ENVIRONMENT; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(time_args.class, metaDataMap); } public time_args() { } public time_args( com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment) { this(); this.creds = creds; this.token = token; this.environment = environment; } /** * Performs a deep copy on other. */ public time_args(time_args other) { if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetToken()) { this.token = new com.cinchapi.concourse.thrift.TransactionToken(other.token); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public time_args deepCopy() { return new time_args(this); } @Override public void clear() { this.creds = null; this.token = null; this.environment = null; } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public time_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getToken() { return this.token; } public time_args setToken(com.cinchapi.concourse.thrift.TransactionToken token) { this.token = token; return this; } public void unsetToken() { this.token = null; } /** Returns true if field token is set (has been assigned a value) and false otherwise */ public boolean isSetToken() { return this.token != null; } public void setTokenIsSet(boolean value) { if (!value) { this.token = null; } } public String getEnvironment() { return this.environment; } public time_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TOKEN: if (value == null) { unsetToken(); } else { setToken((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CREDS: return getCreds(); case TOKEN: return getToken(); case ENVIRONMENT: return getEnvironment(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case CREDS: return isSetCreds(); case TOKEN: return isSetToken(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof time_args) return this.equals((time_args)that); return false; } public boolean equals(time_args that) { if (that == null) return false; boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_token = true && this.isSetToken(); boolean that_present_token = true && that.isSetToken(); if (this_present_token || that_present_token) { if (!(this_present_token && that_present_token)) return false; if (!this.token.equals(that.token)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_token = true && (isSetToken()); list.add(present_token); if (present_token) list.add(token); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(time_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } if (isSetToken()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("time_args("); boolean first = true; sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("token:"); if (this.token == null) { sb.append("null"); } else { sb.append(this.token); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (token != null) { token.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class time_argsStandardSchemeFactory implements SchemeFactory { public time_argsStandardScheme getScheme() { return new time_argsStandardScheme(); } } private static class time_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, time_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.token = new com.cinchapi.concourse.thrift.TransactionToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, time_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.token != null) { oprot.writeFieldBegin(TOKEN_FIELD_DESC); struct.token.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class time_argsTupleSchemeFactory implements SchemeFactory { public time_argsTupleScheme getScheme() { return new time_argsTupleScheme(); } } private static class time_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, time_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCreds()) { optionals.set(0); } if (struct.isSetToken()) { optionals.set(1); } if (struct.isSetEnvironment()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetToken()) { struct.token.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, time_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(1)) { struct.token = new com.cinchapi.concourse.thrift.TransactionToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } if (incoming.get(2)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class time_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("time_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new time_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new time_resultTupleSchemeFactory()); } public long success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", 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(time_result.class, metaDataMap); } public time_result() { } public time_result( long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; } /** * Performs a deep copy on other. */ public time_result(time_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } } public time_result deepCopy() { return new time_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = 0; this.ex = null; this.ex2 = null; } public long getSuccess() { return this.success; } public time_result setSuccess(long success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public time_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public time_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Long)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof time_result) return this.equals((time_result)that); return false; } public boolean equals(time_result that) { if (that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if (present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); return list.hashCode(); } @Override public int compareTo(time_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); 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("time_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class time_resultStandardSchemeFactory implements SchemeFactory { public time_resultStandardScheme getScheme() { return new time_resultStandardScheme(); } } private static class time_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, time_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.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(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, time_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeI64(struct.success); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class time_resultTupleSchemeFactory implements SchemeFactory { public time_resultTupleScheme getScheme() { return new time_resultTupleScheme(); } } private static class time_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, time_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { oprot.writeI64(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, time_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } } } } public static class timePhrase_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("timePhrase_args"); private static final org.apache.thrift.protocol.TField PHRASE_FIELD_DESC = new org.apache.thrift.protocol.TField("phrase", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new timePhrase_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new timePhrase_argsTupleSchemeFactory()); } public String phrase; // required public com.cinchapi.concourse.thrift.AccessToken creds; // required public com.cinchapi.concourse.thrift.TransactionToken token; // required public String environment; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { PHRASE((short)1, "phrase"), CREDS((short)2, "creds"), TOKEN((short)3, "token"), ENVIRONMENT((short)4, "environment"); private static final Map byName = new LinkedHashMap(); 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: // PHRASE return PHRASE; case 2: // CREDS return CREDS; case 3: // TOKEN return TOKEN; case 4: // ENVIRONMENT return ENVIRONMENT; 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.PHRASE, new org.apache.thrift.meta_data.FieldMetaData("phrase", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.TransactionToken.class))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(timePhrase_args.class, metaDataMap); } public timePhrase_args() { } public timePhrase_args( String phrase, com.cinchapi.concourse.thrift.AccessToken creds, com.cinchapi.concourse.thrift.TransactionToken token, String environment) { this(); this.phrase = phrase; this.creds = creds; this.token = token; this.environment = environment; } /** * Performs a deep copy on other. */ public timePhrase_args(timePhrase_args other) { if (other.isSetPhrase()) { this.phrase = other.phrase; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } if (other.isSetToken()) { this.token = new com.cinchapi.concourse.thrift.TransactionToken(other.token); } if (other.isSetEnvironment()) { this.environment = other.environment; } } public timePhrase_args deepCopy() { return new timePhrase_args(this); } @Override public void clear() { this.phrase = null; this.creds = null; this.token = null; this.environment = null; } public String getPhrase() { return this.phrase; } public timePhrase_args setPhrase(String phrase) { this.phrase = phrase; return this; } public void unsetPhrase() { this.phrase = null; } /** Returns true if field phrase is set (has been assigned a value) and false otherwise */ public boolean isSetPhrase() { return this.phrase != null; } public void setPhraseIsSet(boolean value) { if (!value) { this.phrase = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public timePhrase_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public com.cinchapi.concourse.thrift.TransactionToken getToken() { return this.token; } public timePhrase_args setToken(com.cinchapi.concourse.thrift.TransactionToken token) { this.token = token; return this; } public void unsetToken() { this.token = null; } /** Returns true if field token is set (has been assigned a value) and false otherwise */ public boolean isSetToken() { return this.token != null; } public void setTokenIsSet(boolean value) { if (!value) { this.token = null; } } public String getEnvironment() { return this.environment; } public timePhrase_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PHRASE: if (value == null) { unsetPhrase(); } else { setPhrase((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; case TOKEN: if (value == null) { unsetToken(); } else { setToken((com.cinchapi.concourse.thrift.TransactionToken)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PHRASE: return getPhrase(); case CREDS: return getCreds(); case TOKEN: return getToken(); case ENVIRONMENT: return getEnvironment(); } 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 PHRASE: return isSetPhrase(); case CREDS: return isSetCreds(); case TOKEN: return isSetToken(); case ENVIRONMENT: return isSetEnvironment(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof timePhrase_args) return this.equals((timePhrase_args)that); return false; } public boolean equals(timePhrase_args that) { if (that == null) return false; boolean this_present_phrase = true && this.isSetPhrase(); boolean that_present_phrase = true && that.isSetPhrase(); if (this_present_phrase || that_present_phrase) { if (!(this_present_phrase && that_present_phrase)) return false; if (!this.phrase.equals(that.phrase)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } boolean this_present_token = true && this.isSetToken(); boolean that_present_token = true && that.isSetToken(); if (this_present_token || that_present_token) { if (!(this_present_token && that_present_token)) return false; if (!this.token.equals(that.token)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_phrase = true && (isSetPhrase()); list.add(present_phrase); if (present_phrase) list.add(phrase); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); boolean present_token = true && (isSetToken()); list.add(present_token); if (present_token) list.add(token); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); return list.hashCode(); } @Override public int compareTo(timePhrase_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetPhrase()).compareTo(other.isSetPhrase()); if (lastComparison != 0) { return lastComparison; } if (isSetPhrase()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.phrase, other.phrase); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } if (isSetToken()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } 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("timePhrase_args("); boolean first = true; sb.append("phrase:"); if (this.phrase == null) { sb.append("null"); } else { sb.append(this.phrase); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; if (!first) sb.append(", "); sb.append("token:"); if (this.token == null) { sb.append("null"); } else { sb.append(this.token); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } if (token != null) { token.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class timePhrase_argsStandardSchemeFactory implements SchemeFactory { public timePhrase_argsStandardScheme getScheme() { return new timePhrase_argsStandardScheme(); } } private static class timePhrase_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, timePhrase_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: // PHRASE if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.phrase = iprot.readString(); struct.setPhraseIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.token = new com.cinchapi.concourse.thrift.TransactionToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; 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, timePhrase_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.phrase != null) { oprot.writeFieldBegin(PHRASE_FIELD_DESC); oprot.writeString(struct.phrase); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } if (struct.token != null) { oprot.writeFieldBegin(TOKEN_FIELD_DESC); struct.token.write(oprot); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class timePhrase_argsTupleSchemeFactory implements SchemeFactory { public timePhrase_argsTupleScheme getScheme() { return new timePhrase_argsTupleScheme(); } } private static class timePhrase_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, timePhrase_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetPhrase()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } if (struct.isSetToken()) { optionals.set(2); } if (struct.isSetEnvironment()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetPhrase()) { oprot.writeString(struct.phrase); } if (struct.isSetCreds()) { struct.creds.write(oprot); } if (struct.isSetToken()) { struct.token.write(oprot); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, timePhrase_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.phrase = iprot.readString(); struct.setPhraseIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } if (incoming.get(2)) { struct.token = new com.cinchapi.concourse.thrift.TransactionToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } if (incoming.get(3)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } } } } public static class timePhrase_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("timePhrase_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField EX2_FIELD_DESC = new org.apache.thrift.protocol.TField("ex2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField EX3_FIELD_DESC = new org.apache.thrift.protocol.TField("ex3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new LinkedHashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new timePhrase_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new timePhrase_resultTupleSchemeFactory()); } public long success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required public com.cinchapi.concourse.thrift.TransactionException ex2; // required public com.cinchapi.concourse.thrift.ParseException ex3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"), EX2((short)2, "ex2"), EX3((short)3, "ex3"); private static final Map byName = new LinkedHashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; case 2: // EX2 return EX2; case 3: // EX3 return EX3; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX2, new org.apache.thrift.meta_data.FieldMetaData("ex2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.EX3, new org.apache.thrift.meta_data.FieldMetaData("ex3", 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(timePhrase_result.class, metaDataMap); } public timePhrase_result() { } public timePhrase_result( long success, com.cinchapi.concourse.thrift.SecurityException ex, com.cinchapi.concourse.thrift.TransactionException ex2, com.cinchapi.concourse.thrift.ParseException ex3) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; this.ex2 = ex2; this.ex3 = ex3; } /** * Performs a deep copy on other. */ public timePhrase_result(timePhrase_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } if (other.isSetEx2()) { this.ex2 = new com.cinchapi.concourse.thrift.TransactionException(other.ex2); } if (other.isSetEx3()) { this.ex3 = new com.cinchapi.concourse.thrift.ParseException(other.ex3); } } public timePhrase_result deepCopy() { return new timePhrase_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = 0; this.ex = null; this.ex2 = null; this.ex3 = null; } public long getSuccess() { return this.success; } public timePhrase_result setSuccess(long success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public timePhrase_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public com.cinchapi.concourse.thrift.TransactionException getEx2() { return this.ex2; } public timePhrase_result setEx2(com.cinchapi.concourse.thrift.TransactionException ex2) { this.ex2 = ex2; return this; } public void unsetEx2() { this.ex2 = null; } /** Returns true if field ex2 is set (has been assigned a value) and false otherwise */ public boolean isSetEx2() { return this.ex2 != null; } public void setEx2IsSet(boolean value) { if (!value) { this.ex2 = null; } } public com.cinchapi.concourse.thrift.ParseException getEx3() { return this.ex3; } public timePhrase_result setEx3(com.cinchapi.concourse.thrift.ParseException ex3) { this.ex3 = ex3; return this; } public void unsetEx3() { this.ex3 = null; } /** Returns true if field ex3 is set (has been assigned a value) and false otherwise */ public boolean isSetEx3() { return this.ex3 != null; } public void setEx3IsSet(boolean value) { if (!value) { this.ex3 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Long)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; case EX2: if (value == null) { unsetEx2(); } else { setEx2((com.cinchapi.concourse.thrift.TransactionException)value); } break; case EX3: if (value == null) { unsetEx3(); } else { setEx3((com.cinchapi.concourse.thrift.ParseException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); case EX2: return getEx2(); case EX3: return getEx3(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); case EX2: return isSetEx2(); case EX3: return isSetEx3(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof timePhrase_result) return this.equals((timePhrase_result)that); return false; } public boolean equals(timePhrase_result that) { if (that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (this.success != that.success) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } boolean this_present_ex2 = true && this.isSetEx2(); boolean that_present_ex2 = true && that.isSetEx2(); if (this_present_ex2 || that_present_ex2) { if (!(this_present_ex2 && that_present_ex2)) return false; if (!this.ex2.equals(that.ex2)) return false; } boolean this_present_ex3 = true && this.isSetEx3(); boolean that_present_ex3 = true && that.isSetEx3(); if (this_present_ex3 || that_present_ex3) { if (!(this_present_ex3 && that_present_ex3)) return false; if (!this.ex3.equals(that.ex3)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true; list.add(present_success); if (present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); boolean present_ex2 = true && (isSetEx2()); list.add(present_ex2); if (present_ex2) list.add(ex2); boolean present_ex3 = true && (isSetEx3()); list.add(present_ex3); if (present_ex3) list.add(ex3); return list.hashCode(); } @Override public int compareTo(timePhrase_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx2()).compareTo(other.isSetEx2()); if (lastComparison != 0) { return lastComparison; } if (isSetEx2()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex2, other.ex2); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx3()).compareTo(other.isSetEx3()); if (lastComparison != 0) { return lastComparison; } if (isSetEx3()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex3, other.ex3); 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("timePhrase_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; if (!first) sb.append(", "); sb.append("ex2:"); if (this.ex2 == null) { sb.append("null"); } else { sb.append(this.ex2); } first = false; if (!first) sb.append(", "); sb.append("ex3:"); if (this.ex3 == null) { sb.append("null"); } else { sb.append(this.ex3); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class timePhrase_resultStandardSchemeFactory implements SchemeFactory { public timePhrase_resultStandardScheme getScheme() { return new timePhrase_resultStandardScheme(); } } private static class timePhrase_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, timePhrase_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.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // EX2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // EX3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(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, timePhrase_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeI64(struct.success); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } if (struct.ex2 != null) { oprot.writeFieldBegin(EX2_FIELD_DESC); struct.ex2.write(oprot); oprot.writeFieldEnd(); } if (struct.ex3 != null) { oprot.writeFieldBegin(EX3_FIELD_DESC); struct.ex3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class timePhrase_resultTupleSchemeFactory implements SchemeFactory { public timePhrase_resultTupleScheme getScheme() { return new timePhrase_resultTupleScheme(); } } private static class timePhrase_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, timePhrase_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } if (struct.isSetEx2()) { optionals.set(2); } if (struct.isSetEx3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { oprot.writeI64(struct.success); } if (struct.isSetEx()) { struct.ex.write(oprot); } if (struct.isSetEx2()) { struct.ex2.write(oprot); } if (struct.isSetEx3()) { struct.ex3.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, timePhrase_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } if (incoming.get(2)) { struct.ex2 = new com.cinchapi.concourse.thrift.TransactionException(); struct.ex2.read(iprot); struct.setEx2IsSet(true); } if (incoming.get(3)) { struct.ex3 = new com.cinchapi.concourse.thrift.ParseException(); struct.ex3.read(iprot); struct.setEx3IsSet(true); } } } } }